The Btrieve bulk retrieve result class.
More...
#include <btrieveCpp.h>
The Btrieve bulk retrieve result class.
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ BtrieveBulkRetrieveResult()
BtrieveBulkRetrieveResult::BtrieveBulkRetrieveResult |
( |
| ) |
|
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
btrieveBulkRetrieveResult = btrievePython.BtrieveBulkRetrieveResult()
assert(btrieveBulkRetrieveResult != None)
◆ ~BtrieveBulkRetrieveResult()
BtrieveBulkRetrieveResult::~BtrieveBulkRetrieveResult |
( |
| ) |
|
◆ GetLastStatusCode()
Get the last status code.
- Note
- This method is intended for use following methods which don't return a status code.
- Snippet
- C++ btestbulk.cpp
if (btrieveBulkRetrieveResult.
GetRecord(1, (
char *)&record,
sizeof(record)) !=
sizeof(record))
{
goto leave;
}
Python btestbulk.py rc = btrieveBulkRetrieveResult.GetRecord(1, record)
assert(rc == recordLength), "Error: BtrieveBulkRetrieveResult::GetRecord():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkRetrieveResult.GetLastStatusCode()))
- 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.
◆ GetRecord()
int BtrieveBulkRetrieveResult::GetRecord |
( |
int | recordNumber, |
|
|
char * | record, |
|
|
int | recordSize ) |
Get the record.
- Note
- This method doesn't return a Btrieve::StatusCode. See below for more information.
- Parameters
-
[in] | recordNumber | The record number. |
[out] | record | The record. |
[in] | recordSize | The record size. |
- Snippet
- C++ btestbulk.cpp
if (btrieveBulkRetrieveResult.
GetRecord(1, (
char *)&record,
sizeof(record)) !=
sizeof(record))
{
goto leave;
}
Python btestbulk.py rc = btrieveBulkRetrieveResult.GetRecord(1, record)
assert(rc == recordLength), "Error: BtrieveBulkRetrieveResult::GetRecord():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkRetrieveResult.GetLastStatusCode()))
- Return values
-
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ GetRecordCount()
int BtrieveBulkRetrieveResult::GetRecordCount |
( |
| ) |
|
Get the record count.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveResult.GetRecordCount()
assert(rc == 1), "Error: BtrieveBulkRetrieveResult::GetRecordCount():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkRetrieveResult.GetLastStatusCode()))
- Return values
-
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ GetRecordCursorPosition()
long long BtrieveBulkRetrieveResult::GetRecordCursorPosition |
( |
int | recordNumber | ) |
|
Get the record cursor position.
- Note
- The signature for this method changed in PSQL v13 R2.
- Parameters
-
[in] | recordNumber | The record number. |
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveResult.GetRecordCursorPosition(1)
assert(rc >= 0), "Error: BtrieveBulkRetrieveResult::GetRecordCursorPosition():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkRetrieveResult.GetLastStatusCode()))
- Return values
-
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ GetRecordLength()
int BtrieveBulkRetrieveResult::GetRecordLength |
( |
int | recordNumber | ) |
|
Get the record length.
- Parameters
-
[in] | recordNumber | The record number. |
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveBulkRetrieveResult.GetRecordLength(1)
assert(rc == recordLength), "Error: BtrieveBulkRetrieveResult::GetRecordLength():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveBulkRetrieveResult.GetLastStatusCode()))
- Return values
-
- Examples
- bfilter.cpp, and btestbulk.cpp.