The Btrieve file attributes class.
More...
#include <btrieveCpp.h>
The Btrieve file attributes class.
- Examples:
- bfileattributes.cpp, bfilter.cpp, bindexattributes.cpp, bkeyonly.cpp, block.cpp, bpercentage.cpp, btest.cpp, btestappend.cpp, btestbulk.cpp, btestchunk.cpp, btestvlr.cpp, and Test_BTRV2.cpp.
◆ BtrieveFileAttributes()
BtrieveFileAttributes::BtrieveFileAttributes |
( |
| ) |
|
◆ ~BtrieveFileAttributes()
BtrieveFileAttributes::~BtrieveFileAttributes |
( |
| ) |
|
◆ SetBalancedIndexes()
Set balanced indexes.
- Parameters
-
[in] | enableBalancedIndexes | Enable balanced indexes? |
- Description
- Balanced indexes are disabled by default.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetFileVersion()
◆ SetFixedRecordLength()
Set the fixed record length.
- Parameters
-
- Description
- Fixed record length defaults to zero.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp, bfilter.cpp, bindexattributes.cpp, bkeyonly.cpp, block.cpp, bpercentage.cpp, btest.cpp, btestappend.cpp, btestbulk.cpp, btestchunk.cpp, btestvlr.cpp, and Test_BTRV2.cpp.
◆ SetFreeSpaceThreshold()
Set the free space threshold.
- Parameters
-
[in] | freeSpaceThreshold | The free space threshold. |
- Description
- Free space threshold defaults to Btrieve::FREE_SPACE_THRESHOLD_DEFAULT. The free space threshold setting is ignored unless variable length records are enabled.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetKeyOnly()
Set key only.
- Parameters
-
[in] | enableKeyOnly | Enable key only? |
- Description
- Key only is disabled by default. Enabling key only will cause the system data mode to be ignored.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bkeyonly.cpp.
◆ SetPageSize()
Set the page size.
- Parameters
-
[in] | pageSize | The page size. |
[in] | enablePageCompression | Enable page compression? |
- Description
- Page size defaults to Btrieve::PAGE_SIZE_4096. Page compression is disabled by default and requires file version Btrieve::FILE_VERSION_9_5 or greater. Not all page sizes are valid for all file versions. Pages sizes greater than 4096 require file version Btrieve::FILE_VERSION_9_0 or greater. Pages sizes which are unsupported for a particular file version will be rounded up to the next supported size.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetPreallocatedPageCount()
Btrieve::StatusCode BtrieveFileAttributes::SetPreallocatedPageCount |
( |
int |
preallocatedPageCount | ) |
|
Set the preallocated page count.
- Parameters
-
[in] | preallocatedPageCount | The preallocated page count. The preallocated page count must be between 0 and 65535, inclusive. |
- Description
- Preallocated page count defaults to zero.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetRecordCompressionMode()
Set record compression mode.
- Parameters
-
[in] | recordCompressionMode | The record compression mode. |
- Description
- Record compression defaults to Btrieve::RECORD_COMPRESSION_MODE_NONE. Compression mode blank truncation requires variable length records be enabled.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetReservedDuplicatePointerCount()
Btrieve::StatusCode BtrieveFileAttributes::SetReservedDuplicatePointerCount |
( |
int |
reservedDuplicatePointerCount | ) |
|
Set the reserved duplicate pointer count.
- Parameters
-
[in] | reservedDuplicatePointerCount | The reserved duplicate pointer count. The reserved duplicate pointer count must be between 0 and 119, inclusive. |
- Description
- Reserved duplicate pointer count defaults to zero. The maximum reserved duplicate pointer count may be less than 119 depending on file version and page size. For example, a file version of Btrieve::FILE_VERSION_9_0 and page size of Btrieve::PAGE_SIZE_3584 allows for a maximum reserved duplicate pointer count of 54.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfileattributes.cpp.
◆ SetSystemDataMode()
◆ SetVariableLengthRecordsMode()