|
|
|
|
|
|
|||
#include <openrj/cpp/databasebase.hpp>
Inheritance diagram for DatabaseBase:

FileDatabase and MemoryDatabase classes.
Construction | |
| virtual | ~DatabaseBase () |
| Closes the database. | |
| virtual void | Close () |
| Closes the database. | |
| DatabaseBase (ORJDatabase const *database) | |
| Constructs a database instance from the given database structure. | |
| DatabaseBase | ( | ORJDatabase const * | database | ) | [inline, explicit, protected] |
Constructs a database instance from the given database structure.
| database | The pointer to the database structure |
| virtual ~DatabaseBase | ( | ) | [inline, virtual] |
Closes the database.
| virtual void Close | ( | ) | [inline, virtual] |
| const Field GetField | ( | size_t | index | ) | const [inline] |
Returns the requested record.
| index | The index of the record to be returned. Must be less than the value returned by GetNumRecords() |
| size_t GetNumFields | ( | ) | const [inline] |
Returns the number of fields in the database.
| size_t GetNumLines | ( | ) | const [inline] |
Returns the number of lines in the database.
| size_t GetNumRecords | ( | ) | const [inline] |
Returns the number of records in the database.
| const Record GetRecord | ( | size_t | index | ) | const [inline] |
Returns the requested record.
| index | The index of the record to be returned. Must be less than the value returned by GetNumRecords() |
| bool is_open | ( | ) | const [inline] |
Indicates whether the database is open.
| const Record operator[] | ( | int | index | ) | const [inline] |
Returns the requested record.
| index | The index of the record to be returned. Must be less than the value returned by GetNumRecords() |
| const Record operator[] | ( | size_t | index | ) | const [inline] |
Returns the requested record.
| index | The index of the record to be returned. Must be less than the value returned by GetNumRecords() |
|
|
| Open-RJ Library documentation © Synesis Software Pty Ltd, 2004-2005 |