| http://www.coin3d.org/ http://www.kongsberg.com/kogt/

Public Types | Public Member Functions | List of all members
dimeBase Class Referenceabstract

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

`#include <dime/Base.h>`

Inheritance diagram for dimeBase:

## Public Types

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
}

## Public Member Functions

| dimeBase (void)
virtual | ~dimeBase ()
virtual int | typeId () const =0
virtual bool | isOfType (const int thetypeid) const
void * | operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4)
void | operator delete (void *ptr)

## 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.

## Constructor & Destructor Documentation

## ◆ dimeBase()

dimeBase::dimeBase | ( | void |  | ) |

Constructor.

## ◆ ~dimeBase()

dimeBase::~dimeBase | ( |  | ) |

virtual

virtual destructor.

## Member Function Documentation

## ◆ isOfType()

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 dimeEntity, dimeFaceEntity, dimeRecordHolder, dimeClass, dimeObject, dimeSection, dimeTableEntry, and dimeExtrusionEntity.

References typeId().

Referenced by dimeSection::isOfType(), and dimeRecordHolder::isOfType().

## ◆ typeId()

int dimeBase::typeId | ( |  | ) | const

pure virtual

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

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

Referenced by dxfConverter::getColorIndex(), dxfConverter::getLayerData(), isOfType(), dimeRecordHolder::setRecords(), and dimeRecordHolder::shouldWriteRecord().

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

- Base.h
- Base.cpp

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