The Btrieve index attributes class.
More...
#include <btrieveCpp.h>
◆ BtrieveIndexAttributes()
BtrieveIndexAttributes::BtrieveIndexAttributes |
( |
| ) |
|
◆ ~BtrieveIndexAttributes()
BtrieveIndexAttributes::~BtrieveIndexAttributes |
( |
| ) |
|
◆ AddKeySegment()
◆ SetACSMode()
◆ SetACSName()
Set the alternate collation sequence name.
- Note
- This method accepts international sort rule and unicode alternate collation sequence names only. Use BtrieveIndexAttributes::SetACSUserDefined to specify a user defined alternate collation sequence.
- Parameters
-
[in] | ACSName | The alternate collation sequence name. |
- Description
- By default there is no alternate collation sequence name. Setting the alternate collation sequence name also sets the alternate collation sequence mode to Btrieve::ACS_MODE_NAMED.
- Snippet
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples:
- bfilter.cpp, and bindexattributes.cpp.
◆ SetACSNumber()
Set the alternate collation sequence number.
- Parameters
-
[in] | ACSNumber | The alternate collation sequence number. |
- Description
- By default there is no alternate collation sequence number. Setting the alternate collation sequence number also sets the alternate collation sequence mode to Btrieve::ACS_MODE_NUMBERED.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetACSUserDefined()
Btrieve::StatusCode BtrieveIndexAttributes::SetACSUserDefined |
( |
const char * |
ACSName, |
|
|
const char * |
ACSMap, |
|
|
int |
ACSMapLength |
|
) |
| |
Set the user defined alternate collation sequence.
- Parameters
-
[in] | ACSName | The alternate collation sequence name. |
[in] | ACSMap | The alternate collation sequence map. |
[in] | ACSMapLength | The alternate collation sequence map length. |
- Description
- By default there is no user defined alternate collation sequence. Setting the user defined alternate collation sequence also sets the alternate collation sequence mode to Btrieve::ACS_MODE_NAMED.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetDuplicateMode()
◆ SetIndex()
◆ SetModifiable()
Set modifiable.
- Parameters
-
[in] | enableModifiable | Enable modifiable? |
- Description
- Modifiable is enabled 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:
- bindexattributes.cpp, and Test_BTRV2.cpp.