![]() |
VR-Forces 4.3.1 Class Documentation
|
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) |
| Serializes the provided value val into buffer. | |
| DT_DLL_vrfutil char * | encode (const DtRwInt &val, char *buffer) |
| Serializes the provided value val into buffer. | |
| DT_DLL_vrfutil char * | encode (const DtRwString &val, char *buffer) |
| Serializes the provided value val into 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) |
| Decodes a value from buffer and places the result in val of the type specified by val. | |
| DT_DLL_vrfutil const char * | decode (DtRwInt &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 (DtRwString &val, const char *buffer) |
| Decodes a value from buffer and places the result in val of the type specified by val. | |
| 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) |
| The number of bytes required to encode the value. | |
| DT_DLL_vrfutil int | getSize (const DtRwInt &v) |
| The number of bytes required to encode the value. | |
| DT_DLL_vrfutil int | getSize (const DtRwString &v) |
| The number of bytes required to encode the value. | |
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.
| DT_DLL_vrfutil char* DtHlaBufferSerialize::encode | ( | const DtRwBoolean & | val, |
| char * | buffer | ||
| ) |
| DT_DLL_vrfutil char* DtHlaBufferSerialize::encode | ( | const DtRwReal & | val, |
| char * | buffer | ||
| ) |
| DT_DLL_vrfutil char* DtHlaBufferSerialize::encode | ( | const DtRwInt & | val, |
| char * | buffer | ||
| ) |
| DT_DLL_vrfutil char* DtHlaBufferSerialize::encode | ( | const DtRwString & | val, |
| char * | buffer | ||
| ) |
| DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode | ( | DtRwBoolean & | val, |
| const char * | buffer | ||
| ) |
| DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode | ( | DtRwReal & | val, |
| const char * | buffer | ||
| ) |
| DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode | ( | DtRwInt & | val, |
| const char * | buffer | ||
| ) |
| DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode | ( | DtRwString & | val, |
| const char * | buffer | ||
| ) |
| DT_DLL_vrfutil int DtHlaBufferSerialize::getSize | ( | const DtRwBoolean & | v | ) |
The number of bytes required to encode the value.
| DT_DLL_vrfutil int DtHlaBufferSerialize::getSize | ( | const DtRwReal & | v | ) |
The number of bytes required to encode the value.
| DT_DLL_vrfutil int DtHlaBufferSerialize::getSize | ( | const DtRwInt & | v | ) |
The number of bytes required to encode the value.
| DT_DLL_vrfutil int DtHlaBufferSerialize::getSize | ( | const DtRwString & | v | ) |
The number of bytes required to encode the value.