3 #ifndef DtRRBIffEncoder_H_
4 #define DtRRBIffEncoder_H_
17 #define DtDECLARE_RRB_IFF_ATTR_ENCODER(attrName) \
18 DtDECLARE_ATTR_ENCODER(DtIffStateRepository, attrName)
20 #define DtDECLARE_RRB_IFF_ATTR_CHECKER(attrName) \
21 DtDECLARE_ATTR_CHECKER(DtIffStateRepository, attrName)
28 #define DtDEFINE_SIMPLE_RRB_ATTR_CHECKER( \
29 encClass, stateRepClass, attrName, inspector) \
30 bool encClass::need##attrName(const stateRepClass& stateRep, \
31 const stateRepClass& asSeenByRemote) \
33 return (bool) !(stateRep.rrb()->inspector() == asSeenByRemote.rrb()->inspector()); \
41 #define DtDEFINE_SIMPLE_RRB_IFF_ATTR_CHECKER( \
42 attrName, inspector) \
43 DtDEFINE_SIMPLE_RRB_ATTR_CHECKER(DtRRBIffEncoder, \
44 DtIffStateRepository, attrName, inspector)
51 #define DtDEFINE_SIMPLE_RRB_ATTR_ENCODER( \
52 encClass, stateRepClass, attrName, netType, inspector) \
53 void encClass::encode##attrName(const stateRepClass& rep, \
54 RTI::AttributeHandleValuePairSet* attrs, \
55 RTI::AttributeHandle attrHandle) \
58 netVal = rep.rrb()->inspector(); \
59 attrs->add(attrHandle, (char*) &netVal, sizeof(netType)); \
67 #define DtDEFINE_SIMPLE_RRB_IFF_ATTR_ENCODER( \
68 attrName, netType, mutator) \
69 DtDEFINE_SIMPLE_RRB_ATTR_ENCODER( \
70 DtRRBIffEncoder, DtIffStateRepository, \
71 attrName, netType, mutator)
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file provides a declaration of the class DtIffEncoder.
#define DtDECLARE_RRB_IFF_ATTR_ENCODER(attrName)
This one can be used to declare the attribute decoding functions, which are static members of DtNatoI...
Definition: rrbIffEncoder.h:17
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
Instances of DtRRBStateRepository are used to store state data for IFFData.RRB objects.
Definition: iffRRBStateRepository.h:29
The DtIffEncoder class:
Definition: iffEncoder.h:69
#define DtDECLARE_RRB_IFF_ATTR_CHECKER(attrName)
Definition: rrbIffEncoder.h:20
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
DtIffEncoder & operator=(const DtIffEncoder &orig)
assignment operator
Definition: rrbIffEncoder.h:74