Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

Public Member Functions | List of all members
dimeTablesSection Class Reference

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

#include <dime/sections/TablesSection.h>

Inheritance diagram for dimeTablesSection:
dimeSection dimeBase

Public Member Functions

 dimeTablesSection (dimeMemHandler *const memhandler=NULL)
 
virtual ~dimeTablesSection ()
 
virtual const char * getSectionName () const
 
virtual dimeSectioncopy (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
 
class dimeTablegetTable (const int idx)
 
void removeTable (const int idx)
 
void insertTable (dimeTable *const table, const int idx=-1)
 
- Public Member Functions inherited from dimeSection
 dimeSection (dimeMemHandler *const memhandler)
 
virtual ~dimeSection ()
 
virtual bool isOfType (const int thetypeid) const
 
- Public Member Functions inherited from dimeBase
 dimeBase (void)
 
virtual ~dimeBase ()
 
void * operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4)
 
void operator delete (void *ptr)
 

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
}
 
- Static Public Member Functions inherited from dimeSection
static dimeSectioncreateSection (const char *const sectionname, dimeMemHandler *memhandler)
 
- Protected Attributes inherited from dimeSection
dimeMemHandlermemHandler
 

Detailed Description

The dimeTablesSection class handles a TABLES section.

Constructor & Destructor Documentation

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

Constructor.

dimeTablesSection::~dimeTablesSection ( )
virtual

Destructor.

References dimeArray< T >::count().

Member Function Documentation

int dimeTablesSection::countRecords ( ) const
virtual

Returns the number of records in this section.

Implements dimeSection.

References dimeArray< T >::count().

int dimeTablesSection::getNumTables ( ) const

Returns the number of tables in this section.

References dimeArray< T >::count().

dimeTable * dimeTablesSection::getTable ( const int  idx)

Returns the table at index idx.

References dimeArray< T >::count().

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.

References dimeArray< T >::count().

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

Will read a dxf TABLES section.

Implements dimeSection.

References dimeInput::getMemHandler(), dimeTable::read(), dimeInput::readGroupCode(), and dimeInput::readString().

void dimeTablesSection::removeTable ( const int  idx)

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

References dimeArray< T >::count(), and dimeArray< T >::removeElem().

int dimeTablesSection::typeId ( ) const
virtual

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

Implements dimeSection.


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

Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Jan 20 2016 23:37:47 for Dime by Doxygen 1.8.9.1.