#include <dime/records/Record.h>
Inheritance diagram for dimeRecord:
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 |
Static Public Member Functions | |
bool | readRecordData (dimeInput *const in, const int group_code, dimeParam ¶m) |
dimeRecord * | readRecord (dimeInput *const in) |
dimeRecord * | createRecord (const int group_code, dimeMemHandler *const memhandler) |
dimeRecord * | createRecord (const int group_code, const dimeParam ¶m, dimeMemHandler *const memhandler) |
int | getRecordType (const int group_code) |
Protected Attributes | |
int | groupCode |
|
Constructor which sets the group code. |
|
Destructor. |
|
Returns a copy of this record. Implemented in dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |
|
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. |
|
Returns the group code for this record. |
|
Static function that returns the record type based on the group code. |
|
Returns the value of this record. Implemented in dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |
|
Returns true if this records is an end of file record. Reimplemented in dimeStringRecord. |
|
Returns true if this record is an end of section record. Reimplemented in dimeStringRecord. |
|
Prints information about this record to stderr. |
|
This function will read the record from the dimeInput file. Implemented in dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |
|
Reads and returns the next record int file in. |
|
Will read the next item from in, and store result in param, based on the group_code. |
|
Sets the group code of this record. |
|
Sets the value of this record. The memory handler is needed by dimeStringRecord. Implemented in dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |
|
This virtual function will return the type of the record. Implements dimeBase. Implemented in dimeDoubleRecord, dimeFloatRecord, dimeHexRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |
|
This function will write the record to the dimeOutput file. Reimplemented in dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, and dimeStringRecord. |