![]() |
The Btrieve key segment class. More...
#include <btrieveCpp.h>
Public Member Functions | |
| BtrieveKeySegment () | |
| ~BtrieveKeySegment () | |
| Btrieve::ACSMode | GetACSMode () |
| Get the alternate collation sequence mode. More... | |
| int | GetACSNumber () |
| Get the alternate collation sequence number. More... | |
| Btrieve::DataType | GetDataType () |
| Get the data type. More... | |
| int | GetDescendingSortOrder () |
| Get string. More... | |
| Btrieve::DuplicateMode | GetDuplicateMode () |
| Get the duplicate mode. More... | |
| Btrieve::Index | GetIndex () |
| Get the index. More... | |
| int | GetKeyContinues () |
| Get key continues. More... | |
| Btrieve::StatusCode | GetLastStatusCode () |
| Get the last status code. More... | |
| int | GetLength () |
| Get the length. More... | |
| int | GetModifiable () |
| Get modifiable. More... | |
| Btrieve::NullKeyMode | GetNullKeyMode () |
| Get the null key mode. More... | |
| int | GetNullValue () |
| Get the null value. More... | |
| int | GetOffset () |
| Get the offset. More... | |
| long long | GetUniqueValueCount () |
| Get the unique value count. More... | |
| Btrieve::StatusCode | SetDescendingSortOrder (bool setDescendingSortOrder) |
| Set descending sort order. More... | |
| Btrieve::StatusCode | SetField (int offset, int length, Btrieve::DataType dataType) |
| Set the field. More... | |
| Btrieve::StatusCode | SetNullKeyMode (Btrieve::NullKeyMode nullKeyMode) |
| Set the null key mode. More... | |
| Btrieve::StatusCode | SetNullValue (int nullValue) |
| Set the null value. More... | |
The Btrieve key segment class.
| BtrieveKeySegment::BtrieveKeySegment | ( | ) |
| BtrieveKeySegment::~BtrieveKeySegment | ( | ) |
| Btrieve::ACSMode BtrieveKeySegment::GetACSMode | ( | ) |
Get the alternate collation sequence mode.
| != Btrieve::ACS_MODE_UNKNOWN | The alternate collation sequence mode. |
| = Btrieve::ACS_MODE_UNKNOWN | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetACSNumber | ( | ) |
Get the alternate collation sequence number.
| >= 0 | The alternate collation sequence number. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::DataType BtrieveKeySegment::GetDataType | ( | ) |
Get the data type.
| != Btrieve::DATA_TYPE_UNKNOWN | The data type. |
| = Btrieve::DATA_TYPE_UNKNOWN | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetDescendingSortOrder | ( | ) |
Get string.
| > 0 | Descending sort order is set. |
| 0 | Descending sort order isn't set. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::DuplicateMode BtrieveKeySegment::GetDuplicateMode | ( | ) |
Get the duplicate mode.
| != Btrieve::DUPLICATE_MODE_UNKNOWN | The duplicate mode. |
| = Btrieve::DUPLICATE_MODE_UNKNOWN | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::Index BtrieveKeySegment::GetIndex | ( | ) |
Get the index.
| != Btrieve::INDEX_UNKNOWN | The index. |
| = Btrieve::INDEX_UNKNOWN | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetKeyContinues | ( | ) |
Get key continues.
| > 0 | Key continues is set. |
| 0 | Key continues isn't set. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::StatusCode BtrieveKeySegment::GetLastStatusCode | ( | ) |
Get the last status code.
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
| int BtrieveKeySegment::GetLength | ( | ) |
Get the length.
| >= 0 | The length. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetModifiable | ( | ) |
Get modifiable.
| > 0 | Modifications are allowed. |
| 0 | Modifications are not allowed. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::NullKeyMode BtrieveKeySegment::GetNullKeyMode | ( | ) |
Get the null key mode.
| != Btrieve::NULL_KEY_MODE_UNKNOWN | The null key mode. |
| = Btrieve::NULL_KEY_MODE_UNKNOWN | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetNullValue | ( | ) |
Get the null value.
| >= 0 | The null value. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| int BtrieveKeySegment::GetOffset | ( | ) |
Get the offset.
| >= 0 | The offset. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| long long BtrieveKeySegment::GetUniqueValueCount | ( | ) |
Get the unique value count.
| >= 0 | The unique value count. |
| -1 | An error has occurred. Use BtrieveKeySegment::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error. |
| Btrieve::StatusCode BtrieveKeySegment::SetDescendingSortOrder | ( | bool | setDescendingSortOrder | ) |
Set descending sort order.
| [in] | setDescendingSortOrder | Enable descending sort order? |
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
| Btrieve::StatusCode BtrieveKeySegment::SetField | ( | int | offset, |
| int | length, | ||
| Btrieve::DataType | dataType | ||
| ) |
Set the field.
| [in] | offset | The offset. Offset must be less than Btrieve::MAXIMUM_RECORD_LENGTH. |
| [in] | length | The length. Length is limited to Btrieve::MAXIMUM_KEY_LENGTH. |
| [in] | dataType | The data type. |
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
| Btrieve::StatusCode BtrieveKeySegment::SetNullKeyMode | ( | Btrieve::NullKeyMode | nullKeyMode | ) |
Set the null key mode.
| [in] | nullKeyMode | The null key mode. |
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
| Btrieve::StatusCode BtrieveKeySegment::SetNullValue | ( | int | nullValue | ) |
Set the null value.
| [in] | nullValue | The null value. |
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
1.8.13