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).
#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.
#define DtDEFINE_LIGHT_ATTR_CHECKER(encClass, attrName, arg1)
 The following macros are used to define checkers and encoders for lightState attributes.
#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)); \
}

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)); \
}
#define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_CHECKER (   attrName,
  inspector 
)
Value:

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:

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 Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)