|
http://www.sim.no http://www.coin3d.org |
#include <dime/sections/Section.h>
Inheritance diagram for dimeSection:

Public Member Functions | |
| dimeSection (dimeMemHandler *const memhandler) | |
| virtual | ~dimeSection () |
| virtual const char * | getSectionName () const =0 |
| virtual dimeSection * | copy (dimeModel *const model) const =0 |
| virtual bool | read (dimeInput *const file)=0 |
| virtual bool | write (dimeOutput *const file)=0 |
| virtual int | typeId () const =0 |
| virtual bool | isOfType (const int thetypeid) const |
| virtual int | countRecords () const =0 |
Static Public Member Functions | |
| static dimeSection * | createSection (const char *const sectionname, dimeMemHandler *memhandler) |
Protected Attributes | |
| dimeMemHandler * | memHandler |
Currently supported sections are:
| dimeSection::dimeSection | ( | dimeMemHandler *const | memhandler | ) |
Constructor
| dimeSection::~dimeSection | ( | ) | [virtual] |
Empty virtual destructor.
| int dimeSection::countRecords | ( | ) | const [pure virtual] |
Returns the number of records in this section.
Implemented in dimeBlocksSection, dimeClassesSection, dimeEntitiesSection, dimeHeaderSection, dimeObjectsSection, dimeTablesSection, and dimeUnknownSection.
| dimeSection * dimeSection::createSection | ( | const char *const | sectionname, | |
| dimeMemHandler * | memhandler | |||
| ) | [static] |
Static function used to create the correct section object from a text string.
| bool dimeSection::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 from dimeBase.
| int dimeSection::typeId | ( | ) | const [pure virtual] |
Must be implemented by all subclasses, and should return an unique id for that class.
Implements dimeBase.
Implemented in dimeBlocksSection, dimeClassesSection, dimeEntitiesSection, dimeHeaderSection, dimeObjectsSection, dimeTablesSection, and dimeUnknownSection.
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Tue Dec 2 23:27:14 2008 for DIME by Doxygen. 1.4.7