Public Member Functions | List of all members
BtrieveBulkCreateResult Class Reference

The Btrieve bulk create result class. More...

#include <btrieveCpp.h>

Public Member Functions

 BtrieveBulkCreateResult ()
 
 ~BtrieveBulkCreateResult ()
 
Btrieve::StatusCode GetLastStatusCode ()
 Get the last status code. More...
 
int GetRecordCount ()
 Get the record count. More...
 
long long GetRecordCursorPosition (int recordNumber)
 Get the record cursor position. More...
 

Detailed Description

The Btrieve bulk create result class.

Examples:
btestbulk.cpp.

Constructor & Destructor Documentation

◆ BtrieveBulkCreateResult()

BtrieveBulkCreateResult::BtrieveBulkCreateResult ( )
Snippet
BtrieveBulkCreateResult btrieveBulkCreateResult;

◆ ~BtrieveBulkCreateResult()

BtrieveBulkCreateResult::~BtrieveBulkCreateResult ( )

Member Function Documentation

◆ GetLastStatusCode()

Btrieve::StatusCode BtrieveBulkCreateResult::GetLastStatusCode ( )

Get the last status code.

Snippet
// If GetRecordCount() fails.
if ((recordCount = btrieveBulkCreateResult.GetRecordCount()) != (MAX_X - MIN_X + 1))
{
status = btrieveBulkCreateResult.GetLastStatusCode();
printf("Error: BtrieveBulkCreateResult::GetRecordCount():%d:%s.\n", status, Btrieve::StatusCodeToString(status));
goto leave;
}
Return values
= Btrieve::STATUS_CODE_NO_ERRORSuccess.
!= Btrieve::STATUS_CODE_NO_ERRORAn error has occurred.
See also
Btrieve::StatusCodeToString
Examples:
btestbulk.cpp.

◆ GetRecordCount()

int BtrieveBulkCreateResult::GetRecordCount ( )

Get the record count.

Snippet
// If GetRecordCount() fails.
if ((recordCount = btrieveBulkCreateResult.GetRecordCount()) != (MAX_X - MIN_X + 1))
{
status = btrieveBulkCreateResult.GetLastStatusCode();
printf("Error: BtrieveBulkCreateResult::GetRecordCount():%d:%s.\n", status, Btrieve::StatusCodeToString(status));
goto leave;
}
Return values
>= 0The record count.
-1An error has occurred. Use BtrieveBulkCreateResult::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error.
Examples:
btestbulk.cpp.

◆ GetRecordCursorPosition()

long long BtrieveBulkCreateResult::GetRecordCursorPosition ( int  recordNumber)

Get the record cursor position.

Note
The signature for this method changed in PSQL 13.20.
Parameters
[in]recordNumberThe record number.
Snippet
// If GetRecordCursorPosition() fails.
if ((cursorPosition = btrieveBulkCreateResult.GetRecordCursorPosition(i)) < 0)
{
status = btrieveBulkCreateResult.GetLastStatusCode();
printf("Error: BtrieveBulkCreateResult::GetRecordCursorPosition():%d:%s.\n", status, Btrieve::StatusCodeToString(status));
goto leave;
}
Return values
>= 0The record cursor position.
-1An error has occurred. Use BtrieveBulkCreateResult::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error.
Examples:
btestbulk.cpp.