#include <ShapeUpAPI.h>
Inheritance diagram for SURecordset:
Public Member Functions | |
SURecordset () | |
SURecordset (SUHANDLE hRecordset) | |
void | Next () |
void | Prev () |
void | First () |
void | Last () |
SUHANDLE | Get () |
bool | Eof () |
bool | Bof () |
void | Close () |
size_t | GetCount () |
Once a recordset is opened, it must be closed with a call to Close().
SURecordset::SURecordset | ( | ) | [inline] |
Default constructor.
SURecordset::SURecordset | ( | SUHANDLE | hRecordset | ) | [inline] |
Constructor.
hRecordset | is a handle to a ShapeUp recordset. |
void SURecordset::Next | ( | ) | [inline] |
Advances the recordset cursor to the next record.
void SURecordset::Prev | ( | ) | [inline] |
Backs the recordset cursor to the previous record.
void SURecordset::First | ( | ) | [inline] |
Sets the recordset cursor to the first record.
void SURecordset::Last | ( | ) | [inline] |
Sets the recordset cursor to the last record.
SUHANDLE SURecordset::Get | ( | ) | [inline] |
Retreives the element at the recordset cursor. The object return type depends on the source of the recordset. It is safe to store a handle to an object for later use while traversing the recordset.
bool SURecordset::Eof | ( | ) | [inline] |
Checks if the recordset cursor is advanced beyond the last record.
bool SURecordset::Bof | ( | ) | [inline] |
Checks if the recordset cursor is pointing before the first record.
void SURecordset::Close | ( | ) | [inline] |
Closes the recordset, and frees internal resources.
IMPORTANT: All recordsets must be closed to avoid memory leaks.
size_t SURecordset::GetCount | ( | ) | [inline] |
Gets the number of records in the recordset.