Main Page   Class Hierarchy   Compound List   File List   Compound Members  

dimeTablesSection Class Reference

The dimeTablesSection class handles a TABLES section. More...

#include <dime/sections/TablesSection.h>

Inheritance diagram for dimeTablesSection::

dimeSection dimeBase List of all members.

Public Methods

 dimeTablesSection (dimeMemHandler *const memhandler=NULL)
virtual ~dimeTablesSection ()
virtual const char * getSectionName () const
virtual dimeSection * copy (dimeModel *const model) const
virtual bool read (dimeInput *const file)
virtual bool write (dimeOutput *const file)
virtual int typeId () const
virtual int countRecords () const
int getNumTables () const
dimeTable * getTable (const int idx)
void removeTable (const int idx)
void insertTable (dimeTable *const table, const int idx=-1)

Detailed Description

The dimeTablesSection class handles a TABLES section.


Constructor & Destructor Documentation

dimeTablesSection::dimeTablesSection (  dimeMemHandler *const    memhandler = NULL ) 
 

Constructor.

dimeTablesSection::~dimeTablesSection (    )  [virtual]
 

Destructor.


Member Function Documentation

int dimeTablesSection::countRecords (    )  const [virtual]
 

Returns the number of records in this section.

Reimplemented from dimeSection.

int dimeTablesSection::getNumTables (    )  const
 

Returns the number of tables in this section.

dimeTable * dimeTablesSection::getTable (  const int    idx ) 
 

Returns the table at index idx.

void dimeTablesSection::insertTable (  dimeTable *const    table,
const int    idx = -1
) 
 

Inserts a new table at index idx. If idx is negative, the table will be inserted at the end of the list of tables. Be aware that the order of the tables might be important. For instance, the LTYPE table should always precede the LAYER table.

bool dimeTablesSection::read (  dimeInput *const    file )  [virtual]
 

Will read a dxf TABLES section.

Reimplemented from dimeSection.

void dimeTablesSection::removeTable (  const int    idx ) 
 

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

int dimeTablesSection::typeId (    )  const [virtual]
 

Must be implemented by all subclasses, and should return an unique id for that class.

Reimplemented from dimeSection.


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.