The Btrieve document set class.
More...
#include <btrieveCpp.h>
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.
- Examples
- bcollection.cpp.
◆ BtrieveDocumentSet()
BtrieveDocumentSet::BtrieveDocumentSet |
( |
| ) |
|
◆ ~BtrieveDocumentSet()
BtrieveDocumentSet::~BtrieveDocumentSet |
( |
| ) |
|
◆ GetLastStatusCode()
Get the last status code.
- Note
- This method is intended for use following methods which don't return a status code.
- Snippet
- C++ bcollection.cpp
if ((size = btrieveDocumentSet.
Size()) < 0)
{
goto leave;
}
Python bcollection.py rc = btrieveDocumentSet.Size()
assert(rc >= 0), "Error: BtrieveDocumentSet::Size():%d:%s\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveDocumentSet.GetLastStatusCode()))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bcollection.cpp.
◆ PopFirst()
int BtrieveDocumentSet::PopFirst |
( |
| ) |
|
Remove and return the first document identifier from the set.
- Snippet
- C++ bcollection.cpp
if ((
id = btrieveDocumentSet.
PopFirst()) < 0)
{
goto leave;
}
Python bcollection.py rc = btrieveDocumentSet.PopFirst()
assert(rc >= 0), "Error: BtrieveDocumentSet::Size():%d:%s\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveDocumentSet.GetLastStatusCode()))
- Return values
-
- Examples
- bcollection.cpp.
◆ PopLast()
int BtrieveDocumentSet::PopLast |
( |
| ) |
|
Remove and return the last document identifier from the set.
- Return values
-
◆ Size()
int BtrieveDocumentSet::Size |
( |
| ) |
|
Return the number of document identifiers in the set.
- Snippet
- C++ bcollection.cpp
if ((size = btrieveDocumentSet.
Size()) < 0)
{
goto leave;
}
Python bcollection.py rc = btrieveDocumentSet.Size()
assert(rc >= 0), "Error: BtrieveDocumentSet::Size():%d:%s\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveDocumentSet.GetLastStatusCode()))
- Return values
-
- Examples
- bcollection.cpp.