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

Go to the source code of this file.

Classes

class  DtInteractionEncoder
 DtInteractionEncoder is used to provide encoding of an interaction into an RTI::ParameterHandleValuePairSet in an HLA (as opposed to DIS) environment. More...
 

Macros

#define DtADD_PARAM_ENCODER(attrName)   addEncoder((char *)#attrName, (DtParameterEncoder) encode##attrName)
 
#define DtDECLARE_PARAM_ENCODER(interClass, paramName)
 
#define DtDEFINE_SIMPLE_PARAM_ENCODER(encClass, interClass, paramName, netType, inspector)
 
#define DtDEFINE_SIMPLE_GLOBAL_OBJECT_DESIGNATOR_PARAM_ENCODER(encClass, interClass, paramName, inspector)
 

Macro Definition Documentation

#define DtADD_PARAM_ENCODER (   attrName)    addEncoder((char *)#attrName, (DtParameterEncoder) encode##attrName)
#define DtDECLARE_PARAM_ENCODER (   interClass,
  paramName 
)
Value:
static void encode##paramName(const interClass& inter, \
RTI::ParameterHandle paramHandle)
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:154
#define DtDEFINE_SIMPLE_GLOBAL_OBJECT_DESIGNATOR_PARAM_ENCODER (   encClass,
  interClass,
  paramName,
  inspector 
)
Value:
void encClass::encode##paramName(const interClass& inter, \
RTI::ParameterHandle paramHandle) \
{ \
DtGlobalObjectDesignator netVal = inter.inspector(); \
params->add(paramHandle, (char*) netVal.string(), netVal.length()+1); \
}
DtString DtGlobalObjectDesignator
In HLA a DtGlobalObjectDesignator is a DtString.
Definition: globalObjectDesignator.h:22
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:154
#define DtDEFINE_SIMPLE_PARAM_ENCODER (   encClass,
  interClass,
  paramName,
  netType,
  inspector 
)
Value:
void encClass::encode##paramName(const interClass& inter, \
RTI::ParameterHandle paramHandle) \
{ \
netType netVal; \
netVal = inter.inspector(); \
params->add(paramHandle, (char*) &netVal, sizeof(netType)); \
}
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:154

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)