![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The dimeRecord class is the superclass of all record classes. More...
#include <dime/records/Record.h>
Public Member Functions | |
dimeRecord (const int group_code) | |
virtual | ~dimeRecord () |
virtual void | setValue (const dimeParam ¶m, dimeMemHandler *const memhandler=NULL)=0 |
virtual void | getValue (dimeParam ¶m) const =0 |
virtual dimeRecord * | copy (dimeMemHandler *const memhandler) const =0 |
void | setGroupCode (const int group_code) |
int | getGroupCode () const |
virtual bool | isEndOfSectionRecord () const |
virtual bool | isEndOfFileRecord () const |
virtual int | typeId () const =0 |
virtual bool | read (dimeInput *const in)=0 |
virtual bool | write (dimeOutput *const out) |
virtual void | print () const |
![]() | |
dimeBase (void) | |
virtual | ~dimeBase () |
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) |
Static Public Member Functions | |
static bool | readRecordData (dimeInput *const in, const int group_code, dimeParam ¶m) |
static dimeRecord * | readRecord (dimeInput *const in) |
static dimeRecord * | createRecord (const int group_code, dimeMemHandler *const memhandler) |
static dimeRecord * | createRecord (const int group_code, const dimeParam ¶m, dimeMemHandler *const memhandler) |
static int | getRecordType (const int group_code) |
Protected Attributes | |
int | groupCode |
Additional Inherited Members | |
![]() | |
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 } |
The dimeRecord class is the superclass of all record classes.
dimeRecord::dimeRecord | ( | const int | group_code | ) |
Constructor which sets the group code.
|
virtual |
Destructor.
|
pure virtual |
Sets the value of this record. The memory handler is needed by dimeStringRecord.
Implemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, and dimeInt8Record.
|
pure virtual |
Returns the value of this record.
Implemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, and dimeInt8Record.
|
pure virtual |
Returns a copy of this record.
Implemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, and dimeInt8Record.
void dimeRecord::setGroupCode | ( | const int | group_code | ) |
Sets the group code of this record.
int dimeRecord::getGroupCode | ( | ) | const |
Returns the group code for this record.
|
virtual |
Returns true if this record is an end of section record.
Reimplemented in dimeStringRecord.
|
virtual |
Returns true if this records is an end of file record.
Reimplemented in dimeStringRecord.
|
pure virtual |
This virtual function will return the type of the record.
Implements dimeBase.
Implemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeHexRecord.
|
pure virtual |
This function will read the record from the dimeInput file.
Implemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, and dimeInt8Record.
|
virtual |
This function will write the record to the dimeOutput file.
Reimplemented in dimeStringRecord, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, and dimeInt8Record.
|
inlinevirtual |
Prints information about this record to stderr.
|
static |
Will read the next item from in, and store result in param, based on the group_code.
|
static |
Reads and returns the next record int file in.
|
static |
Static function that creates a record based on the group code. if memhandler != NULL, it will be used to allocate the other, otherwise the default memory handler will be used.
|
static |
Static function that returns the record type based on the group code.