#include <dime/sections/Section.h>
Inheritance diagram for dimeSection::
Public Methods | |
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 Methods | |
dimeSection * | createSection (const char *const sectionname, dimeMemHandler *memhandler) |
Protected Attributes | |
dimeMemHandler * | memHandler |
Currently supported sections are:
|
Constructor |
|
Empty virtual destructor. |
|
Returns the number of records in this section. Reimplemented in dimeBlocksSection, dimeClassesSection, dimeEntitiesSection, dimeHeaderSection, dimeObjectsSection, dimeTablesSection, and dimeUnknownSection. |
|
Static function used to create the correct section object from a text string. |
|
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. |
|
Must be implemented by all subclasses, and should return an unique id for that class. Reimplemented from dimeBase. Reimplemented in dimeBlocksSection, dimeClassesSection, dimeEntitiesSection, dimeHeaderSection, dimeObjectsSection, dimeTablesSection, and dimeUnknownSection. |