![]() |
VR-Link API Documentation for HLA 1.3
|
A Datatype Representation is a class that can take a group of bytes and display them in a certain type of way that would be more useful to the user. More...
Inheritance diagram for DtDatatypeRep:
Collaboration diagram for DtDatatypeRep:Public Member Functions | |
| DtDatatypeRep (bool useImplicitPadding) | |
| DtDatatypeRep (const DtDatatypeRep &orig) | |
| Copy Constructor. | |
| DtDatatypeRep & | operator= (const DtDatatypeRep &rhs) |
| Assignment Operator. | |
| virtual const char * | datatype () const =0 |
| virtual DtString | stringRep (const void *ptr, int *size=0) const =0 |
| Given a byte string, returns a character string in a format that is easily read by a person. | |
| virtual std::vector< char > | valueFromStringRep (const DtString &stringRep) const =0 |
| The reverse of string rep, given a character string, this returns an unformatted byte stream. | |
Protected Attributes | |
| bool | myUseImplicitPadding |
A Datatype Representation is a class that can take a group of bytes and display them in a certain type of way that would be more useful to the user.
|
inline |
|
inline |
Copy Constructor.
|
pure virtual |
Implemented in DtDoubleDatatypeRep, DtFloatDatatypeRep, DtArrayDatatypeRep, DtCharDatatypeRep, DtLongDatatypeRep, DtShortDatatypeRep, DtIntDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtStringDatatypeRep, DtUnicodeDatatypeRep, DtByteDatatypeRep, DtDoubleLEDatatypeRep, DtEnum32DatatypeRep, DtFloatLEDatatypeRep, DtEnum8DatatypeRep, DtIntLEDatatypeRep, DtLongLEDatatypeRep, DtShortLEDatatypeRep, DtTopoCoordinateDatatypeRep, DtAltVelocityDatatypeRep, DtEntityTypeDatatypeRep, and DtLatLongCoordinateDatatypeRep.
|
inline |
Assignment Operator.
References myUseImplicitPadding.
|
pure virtual |
Given a byte string, returns a character string in a format that is easily read by a person.
| ptr | A Pointer to the unformated data |
| size | If this is other than 0, this pointer will be set to the total count of bytes used in ptr. |
Implemented in DtIntDatatypeRep, DtLongDatatypeRep, DtShortDatatypeRep, DtDoubleDatatypeRep, DtFloatDatatypeRep, DtCharDatatypeRep, DtIntLEDatatypeRep, DtLongLEDatatypeRep, DtShortLEDatatypeRep, DtArrayDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtByteDatatypeRep, DtDoubleLEDatatypeRep, DtEnum32DatatypeRep, DtFloatLEDatatypeRep, DtEnum8DatatypeRep, DtTopoCoordinateDatatypeRep, DtAltVelocityDatatypeRep, DtStringDatatypeRep, DtUnicodeDatatypeRep, DtEntityTypeDatatypeRep, and DtLatLongCoordinateDatatypeRep.
|
pure virtual |
The reverse of string rep, given a character string, this returns an unformatted byte stream.
| stringRep | A The character string |
| size | If this is other than 0, this pointer will be set to the total count of bytes used in ptr. |
Implemented in DtIntDatatypeRep, DtLongDatatypeRep, DtShortDatatypeRep, DtDoubleDatatypeRep, DtFloatDatatypeRep, DtCharDatatypeRep, DtEntityTypeDatatypeRep, DtIntLEDatatypeRep, DtLongLEDatatypeRep, DtShortLEDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtTopoCoordinateDatatypeRep, DtByteDatatypeRep, DtDoubleLEDatatypeRep, DtEnum32DatatypeRep, DtFloatLEDatatypeRep, DtAltVelocityDatatypeRep, DtEnum8DatatypeRep, DtLatLongCoordinateDatatypeRep, DtStringDatatypeRep, and DtUnicodeDatatypeRep.
|
protected |
Referenced by operator=().