![]() |
VR-Link API Documentation for HLA 1.3
|
Go to the source code of this file.
Classes | |
| class | TestEncoder |
| This class encodes a Test interaction from a TestInteraction object. More... | |
Defines | |
| #define | DtDECLARE_TEST_ATTR_CHECKER(attrName) DtDECLARE_ATTR_CHECKER(TestStateRepository, attrName) |
| We define several macros that can be helpful in defining the class, and the individual encoding and checking functions. | |
| #define | DtDECLARE_TEST_ATTR_ENCODER(attrName) DtDECLARE_ATTR_ENCODER(TestStateRepository, attrName) |
| This is used to declare static member functions that perform attribute encoding. | |
| #define | DtDEFINE_SIMPLE_TEST_ATTR_ENCODER(attrName, netType, inspector) |
| This macro is used to define simple attribute encoding functions (members of a derived DtHlaStateEncoder that encode individual attributes). | |
| #define | DtDEFINE_SIMPLE_TEST_ATTR_CHECKER(attrName, inspector) |
| This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met. | |
| #define DtDECLARE_TEST_ATTR_CHECKER | ( | attrName | ) | DtDECLARE_ATTR_CHECKER(TestStateRepository, attrName) |
We define several macros that can be helpful in defining the class, and the individual encoding and checking functions.
This one is used to declare static member functions for determining whether or not an attribute's update condition has been met.
| #define DtDECLARE_TEST_ATTR_ENCODER | ( | attrName | ) | DtDECLARE_ATTR_ENCODER(TestStateRepository, attrName) |
This is used to declare static member functions that perform attribute encoding.
| #define DtDEFINE_SIMPLE_TEST_ATTR_CHECKER | ( | attrName, | |
| inspector | |||
| ) |
DtDEFINE_SIMPLE_ATTR_CHECKER(TestEncoder, \ TestStateRepository, \ attrName, inspector)
This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met.
The "simple" implementation is to just compare the values returned by the two StateReps' inspector functions to see if they differ.
| #define DtDEFINE_SIMPLE_TEST_ATTR_ENCODER | ( | attrName, | |
| netType, | |||
| inspector | |||
| ) |
DtDEFINE_SIMPLE_ATTR_ENCODER(TestEncoder, \ TestStateRepository, attrName, netType, inspector)
This macro is used to define simple attribute encoding functions (members of a derived DtHlaStateEncoder that encode individual attributes).
The "simple" encoding is just to implicitly convert the value returned by the inspector to a netType, and add it to the ahvps.