![]() |
VR-Link API Documentation for HLA 1516
|
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. More... | |
| DtDatatypeRep & | operator= (const DtDatatypeRep &rhs) |
| Assignment Operator. More... | |
| 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. More... | |
| 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. More... | |
| virtual int | byteAlignment () const =0 |
| The alignment size in bytes for this representation. More... | |
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 |
The alignment size in bytes for this representation.
Implemented in DtIntDatatypeRep, DtLongDatatypeRep, DtShortDatatypeRep, DtDoubleDatatypeRep, DtFloatDatatypeRep, DtCharDatatypeRep, DtEntityTypeDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtTopoCoordinateDatatypeRep, DtByteDatatypeRep, DtEnum32DatatypeRep, DtAltVelocityDatatypeRep, DtArrayDatatypeRep, DtEnum8DatatypeRep, DtLatLongCoordinateDatatypeRep, DtStringDatatypeRep, DtUtf16DatatypeRep, and DtUtf8DatatypeRep.
|
pure virtual |
Implemented in DtDoubleDatatypeRep, DtFloatDatatypeRep, DtArrayDatatypeRep, DtCharDatatypeRep, DtLongDatatypeRep, DtShortDatatypeRep, DtIntDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtStringDatatypeRep, DtUtf16DatatypeRep, DtUtf8DatatypeRep, 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, DtUtf16DatatypeRep, DtUtf8DatatypeRep, 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, DtIntLEDatatypeRep, DtLongLEDatatypeRep, DtShortLEDatatypeRep, DtEntityTypeDatatypeRep, DtBoolDatatypeRep, DtEnum16DatatypeRep, DtHexDatatypeRep, DtTopoCoordinateDatatypeRep, DtByteDatatypeRep, DtDoubleLEDatatypeRep, DtEnum32DatatypeRep, DtFloatLEDatatypeRep, DtAltVelocityDatatypeRep, DtEnum8DatatypeRep, DtLatLongCoordinateDatatypeRep, DtStringDatatypeRep, DtUtf16DatatypeRep, and DtUtf8DatatypeRep.
|
protected |
Referenced by operator=().