The Btrieve bulk retrieve attributes class.
More...
#include <btrieveCpp.h>
The Btrieve bulk retrieve attributes class.
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ BtrieveBulkRetrieveAttributes()
BtrieveBulkRetrieveAttributes::BtrieveBulkRetrieveAttributes |
( |
| ) |
|
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
btrieveBulkRetrieveAttributes = btrievePython.BtrieveBulkRetrieveAttributes()
assert(btrieveBulkRetrieveAttributes != None)
◆ ~BtrieveBulkRetrieveAttributes()
BtrieveBulkRetrieveAttributes::~BtrieveBulkRetrieveAttributes |
( |
| ) |
|
◆ AddField()
Add a field.
- Parameters
-
- Description
- Bulk retrieve attributes have no fields initially. Offset plus length is limited to Btrieve::MAXIMUM_RECORD_LENGTH. The sum of the lengths of all added fields is limited to Btrieve::MAXIMUM_RECORD_LENGTH.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveAttributes.AddField(0, recordLength)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: btrieveBulkRetrieveAttributes::AddField():%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 btestbulk.cpp.
◆ AddFilter()
Add a filter.
- Parameters
-
[in] | btrieveFilter | The filter. |
- Description
- Bulk retrieve attributes have no filters initially.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveAttributes.AddFilter(btrieveFilter)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveBulkRetrieveAttributes::AddFilter():%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 btestbulk.cpp.
◆ AddSystemField()
Add a system field.
- Parameters
-
[in] | systemField | The system field. |
- Description
- Bulk retrieve attributes have no system fields initially. The sum of the lengths of all added fields is limited to Btrieve::MAXIMUM_RECORD_LENGTH.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetMaximumRecordCount()
Btrieve::StatusCode BtrieveBulkRetrieveAttributes::SetMaximumRecordCount |
( |
int | maximumRecordCount | ) |
|
Set the maximum record count.
- Parameters
-
- Description
- Maximum record count defaults to zero.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveAttributes.SetMaximumRecordCount(1)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveBulkRetrieveAttributes::SetMaximumRecordCount():%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 btestbulk.cpp.
◆ SetMaximumRejectCount()
Btrieve::StatusCode BtrieveBulkRetrieveAttributes::SetMaximumRejectCount |
( |
int | maximumRejectCount | ) |
|
Set the maximum reject count.
- Parameters
-
[in] | maximumRejectCount | The maximum reject count. The maximum reject count must be greater than or equal to 0 and less than 65536. A value of zero sets the maximum reject count to the Zen defined value. |
- Description
- Maximum reject count defaults to the Zen defined value.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveAttributes.SetMaximumRejectCount(max_x - min_x + 1)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveBulkRetrieveAttributes::SetMaximumRejectCount():%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 btestbulk.cpp.
◆ SetSkipCurrentRecord()
Btrieve::StatusCode BtrieveBulkRetrieveAttributes::SetSkipCurrentRecord |
( |
bool | skipCurrentRecord | ) |
|
Set skip current record.
- Parameters
-
[in] | skipCurrentRecord | Skip current record? |
- Description
- Skip current record is disabled by default.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveAttributes.SetSkipCurrentRecord(False)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveBulkRetrieveAttributes::SetSkipCurrentRecord():%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 btestbulk.cpp.