![]() |
VR-Link API Documentation for HLA 1516
|
We first create a new subclass of DtStateRepository called TestStateRepository, in testSR.h and testSR.cxx.
This class is used to store the state of both local and reflected objects of our Test class.
The class definition is listed below. We provide inspector and mutator functions to access the state data, an override of the virtual printData() function that prints the current state data, and an override of the virtual clone() function that returned a new'ed instance of this class. We represent state data in the same way as in the FOM, but this is not strictly necessary. We could perform a non-trivial conversion in FOM mapping code instead.