#include <dime/tables/Table.h>
Inheritance diagram for dimeTable::
Public Methods | |
dimeTable (dimeMemHandler *const memhandler) | |
virtual | ~dimeTable () |
bool | read (dimeInput *const in) |
bool | write (dimeOutput *const out) |
dimeTable * | copy (dimeModel *const model) const |
int | typeId () const |
int | countRecords () const |
int | tableType () const |
const char * | tableName () const |
int | getNumTableEntries () const |
dimeTableEntry * | getTableEntry (const int idx) |
void | insertTableEntry (dimeTableEntry *const tableEntry, const int idx=-1) |
void | removeTableEntry (const int idx) |
int | getNumTableRecords () const |
dimeRecord * | getTableRecord (const int idx) |
void | insertTableRecord (dimeRecord *const record, const int idx=-1) |
void | removeTableRecord (const int idx) |
This class will not be allocated by the memory handler, but it will store a pointer to the memory handler, and it will be used to allocate table entries and records.
|
Constructor. |
|
Destructor. |
|
Counts the number of records in this table. |
|
Returns the number of table enties in this table. |
|
Returns the number of table records in this table. Table records precedes the table entries, and contain som information about this table. The max. entries record (group code 70), is handled automatically by this class, and should not be set by the user. |
|
Returns the table entry at index idx. |
|
Returns the table record at index idx. |
|
Inserts a new table entry at index idx. If idx is negative, the table entry will be inserted at the end of the list of tableEntries. |
|
Inserts a new record at index idx. If idx is negative, the record will be inserted at the end of the list of records. |
|
Reads a table. |
|
Removes (and deletes if no memhandler is used) the table entry at index idx. |
|
Removes (and deletes if no memhandler is used) the record at index idx. |
|
Must be implemented by all subclasses, and should return an unique id for that class. Reimplemented from dimeBase. |
|
Writes the table to file. |