dimeObjectsSection Class Reference

The dimeObjectsSection object handles an OBJECTS section. More...

#include <dime/sections/ObjectsSection.h>

Inheritance diagram for dimeObjectsSection:

dimeSection dimeBase List of all members.

Public Member Functions

 dimeObjectsSection (dimeMemHandler *const memhandler=NULL)
virtual ~dimeObjectsSection ()
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 getNumObjects () const
dimeObjectgetObject (const int idx)
void removeObject (const int idx)
void insertObject (dimeObject *const object, const int idx=-1)

Friends

class dimeModel

Detailed Description

The dimeObjectsSection object handles an OBJECTS section.


Constructor & Destructor Documentation

dimeObjectsSection::dimeObjectsSection dimeMemHandler *const   memhandler = NULL  ) 
 

Constructor.

dimeObjectsSection::~dimeObjectsSection  )  [virtual]
 

Destructor.


Member Function Documentation

int dimeObjectsSection::countRecords  )  const [virtual]
 

Returns the number of records in this section.

Implements dimeSection.

int dimeObjectsSection::getNumObjects  )  const
 

Returns the number of objects in this section.

dimeObject * dimeObjectsSection::getObject const int  idx  ) 
 

Returns the object at index idx.

void dimeObjectsSection::insertObject dimeObject *const   object,
const int  idx = -1
 

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

void dimeObjectsSection::removeObject const int  idx  ) 
 

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

int dimeObjectsSection::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.