dime  0.9.1
Portable DXF file library
Loading...
Searching...
No Matches
dimeTable Class Reference

The dimeTable class stores table entries. More...

#include <dime/tables/Table.h>

Inheritance diagram for dimeTable:
dimeBase

Public Member Functions

 dimeTable (dimeMemHandler *const memhandler)
 
virtual ~dimeTable ()
 
dimeTablecopy (dimeModel *const model) const
 
int countRecords () const
 
int getNumTableEntries () const
 
int getNumTableRecords () const
 
dimeTableEntrygetTableEntry (const int idx)
 
dimeRecordgetTableRecord (const int idx)
 
void insertTableEntry (dimeTableEntry *const tableEntry, const int idx=-1)
 
void insertTableRecord (dimeRecord *const record, const int idx=-1)
 
bool read (dimeInput *const in)
 
void removeTableEntry (const int idx)
 
void removeTableRecord (const int idx)
 
void setTableName (const char *name)
 
const char * tableName () const
 
int tableType () const
 
int typeId () const
 
bool write (dimeOutput *const out)
 
- Public Member Functions inherited from dimeBase
 dimeBase (void)
 
virtual ~dimeBase ()
 
virtual bool isOfType (const int thetypeid) const
 
void operator delete (void *ptr)
 
void * operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4)
 

Additional Inherited Members

- Public Types inherited from dimeBase
enum  {
  dimeBaseType = 1 , dimeRecordType , dimeStringRecordType , dimeFloatRecordType ,
  dimeDoubleRecordType , dimeInt8RecordType , dimeInt16RecordType , dimeInt32RecordType ,
  dimeHexRecordType , dimeRecordHolderType , dimeClassType , dimeUnknownClassType ,
  dimeObjectType , dimeUnknownObjectType , dimeEntityType , dimeUnknownEntityType ,
  dimePolylineType , dimeVertexType , dimeFaceEntityType , dimeExtrusionEntityType ,
  dime3DFaceType , dimeSolidType , dimeTraceType , dimeLineType ,
  dimeTextType , dimePointType , dimeBlockType , dimeInsertType ,
  dimeCircleType , dimeArcType , dimeLWPolylineType , dimeEllipseType ,
  dimeSplineType , dimeSectionType , dimeUnknownSectionType , dimeEntitiesSectionType ,
  dimeBlocksSectionType , dimeTablesSectionType , dimeHeaderSectionType , dimeClassesSectionType ,
  dimeObjectsSectionType , dimeTableType , dimeTableEntryType , dimeUnknownTableType ,
  dimeUCSTableType , dimeLayerTableType , dimeLastTypeTag
}
 

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.

Constructor & Destructor Documentation

◆ dimeTable()

dimeTable::dimeTable ( dimeMemHandler *const memhandler)

Constructor.

◆ ~dimeTable()

dimeTable::~dimeTable ( )
virtual

Destructor.

Member Function Documentation

◆ countRecords()

int dimeTable::countRecords ( ) const

Counts the number of records in this table.

◆ getNumTableEntries()

int dimeTable::getNumTableEntries ( ) const

Returns the number of table entries in this table.

◆ getNumTableRecords()

int dimeTable::getNumTableRecords ( ) const

Returns the number of table records in this table. Table records precedes the table entries, and contain some 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.

◆ getTableEntry()

dimeTableEntry * dimeTable::getTableEntry ( const int idx)

Returns the table entry at index idx.

◆ getTableRecord()

dimeRecord * dimeTable::getTableRecord ( const int idx)

Returns the table record at index idx.

◆ insertTableEntry()

void dimeTable::insertTableEntry ( dimeTableEntry *const tableEntry,
const int idx = -1 )

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 table entries.

◆ insertTableRecord()

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

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

◆ read()

bool dimeTable::read ( dimeInput *const file)

Reads a table.

◆ removeTableEntry()

void dimeTable::removeTableEntry ( const int idx)

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

◆ removeTableRecord()

void dimeTable::removeTableRecord ( const int idx)

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

◆ typeId()

int dimeTable::typeId ( ) const
virtual

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

Implements dimeBase.

◆ write()

bool dimeTable::write ( dimeOutput *const file)

Writes the table to file.


The documentation for this class was generated from the following files: