#include <Database.h>
Inheritance diagram for Database:
Public Methods | |
MemHandle | getUnpackedRecord (UInt16 id, recordStructure *rec) DB_SECTION1 |
get the unpacked strucure of a given record. More... | |
MemHandle | getUnpackedRecord (recordStructure *rec) DB_SECTION1 |
get the unpacked strucure of the current record. More... | |
MemHandle | getUnpackedRecord (UInt32 uid, recordStructure *rec) DB_SECTION1 |
get the unpacked strucure of a given record. More... | |
Database (DmOpenRef db_open_ref) | |
constructor use when in need to access functions like pack/unpack from a static function. More... | |
Database (UInt32 type, UInt32 creator, Char *db_name) | |
initialize the databases. More... | |
Database (UInt32 type, UInt32 creator, Char *db_name, UInt16 categ_string) | |
initialize the databases. More... | |
virtual | ~Database () DB_SECTION1 |
closes the database. More... | |
virtual void | unpackRecord (recordStructure *rec, packedRecordStructure *packed_rec)=0 |
unpacks a record. More... | |
virtual void | packRecord (recordStructure *rec, MemHandle db_entry)=0 |
packs an account record. More... | |
virtual UInt16 | newRecord (recordStructure *rec) DB_SECTION1 |
packs and writes the data from rec at the end of the database. More... |
in your new class override the pure virtual function from this class and add anything you might thing useful
Definition at line 31 of file Database.h.
|
constructor use when in need to access functions like pack/unpack from a static function.
Definition at line 55 of file Database.h. |
|
initialize the databases.
Definition at line 61 of file Database.h. |
|
initialize the databases.
Definition at line 68 of file Database.h. |
|
closes the database.
Definition at line 152 of file Database.h. |
|
get the unpacked strucure of a given record.
Definition at line 90 of file Database.h. References GenericDB::getRecordId, and getUnpackedRecord. |
|
get the unpacked strucure of the current record.
Definition at line 120 of file Database.h. References getUnpackedRecord, GenericDB::isRecordSelected, and GenericDB::selected_record. |
|
get the unpacked strucure of a given record.
Definition at line 96 of file Database.h. References GenericDB::ref, and unpackRecord. Referenced by getUnpackedRecord. |
|
packs and writes the data from rec at the end of the database.
Reimplemented in AccountsDB. Definition at line 127 of file Database.h. References GenericDB::current_cat, packRecord, GenericDB::ref, and GenericDB::setRecordCategory. |
|
packs an account record. This function should be overloaded by all database classes
Implemented in AccountsDB. Referenced by newRecord. |
|
unpacks a record.
Implemented in AccountsDB. Referenced by getUnpackedRecord. |