![]() |
VR-Link API Documentation for HLA 1.3
|
TestEncoder, defined in testEnc.cxx, is derived from DtInteractionEncoder.
Macros help out in the declaration and definition of the encoding functions for individual parameters. (Again, encoding functions are provided as static members of the TestEncoder class.)
The "simple" implementation provided by the macros for an encoding function is to obtain a value from a particular interaction class inspector function, cast it to the appropriate "Net" type, which performs byte swapping if necessary, and adds the value to an RTI::ParameterHandleValuePairSet for sending.
The TestEncoder constructor just adds its encoding functions to the base class's table using addEncoder().