VR-Link API Documentation for HLA 1516
Classes | Defines
testEnc.h File Reference

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 Documentation

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.

This is used to declare static member functions that perform attribute encoding.

#define DtDEFINE_SIMPLE_TEST_ATTR_CHECKER (   attrName,
  inspector 
)
Value:

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 
)
Value:

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.


Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)