![]() |
VR-Forces Developer's Guide
|
Templated class that takes a VR-Link Data Interactioni (DIS or HLA) and encodes or decodes a VR-Vantage control into the interaction or out of the interaction.
Public Member Functions | |
| DtVrlinkDataInterMarshaller () | |
| virtual | ~DtVrlinkDataInterMarshaller () |
| virtual void | encode (DtVrvControl_v1 *cmd, DataMsg *msg) |
| virtual DtVrvControl_v1 * | decode (const DataMsg *msg) |
| vrvControlToolkit::DtVrlinkDataInterMarshaller< DataMsg >::DtVrlinkDataInterMarshaller | ( | ) |
|
virtual |
|
virtual |
Copies the cmd into the data interaction.
References vrvControlToolkit::DtVrvControlDatumParamId, and vrvControlToolkit::DtVrvControl_v1::mySize.
|
virtual |
copies the cmd out of the data interaction. This function allocates memory using "new char[size]" and then returns a cast pointer to the beginning of the buffer. You MUST delete this data structure by casting to a char* and using delete [] for example delete [] (char*)cmd; This function may return NULL in the event that the message is not the right endiness or magic number mismatch (corrupt)
References vrvControlToolkit::DtVrvControlDatumParamId, vrvControlToolkit::DtVrvMagicNumber, and vrvControlToolkit::DtVrvControl_v1::myMagicNumber.