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

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

Go to the source code of this file.

Classes

class  DtIffEncoder
 The DtIffEncoder class: More...
 

Macros

#define DtDECLARE_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_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_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_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_IFF_ATTR_ENCODER_WITH_PARAM(encClass, attrName, netType, inspector, param)
 
#define DtDEFINE_SIMPLE_IFF_ATTR_CHECKER_WITH_PARAM(encClass, attrName, inspector, param)
 

Detailed Description

This file provides a declaration of the class DtIffEncoder.

Macro Definition Documentation

#define DtDECLARE_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_IFF_ATTR_ENCODER (   attrName)    DtDECLARE_ATTR_ENCODER(DtIffStateRepository, attrName)

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

#define DtDEFINE_SIMPLE_IFF_ATTR_CHECKER (   attrName,
  inspector 
)
Value:
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
The DtIffEncoder class:
Definition: iffEncoder.h:69
static const xmlChar * attrName
Definition: xmlFedTags.h:116
#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_IFF_ATTR_CHECKER_WITH_PARAM (   encClass,
  attrName,
  inspector,
  param 
)
Value:
encClass, DtIffStateRepository, attrName, inspector, param)
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
#define DtDEFINE_SIMPLE_ATTR_CHECKER_WITH_PARAM(encClass, stateRepClass, attrName, inspector, param)
This macro is used to define simple attribute checker functions (members of a derived DtHlaStateEncod...
Definition: hlaStateEncoder.h:293
static const xmlChar * attrName
Definition: xmlFedTags.h:116
#define DtDEFINE_SIMPLE_IFF_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
The DtIffEncoder class:
Definition: iffEncoder.h:69
static const xmlChar * attrName
Definition: xmlFedTags.h:116

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_IFF_ATTR_ENCODER_WITH_PARAM (   encClass,
  attrName,
  netType,
  inspector,
  param 
)
Value:
encClass, DtIffStateRepository, attrName, netType, inspector, param)
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
#define DtDEFINE_SIMPLE_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: hlaStateEncoder.h:275
static const xmlChar * attrName
Definition: xmlFedTags.h:116

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)