Public Member Functions | List of all members
BtrieveDocumentSet Class Reference

The Btrieve document set class. More...

#include <btrieveCpp.h>

Public Member Functions

 BtrieveDocumentSet ()
 
 ~BtrieveDocumentSet ()
 
Btrieve::StatusCode GetLastStatusCode ()
 Get the last status code. More...
 
int PopFirst ()
 Remove and return the first document identifier from the set. More...
 
int PopLast ()
 Remove and return the last document identifier from the set. More...
 
int Size ()
 Return the number of document identifiers in the set. More...
 

Detailed Description

The Btrieve document set class.

Note
This class is currently a beta release; feedback about usage and suggestions for improvements are requested, and can be submitted at https://communities.actian.com/s/actian-zen.

The document set is an ordered set.

Constructor & Destructor Documentation

◆ BtrieveDocumentSet()

BtrieveDocumentSet::BtrieveDocumentSet ( )

◆ ~BtrieveDocumentSet()

BtrieveDocumentSet::~BtrieveDocumentSet ( )

Member Function Documentation

◆ GetLastStatusCode()

Btrieve::StatusCode BtrieveDocumentSet::GetLastStatusCode ( )

Get the last status code.

Note
This method is intended for use following methods which don't return a status code.
Return values
= Btrieve::STATUS_CODE_NO_ERRORSuccess.
!= Btrieve::STATUS_CODE_NO_ERRORAn error has occurred.
See also
Btrieve::StatusCodeToString

◆ PopFirst()

int BtrieveDocumentSet::PopFirst ( )

Remove and return the first document identifier from the set.

Return values
>= 0The popped document identifier.
-1An error has occurred. Use BtrieveDocumentSet::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error.

◆ PopLast()

int BtrieveDocumentSet::PopLast ( )

Remove and return the last document identifier from the set.

Return values
>= 0The popped document identifier.
-1An error has occurred. Use BtrieveDocumentSet::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error.

◆ Size()

int BtrieveDocumentSet::Size ( )

Return the number of document identifiers in the set.

Return values
>= 0The number of document identifiers in the set.
-1An error has occurred. Use BtrieveDocumentSet::GetLastStatusCode to determine the Btrieve::StatusCode associated with any error.