VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
physicalEntityEncoder.h File Reference

This file provides a declaration of the class DtPhysicalEntityEncoder. More...

Go to the source code of this file.

Classes

class  DtPhysicalEntityEncoder
 class DtPhysicalEntityEncoder: More...
 

Macros

#define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_ENCODER(attrName, netType, inspector)
 This macro is used to define simple attribute encoder functions (members of a derived DtHlaStateEncoder that encode individual attributes). More...
 
#define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_CHECKER(attrName, inspector)
 This macro is used to define simple attribute checker functions (members of a derived DtHlaStateEncoder that check whether a particular attribute is out of date.) The simple implementation is to just compare the values returned by the two StateReps' inspector functions. More...
 
#define DtDEFINE_LIGHT_ATTR_CHECKER(encClass, attrName, arg1)
 The following macros are used to define checkers and encoders for lightState attributes. More...
 
#define DtDEFINE_LIGHT_ATTR_ENCODER(encClass, attrName, arg1)
 

Detailed Description

This file provides a declaration of the class DtPhysicalEntityEncoder.

Macro Definition Documentation

#define DtDEFINE_LIGHT_ATTR_CHECKER (   encClass,
  attrName,
  arg1 
)
Value:
bool encClass::need##attrName( \
const DtEntityStateRepository& stateRep, \
const DtEntityStateRepository& asSeenByRemote) \
{ \
return (bool) (stateRep.lightState(arg1) != asSeenByRemote.lightState(arg1)); \
}
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:36
static const xmlChar * attrName
Definition: xmlFedTags.h:117

The following macros are used to define checkers and encoders for lightState attributes.

They are a special case of the simple attr checkers and encoders above.

#define DtDEFINE_LIGHT_ATTR_ENCODER (   encClass,
  attrName,
  arg1 
)
Value:
void encClass::encode##attrName( \
RTI::AttributeHandleValuePairSet* attrs, \
RTI::AttributeHandle attrHandle) \
{ \
DtNetBoolean netVal; \
netVal = rep.lightState(arg1); \
attrs->add(attrHandle, (char*) &netVal, sizeof(DtNetBoolean)); \
}
DtNetU8 DtNetBoolean
Unsigned network-order 8-bit value for storage of boolean data.
Definition: vlNetTypes.h:38
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:36
static const xmlChar * attrName
Definition: xmlFedTags.h:117
#define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_CHECKER (   attrName,
  inspector 
)
Value:
attrName, inspector)
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:36
static const xmlChar * attrName
Definition: xmlFedTags.h:117
#define DtDEFINE_SIMPLE_ATTR_CHECKER(encClass, stateRepClass, attrName, inspector)
This macro is used to define simple attribute checker functions (members of a derived DtHlaStateEncod...
Definition: hlaStateEncoder.h:255
class DtPhysicalEntityEncoder:
Definition: physicalEntityEncoder.h:25

This macro is used to define simple attribute checker functions (members of a derived DtHlaStateEncoder that check whether a particular attribute is out of date.) The simple implementation is to just compare the values returned by the two StateReps' inspector functions.

#define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_ENCODER (   attrName,
  netType,
  inspector 
)
Value:
attrName, netType, inspector)
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:36
#define DtDEFINE_SIMPLE_ATTR_ENCODER(encClass, stateRepClass, attrName, netType, inspector)
These macros are used to define simple attribute encoder functions (members of a derived DtHlaStateEn...
Definition: hlaStateEncoder.h:229
static const xmlChar * attrName
Definition: xmlFedTags.h:117
class DtPhysicalEntityEncoder:
Definition: physicalEntityEncoder.h:25

This macro is used to define simple attribute encoder 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 Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)