|
|
|
|
|
|
|||
#include <openrj/cpp/filedatabase.hpp>
Inheritance diagram for FileDatabase:

Public Member Functions | |
Construction | |
| FileDatabase (char const *jarName, unsigned flags=0) | |
| Constructs a database instance from the given database file, and the optional flags. | |
| virtual | ~FileDatabase () |
| Closes the database. | |
| virtual void | Close () |
| Closes the database. | |
Attributes | |
| char const * | GetPath () const |
| Returns the path of the database. | |
| FileDatabase | ( | char const * | jarName, | |
| unsigned | flags = 0 | |||
| ) | [inline, explicit] |
Constructs a database instance from the given database file, and the optional flags.
| jarName | The database name | |
| flags | Combination of the ORJ_FLAG enumeration |
| virtual ~FileDatabase | ( | ) | [inline, virtual] |
Closes the database.
| virtual void Close | ( | ) | [inline, virtual] |
| const Field GetField | ( | size_t | index | ) | const [inline, inherited] |
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, inherited] |
Returns the number of fields in the database.
| size_t GetNumLines | ( | ) | const [inline, inherited] |
Returns the number of lines in the database.
| size_t GetNumRecords | ( | ) | const [inline, inherited] |
Returns the number of records in the database.
| char const* GetPath | ( | ) | const [inline] |
Returns the path of the database.
| const Record GetRecord | ( | size_t | index | ) | const [inline, inherited] |
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, inherited] |
Indicates whether the database is open.
| const Record operator[] | ( | int | index | ) | const [inline, inherited] |
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, inherited] |
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 |