This namespace contains a set of utility functions for encoding and decoding various data types to/from a byte array in the format expected by an HLA federate.
More...
Functions |
|
| DT_DLL_vrfutil char * | encode (const DtRwBoolean &val, char *buffer) |
| | Serializes the provided value val into buffer.
|
| DT_DLL_vrfutil char * | encode (const DtRwReal &val, char *buffer) |
| DT_DLL_vrfutil char * | encode (const DtRwInt &val, char *buffer) |
| DT_DLL_vrfutil char * | encode (const DtRwString &val, char *buffer) |
| DT_DLL_vrfutil char * | encode (const DtRwVector &val, char *buffer) |
|
| DT_DLL_vrfutil const char * | decode (DtRwBoolean &val, const char *buffer) |
| | Decodes a value from buffer and places the result in val of the type specified by val.
|
| DT_DLL_vrfutil const char * | decode (DtRwReal &val, const char *buffer) |
| DT_DLL_vrfutil const char * | decode (DtRwInt &val, const char *buffer) |
| DT_DLL_vrfutil const char * | decode (DtRwString &val, const char *buffer) |
| DT_DLL_vrfutil const char * | decode (DtRwVector &val, const char *buffer) |
|
| DT_DLL_vrfutil int | getSize (const DtRwBoolean &v) |
| | The number of bytes required to encode the value.
|
| DT_DLL_vrfutil int | getSize (const DtRwReal &v) |
| DT_DLL_vrfutil int | getSize (const DtRwInt &v) |
| DT_DLL_vrfutil int | getSize (const DtRwString &v) |
| DT_DLL_vrfutil int | getSize (const DtRwVector &v) |
This namespace contains a set of utility functions for encoding and decoding various data types to/from a byte array in the format expected by an HLA federate.
In many cases the encoding will be the same as DtBufferSerialize, but in some cases not. Each data type has a encode(), decode(), and getSize() method defined. Use of the templated versions require that any types passed into the template have these same methods defined.