Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

dimeEntitiesSection Class Reference

The dimeEntitiesSection class handles an ENTITIES section. More...

#include <dime/sections/EntitiesSection.h>

Inheritance diagram for dimeEntitiesSection:

dimeSection dimeBase List of all members.

Public Member Functions

 dimeEntitiesSection (dimeMemHandler *const memhandler=NULL)
virtual ~dimeEntitiesSection ()
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
void fixReferences (dimeModel *const model)
int getNumEntities () const
dimeEntitygetEntity (const int idx)
void removeEntity (const int idx)
void insertEntity (dimeEntity *const entity, const int idx=-1)

Friends

class dimeModel

Detailed Description

The dimeEntitiesSection class handles an ENTITIES section.


Constructor & Destructor Documentation

dimeEntitiesSection::dimeEntitiesSection dimeMemHandler *const   memhandler = NULL  ) 
 

Constructor.

dimeEntitiesSection::~dimeEntitiesSection  )  [virtual]
 

Destructor.


Member Function Documentation

int dimeEntitiesSection::countRecords  )  const [virtual]
 

Returns the number of records in this section.

Implements dimeSection.

void dimeEntitiesSection::fixReferences dimeModel *const   model  ) 
 

This function should be called after loading has ended, and will find all forward BLOCK references.

dimeEntity * dimeEntitiesSection::getEntity const int  idx  ) 
 

Returns the entity at index idx.

int dimeEntitiesSection::getNumEntities  )  const
 

Returns the number of entities in this section. Be aware that a POLYLINE entity with attached VERTEX entities will count as a single entity.

void dimeEntitiesSection::insertEntity dimeEntity *const   entity,
const int  idx = -1
 

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

Entities should never be allocated on the stack. Use the new and delete operators to create/destroy entities.

void dimeEntitiesSection::removeEntity const int  idx  ) 
 

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

int dimeEntitiesSection::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 © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.