7 #ifndef physicalEntityEncoder_H_
8 #define physicalEntityEncoder_H_
107 static void encodeArticulatedParametersArrayPre09(
109 RTI::AttributeHandleValuePairSet* avList,
110 RTI::AttributeHandle attrHandle);
176 static void convertToRPR1_0(
181 static void encodeAttachedParts(
186 static void setArticulatedPartDeadReckoningEnabled(
bool enable);
187 static bool articulatedPartDeadReckoningEnabled();
198 #define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_ENCODER( \
199 attrName, netType, inspector) \
200 DtDEFINE_SIMPLE_ATTR_ENCODER(DtPhysicalEntityEncoder, \
201 DtEntityStateRepository, \
202 attrName, netType, inspector)
209 #define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_CHECKER( \
210 attrName, inspector) \
211 DtDEFINE_SIMPLE_ATTR_CHECKER(DtPhysicalEntityEncoder, \
212 DtEntityStateRepository, \
218 #define DtDEFINE_LIGHT_ATTR_CHECKER( \
219 encClass, attrName, arg1) \
220 bool encClass::need##attrName( \
221 const DtEntityStateRepository& stateRep, \
222 const DtEntityStateRepository& asSeenByRemote) \
224 return (bool) (stateRep.lightState(arg1) != asSeenByRemote.lightState(arg1)); \
227 #define DtDEFINE_LIGHT_ATTR_ENCODER( \
228 encClass, attrName, arg1) \
229 void encClass::encode##attrName( \
230 const DtEntityStateRepository& rep, \
231 RTI::AttributeHandleValuePairSet* attrs, \
232 RTI::AttributeHandle attrHandle) \
234 DtNetBoolean netVal; \
235 netVal = rep.lightState(arg1); \
236 attrs->add(attrHandle, (char*) &netVal, sizeof(DtNetBoolean)); \
A DtAttachedPartCollection is a collection of attached parts of an entity.
Definition: attachedPartCollection.h:24
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
Definition: netStructs.h:534
#define DtDECLARE_ENTITY_ATTR_ENCODER(attrName)
This is used to declare attribute encoding functions which are members of the class.
Definition: baseEntityEncoder.h:29
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
class DtBaseEntityEncoder:
Definition: baseEntityEncoder.h:58
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: objClassDesc13.h:41
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:41
DtBaseEntityEncoder & operator=(const DtBaseEntityEncoder &orig)
assignment operator
This file provides a declaration of the class DtBaseEntityEncoder.
Definition: netStructs.h:467
static bool theAreArticulatedPartsDeadReckoned
Definition: physicalEntityEncoder.h:190
Contains the DtEntityStateRepository class declaration.
Definition: netStructs.h:478
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtBaseEntityEncoder. Caller is responsible for deletion.
#define DtDECLARE_ENTITY_ATTR_CHECKER(attrName)
This is used to declare static member functions for determining whether or not an attribute needs to ...
Definition: baseEntityEncoder.h:24
class DtPhysicalEntityEncoder:
Definition: physicalEntityEncoder.h:25