Class hierarchy   Compound list   Header files   Member list  

dimeTable Class Reference

The dimeTable class stores table entries. More...

#include <Table.h>

Inherits dimeBase.

List of all members.

Public Members


Detailed Description

The dimeTable class stores table entries.

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.


Member Function Documentation

dimeTable::dimeTable(dimeMemHandler * const memhandler)

Constructor.

dimeTable::~dimeTable() [virtual]

Destructor.

bool dimeTable::read(dimeInput * const file)

Reads a table.

bool dimeTable::write(dimeOutput * const file)

Writes the table to file.

dimeTable* dimeTable::copy(dimeModel * const model) const

int dimeTable::typeId() const

Reimplemented from dimeBase.

int dimeTable::countRecords() const

Counts the number of records in this table.

int dimeTable::tableType() const

const char* dimeTable::tableName() const

int dimeTable::getNumTableEntries() const

Returns the number of table enties in this table.

dimeTableEntry* dimeTable::getTableEntry(const int idx)

Returns the table entry at index idx.

void dimeTable::insertTableEntry(dimeTableEntry * const tableEntry, const int 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.

void dimeTable::removeTableEntry(const int idx)

Removes (and deletes if no memhandler is used) the table entry at index idx.

int dimeTable::getNumTableRecords() const

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.

dimeRecord* dimeTable::getTableRecord(const int idx)

Returns the table record at index idx.

void dimeTable::insertTableRecord(dimeRecord * const record, const int idx)

Inserts a new record at index idx. If idx is negative, the record will be inserted at the end of the list of records.

void dimeTable::removeTableRecord(const int idx)

Removes (and deletes if no memhandler is used) the record at index idx.


The documentation for this class was generated from the following files:
Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.