dime
0.9.1
Portable DXF file library
|
The dimeBase class is the superclass for most classes in Dime. More...
#include <dime/Base.h>
Public Member Functions | |
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) |
virtual int | typeId () const =0 |
The dimeBase class is the superclass for most classes in Dime.
dimeBase implements the new operator to enable use of the special-purpose memory manager class, dimeMemHandler. It also implements a simple runtime type checking system.
dimeBase::dimeBase | ( | void | ) |
Constructor.
|
virtual |
virtual destructor.
|
virtual |
Returns true if the object is of type typeid or is inherited from it. Function in base class checks whether thetypeid equals the virtual dimeBase::typeId() value or equals dimeBaseType. Must be implemented by all subclasses that are superclasses of other classes, and should check if thetypeid equals its typeId, and then call its parent's isOfType function. Leaf-classes do not have to implement this method.
Reimplemented in dimeClass, dimeEntity, dimeFaceEntity, dimeObject, dimeRecordHolder, dimeSection, dimeTableEntry, and dimeExtrusionEntity.
|
pure virtual |
Must be implemented by all subclasses, and should return an unique id for that class.
Implemented in dimeUnknownClass, dime3DFace, dimeArc, dimeBlock, dimeCircle, dimeEllipse, dimeExtrusionEntity, dimeFaceEntity, dimeInsert, dimeLine, dimeLWPolyline, dimePoint, dimePolyline, dimeSolid, dimeSpline, dimeText, dimeTrace, dimeUnknownEntity, dimeVertex, dimeUnknownObject, dimeDoubleRecord, dimeFloatRecord, dimeHexRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, dimeStringRecord, dimeBlocksSection, dimeClassesSection, dimeEntitiesSection, dimeHeaderSection, dimeObjectsSection, dimeTablesSection, dimeUnknownSection, dimeLayerTable, dimeTable, dimeUCSTable, dimeUnknownTable, dimeObject, dimeRecord, dimeSection, and dimeTableEntry.