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

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

Go to the source code of this file.

Classes

class  DtSovietIffEncoder
 
class  DtMAKRPR3_SovietIffTransponderEncoder
 
class  DtMAKRPR3_SovietIffInterrogatorEncoder
 

Macros

#define DtDECLARE_SOVIET_IFF_ATTR_CHECKER(attrName)   DtDECLARE_ATTR_CHECKER(DtIffStateRepository, attrName)
 We define several macros that can be helpful in defining the class, and the individual decoding functions. More...
 
#define DtDECLARE_SOVIET_IFF_ATTR_ENCODER(attrName)   DtDECLARE_ATTR_ENCODER(DtIffStateRepository, attrName)
 This is used to declare static member functions that perform attribute encoding. More...
 
#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_ENCODER(attrName, netType, inspector)
 This macro is used to define simple attribute encoding functions (members of a derived DtHlaStateEncoder that encode individual attributes). More...
 
#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_CHECKER(attrName, inspector)
 This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met. More...
 
#define DtDEFINE_SIMPLE_SOVIET_ATTR_ENCODER_WITH_PARAM(encClass, stateRepClass, attrName, netType, inspector, param)
 This macro is used to define simple attribute encoder functions (members of a derived DtHlaStateEncoder that encode individual attributes). More...
 
#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_ENCODER_WITH_PARAM(attrName, netType, inspector, param)
 
#define DtDEFINE_SIMPLE_SOVIET_ATTR_CHECKER_WITH_PARAM(encClass, stateRepClass, attrName, inspector, param)
 
#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_CHECKER_WITH_PARAM(attrName, inspector, param)
 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_SIMPLE_MAKRPR3_SOVIET_IFF_TRANSPONDER_ATTR_ENCODER(attrName, netType, inspector)
 This macro is used to define simple attribute encoding functions (members of a derived DtHlaStateEncoder that encode individual attributes). More...
 
#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_TRANSPONDER_ATTR_CHECKER(attrName, inspector)
 This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met. More...
 
#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_INTERROGATOR_ATTR_ENCODER(attrName, netType, inspector)
 This macro is used to define simple attribute encoding functions (members of a derived DtHlaStateEncoder that encode individual attributes). More...
 
#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_INTERROGATOR_ATTR_CHECKER(attrName, inspector)
 This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met. More...
 

Detailed Description

This file provides a declaration of the class DtSovietIffEncoder.

Macro Definition Documentation

#define DtDECLARE_SOVIET_IFF_ATTR_CHECKER (   attrName)    DtDECLARE_ATTR_CHECKER(DtIffStateRepository, attrName)

We define several macros that can be helpful in defining the class, and the individual decoding functions.

This one is used to declare static member functions for determining whether or not an attribute's update condition has been met.

#define DtDECLARE_SOVIET_IFF_ATTR_ENCODER (   attrName)    DtDECLARE_ATTR_ENCODER(DtIffStateRepository, attrName)

This is used to declare static member functions that perform attribute encoding.

#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_INTERROGATOR_ATTR_CHECKER (   attrName,
  inspector 
)
Value:
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
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:261
Definition: sovietIffEncoder.h:243

This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met.

The "simple" implementation is to just compare the values returned by the two StateReps' inspector functions to see if they differ.

#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_INTERROGATOR_ATTR_ENCODER (   attrName,
  netType,
  inspector 
)
Value:
DtIffStateRepository, attrName, netType, inspector)
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
#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:235
static const xmlChar * attrName
Definition: xmlFedTags.h:117
Definition: sovietIffEncoder.h:243

This macro is used to define simple attribute encoding 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.

#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_TRANSPONDER_ATTR_CHECKER (   attrName,
  inspector 
)
Value:
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
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:261
Definition: sovietIffEncoder.h:194

This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met.

The "simple" implementation is to just compare the values returned by the two StateReps' inspector functions to see if they differ.

#define DtDEFINE_SIMPLE_MAKRPR3_SOVIET_IFF_TRANSPONDER_ATTR_ENCODER (   attrName,
  netType,
  inspector 
)
Value:
DtIffStateRepository, attrName, netType, inspector)
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
#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:235
static const xmlChar * attrName
Definition: xmlFedTags.h:117
Definition: sovietIffEncoder.h:194

This macro is used to define simple attribute encoding 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.

#define DtDEFINE_SIMPLE_SOVIET_ATTR_CHECKER_WITH_PARAM (   encClass,
  stateRepClass,
  attrName,
  inspector,
  param 
)
Value:
bool encClass::need##attrName(const stateRepClass& stateRep, \
const stateRepClass& asSeenByRemote) \
{ \
return (bool) !(stateRep.soviet()->inspector(param) == \
asSeenByRemote.soviet()->inspector(param)); \
}
static const xmlChar * attrName
Definition: xmlFedTags.h:117
#define DtDEFINE_SIMPLE_SOVIET_ATTR_ENCODER_WITH_PARAM (   encClass,
  stateRepClass,
  attrName,
  netType,
  inspector,
  param 
)
Value:
void encClass::encode##attrName(const stateRepClass& rep, \
RTI::AttributeHandleValuePairSet* attrs, \
RTI::AttributeHandle attrHandle) \
{ \
netType netVal; \
netVal = rep.soviet()->inspector(param); \
attrs->add(attrHandle, (char*) &netVal, sizeof(netType)); \
}
static const xmlChar * attrName
Definition: xmlFedTags.h:117

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.

#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_CHECKER (   attrName,
  inspector 
)
Value:
Instances of DtSovietStateRepository are used to store state data for IFFData.Soviet objects...
Definition: iffSovietStateRepository.h:29
Definition: sovietIffEncoder.h:88
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:261

This macro is used to define simple attribute checking functions (members of a derived DtHlaStateEncoder that check whether a particular attribute's update condition has been met.

The "simple" implementation is to just compare the values returned by the two StateReps' inspector functions to see if they differ.

#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_CHECKER_WITH_PARAM (   attrName,
  inspector,
  param 
)
Value:
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
Definition: sovietIffEncoder.h:88
#define DtDEFINE_SIMPLE_SOVIET_ATTR_CHECKER_WITH_PARAM(encClass, stateRepClass, attrName, inspector, param)
Definition: sovietIffEncoder.h:69
static const xmlChar * attrName
Definition: xmlFedTags.h:117

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_SOVIET_IFF_ATTR_ENCODER (   attrName,
  netType,
  inspector 
)
Value:
DtSovietStateRepository, attrName, netType, inspector)
Instances of DtSovietStateRepository are used to store state data for IFFData.Soviet objects...
Definition: iffSovietStateRepository.h:29
Definition: sovietIffEncoder.h:88
#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:235
static const xmlChar * attrName
Definition: xmlFedTags.h:117

This macro is used to define simple attribute encoding 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.

#define DtDEFINE_SIMPLE_SOVIET_IFF_ATTR_ENCODER_WITH_PARAM (   attrName,
  netType,
  inspector,
  param 
)
Value:
DtSovietIffEncoder, DtIffStateRepository, attrName, netType, inspector, param)
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
Definition: sovietIffEncoder.h:88
#define DtDEFINE_SIMPLE_SOVIET_ATTR_ENCODER_WITH_PARAM(encClass, stateRepClass, attrName, netType, inspector, param)
This macro is used to define simple attribute encoder functions (members of a derived DtHlaStateEncod...
Definition: sovietIffEncoder.h:53
static const xmlChar * attrName
Definition: xmlFedTags.h:117

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)