|
http://www.sim.no http://www.coin3d.org |
#include <dime/records/StringRecord.h>
Inheritance diagram for dimeStringRecord:

Public Member Functions | |
| dimeStringRecord (const int group_code=0) | |
| virtual | ~dimeStringRecord () |
| virtual dimeRecord * | copy (dimeMemHandler *const mh) const |
| virtual void | setValue (const dimeParam ¶m, dimeMemHandler *const memhandler=NULL) |
| virtual void | getValue (dimeParam ¶m) const |
| void | setStringPointer (char *const s) |
| bool | setString (const char *const s, dimeMemHandler *const memhandler=NULL) |
| char * | getString () |
| bool | isEndOfSectionRecord () const |
| bool | isEndOfFileRecord () const |
| int | typeId () const |
| bool | read (dimeInput *const in) |
| bool | write (dimeOutput *const out) |
Protected Attributes | |
| char * | string |
| dimeStringRecord::dimeStringRecord | ( | const int | group_code = 0 |
) |
Constructor.
| dimeStringRecord::~dimeStringRecord | ( | ) | [virtual] |
Destructor.
| dimeRecord * dimeStringRecord::copy | ( | dimeMemHandler *const | mh | ) | const [virtual] |
Returns a copy of this record.
Implements dimeRecord.
| char * dimeStringRecord::getString | ( | ) |
Returns a pointer to the string.
| void dimeStringRecord::getValue | ( | dimeParam & | param | ) | const [virtual] |
Returns the value of this record.
Implements dimeRecord.
| bool dimeStringRecord::isEndOfFileRecord | ( | ) | const [virtual] |
Returns true if this records is an end of file record.
Reimplemented from dimeRecord.
| bool dimeStringRecord::isEndOfSectionRecord | ( | ) | const [virtual] |
Returns true if this record is an end of section record.
Reimplemented from dimeRecord.
| bool dimeStringRecord::read | ( | dimeInput *const | in | ) | [virtual] |
This function will read the record from the dimeInput file.
Implements dimeRecord.
| bool dimeStringRecord::setString | ( | const char *const | s, | |
| dimeMemHandler *const | memhandler = NULL | |||
| ) |
Will store a copy of string s. If memhandler != NULL, it will be used to allocate the needed memory. If memhandler == NULL, the memory will be allocated from the heap.
| void dimeStringRecord::setStringPointer | ( | char *const | s | ) |
Sets the objects string pointer to point to 's'. Be aware that if the destructor is called for this object, the object will attempt to delete the string.
| void dimeStringRecord::setValue | ( | const dimeParam & | param, | |
| dimeMemHandler *const | memhandler = NULL | |||
| ) | [virtual] |
Sets the value of this record. The memory handler is needed by dimeStringRecord.
Implements dimeRecord.
| int dimeStringRecord::typeId | ( | ) | const [virtual] |
This virtual function will return the type of the record.
Implements dimeRecord.
Reimplemented in dimeHexRecord.
| bool dimeStringRecord::write | ( | dimeOutput *const | out | ) | [virtual] |
This function will write the record to the dimeOutput file.
Reimplemented from dimeRecord.
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