The Btrieve index attributes class.
More...
#include <btrieveCpp.h>
◆ BtrieveIndexAttributes()
BtrieveIndexAttributes::BtrieveIndexAttributes |
( |
| ) |
|
- Snippet
- C++ btest.cpp Python btest.py
btrieveIndexAttributes = btrievePython.BtrieveIndexAttributes()
assert(btrieveIndexAttributes != None)
◆ ~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
- C++ bindexattributes.cpp Python bindexattributes.py
rc = btrieveIndexAttributes.SetACSName("u54-msft_enus_0")
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveIndexAttributes::SetACSName():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- 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()
Set the duplicate mode.
- Parameters
-
[in] | duplicateMode | The duplicate mode. |
- Description
- Duplicate mode defaults to Btrieve::DUPLICATE_MODE_NOT_ALLOWED.
- Snippet
- C++ bindexattributes.cpp Python bindexattributes.py
rc = btrieveIndexAttributes.SetDuplicateMode(btrievePython.Btrieve.DUPLICATE_MODE_ALLOWED_NONREPEATING)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveIndexAttributes::SetDuplicateMode():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bindexattributes.cpp.
◆ SetIndex()
Set the index.
- Parameters
-
- Description
- Index defaults to the first available index starting at Btrieve::INDEX_1.
- Snippet
- C++ bindexattributes.cpp Python bindexattributes.py
rc = btrieveIndexAttributes.SetIndex(btrievePython.Btrieve.INDEX_119)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveIndexAttributes::SetIndex():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bindexattributes.cpp.
◆ SetModifiable()
Set modifiable.
- Parameters
-
[in] | enableModifiable | Enable modifiable? |
- Description
- Modifiable is enabled by default.
- Snippet
- C++ bindexattributes.cpp Python bindexattributes.py
rc = btrieveIndexAttributes.SetModifiable(False)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveIndexAttributes::SetModifiable():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- Test_BTRV2.cpp, and bindexattributes.cpp.