The Btrieve bulk retrieve attributes class.
More...
#include <btrieveCpp.h>
|
| | BtrieveBulkRetrieveAttributes () |
| |
| | ~BtrieveBulkRetrieveAttributes () |
| |
| Btrieve::StatusCode | AddAbsoluteValueField (Btrieve::DataType dataType, int offset, int length) |
| | Add an absolute value field.
|
| |
| Btrieve::StatusCode | AddCeilingField (Btrieve::DataType dataType, int offset, int length) |
| | Add a ceiling field.
|
| |
| Btrieve::StatusCode | AddField (int offset, int length) |
| | Add a field.
|
| |
| Btrieve::StatusCode | AddFilter (BtrieveFilter *btrieveFilter) |
| | Add a filter.
|
| |
| Btrieve::StatusCode | AddFloorField (Btrieve::DataType dataType, int offset, int length) |
| | Add a floor field.
|
| |
| Btrieve::StatusCode | AddMaximumAggregate (Btrieve::DataType dataType, int offset, int length) |
| | Add a maximum aggregate.
|
| |
| Btrieve::StatusCode | AddMinimumAggregate (Btrieve::DataType dataType, int offset, int length) |
| | Add a minimum aggregate.
|
| |
| Btrieve::StatusCode | AddRoundField (Btrieve::DataType dataType, int offset, int length, int precision=0) |
| | Add a round field.
|
| |
| Btrieve::StatusCode | AddSystemField (Btrieve::SystemField systemField) |
| | Add a system field.
|
| |
| Btrieve::StatusCode | AddTruncateField (Btrieve::DataType dataType, int offset, int length, int precision=0) |
| | Add a truncate field.
|
| |
| Btrieve::StatusCode | SetMaximumRecordCount (int maximumRecordCount) |
| | Set the maximum record count.
|
| |
| Btrieve::StatusCode | SetMaximumRejectCount (int maximumRejectCount) |
| | Set the maximum reject count.
|
| |
| Btrieve::StatusCode | SetSkipCurrentRecord (bool skipCurrentRecord) |
| | Set skip current record.
|
| |
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 |
( |
| ) |
|
◆ AddAbsoluteValueField()
Add an absolute value 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. The field specified by offset and length must be in little endian format. Aggregates may not be added to a bulk retrieve attributes containing a field.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ AddCeilingField()
Add a ceiling 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. The field specified by offset and length must be in little endian format. Aggregates may not be added to a bulk retrieve attributes containing a field.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ 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. Aggregates may not be added to a bulk retrieve attributes containing a field.
- 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.
◆ AddFloorField()
Add a floor 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. The field specified by offset and length must be in little endian format. Aggregates may not be added to a bulk retrieve attributes containing a field.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ AddMaximumAggregate()
Add a maximum aggregate.
- Parameters
-
- Description
- Bulk retrieve attributes have no aggregates 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. The field specified by offset and length must be in little endian format. Fields may not be added to a bulk retrieve attributes containing an aggregate.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ AddMinimumAggregate()
Add a minimum aggregate.
- Parameters
-
- Description
- Bulk retrieve attributes have no aggregates 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. The field specified by offset and length must be in little endian format. Fields may not be added to a bulk retrieve attributes containing an aggregate.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ AddRoundField()
Add a round 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. The field specified by offset and length must be in little endian format. Aggregates may not be added to a bulk retrieve attributes containing a field.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ 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. Aggregates may not be added to a bulk retrieve attributes containing a field.
- Return values
-
| = Btrieve::STATUS_CODE_NO_ERROR | Success. |
| != Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ AddTruncateField()
Add a truncate 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. The field specified by offset and length must be in little endian format. Aggregates may not be added to a bulk retrieve attributes containing a field.
- 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 Btrieve::MAXIMUM_BULK_RECORD_COUNT. Aggregates do not honor the maximum record count.
- Note
- The maximum record count default changed from zero to Btrieve::MAXIMUM_BULK_RECORD_COUNT in Zen v16 R1.
- 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. Aggregates do not honor the maximum reject count.
- 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.