Class hierarchy   Compound list   Header files   Member list  

dimeBase Class Reference

The dimeBase class is the superclass for most classes in Dime. More...

#include <Base.h>

Inherited by dimeRecord, dimeRecordHolder, dimeSection and dimeTable.

List of all members.

Public Members


Detailed Description

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 run-time type checking system.


Member Function Documentation

int dimeBase::typeId() const [pure virtual]

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

Reimplemented in dime3DFace, dimeArc, dimeBlock, dimeBlocksSection, dimeCircle, dimeClassesSection, dimeDoubleRecord, dimeEllipse, dimeEntitiesSection, dimeExtrusionEntity, dimeFaceEntity, dimeFloatRecord, dimeHeaderSection, dimeHexRecord, dimeInsert, dimeInt16Record, dimeInt32Record, dimeInt8Record, dimeLWPolyline, dimeLayerTable, dimeLine, dimeObject, dimeObjectsSection, dimePoint, dimePolyline, dimeRecord, dimeSection, dimeSolid, dimeSpline, dimeStringRecord, dimeTable, dimeTableEntry, dimeTablesSection, dimeTrace, dimeUCSTable, dimeUnknownClass, dimeUnknownEntity, dimeUnknownObject, dimeUnknownSection, dimeUnknownTable and dimeVertex.

bool dimeBase::isOfType(const int thetypeid) const [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, dimeExtrusionEntity, dimeFaceEntity, dimeObject, dimeRecordHolder, dimeSection and dimeTableEntry.


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.