VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Protected Member Functions
DtF18EntityDecoder Class Reference

An example subclass of DtPlatformDecoder for use with DtF18EntityStateRep. More...

+ Inheritance diagram for DtF18EntityDecoder:
+ Collaboration diagram for DtF18EntityDecoder:

Public Member Functions

 DtF18EntityDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Ctor.
virtual ~DtF18EntityDecoder ()
 destructor
- Public Member Functions inherited from DtPlatformDecoder
 DtPlatformDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtPlatformDecoder ()
 destructor
 DtPlatformDecoder (const DtPlatformDecoder &orig)
 copy constructor
DtPlatformDecoderoperator= (const DtPlatformDecoder &orig)
 assignment operator
- Public Member Functions inherited from DtPhysicalEntityDecoder
 DtPhysicalEntityDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtPhysicalEntityDecoder ()
 destructor
 DtPhysicalEntityDecoder (const DtPhysicalEntityDecoder &orig)
 copy constructor
DtPhysicalEntityDecoderoperator= (const DtPhysicalEntityDecoder &orig)
 assignment operator
- Public Member Functions inherited from DtBaseEntityDecoder
 DtBaseEntityDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtBaseEntityDecoder ()
 destructor
 DtBaseEntityDecoder (const DtBaseEntityDecoder &orig)
 copy constructor
DtBaseEntityDecoderoperator= (const DtBaseEntityDecoder &orig)
 assignment operator
virtual DtHlaStateDecoderclone () const
 Virtual function override. Return a new instance of this class.
virtual DtHlaStateDecoderclone (DtObjClassDesc *classDesc) const
 Returns a new-ed clone of this object which corresponds to the class description classDesc.
- Public Member Functions inherited from DtHlaStateDecoder
 DtHlaStateDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtHlaStateDecoder ()
 destructor
 DtHlaStateDecoder (const DtHlaStateDecoder &orig)
 copy constructor
DtHlaStateDecoderoperator= (const DtHlaStateDecoder &orig)
 assignment operator
DtAttributeDecoder addDecoder (RTI::AttributeHandle h, DtAttributeDecoder func)
 Add/Remove a decoding function for the attribute specified by handle.
DtAttributeDecoder removeDecoder (RTI::AttributeHandle h)
DtAttributeDecoder addDecoder (char *attrName, DtAttributeDecoder func, bool complain=true)
 Add/Remove a decoding function for the attribute specified by name.
DtAttributeDecoder removeDecoder (char *attrName, bool complain=true)
virtual DtAttributeDecoder decoder (const RTI::AttributeHandle &handle) const
 Get the attribute decoder for the specified handle.
virtual RTI::ObjectClassHandle objectClassHandle () const
 Get the object's class handle.

Static Protected Member Functions

static void decodeSpecialF18Attribute (DtF18EntityStateRep *stateRep, const RTI::AttributeHandleValuePairSet &attrs, int pairSetIndex)
 all Encoder/Decoder classes need to be static.

Additional Inherited Members

- Public Types inherited from DtHlaStateDecoder
typedef void(* DtAttributeDecoder )(DtStateRepository *stateRep, const RTI::AttributeHandleValuePairSet &avlist, unsigned long pairSetIndex)
 Attribute decoding function declaration.
- Static Public Member Functions inherited from DtPlatformDecoder
static DtHlaStateDecodercreate (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Create a DtPlatformDecoder.
- Static Public Attributes inherited from DtHlaStateDecoder
static bool theUseGetValuePointer
- Protected Types inherited from DtHlaStateDecoder
typedef std::map
< RTI::AttributeHandle,
DtAttributeDecoder
AttributeHandleDecoderMap
typedef std::map
< RTI::AttributeHandle, bool
AttributeHandleBoolMap
- Protected Member Functions inherited from DtPlatformDecoder
void addMyDecoders ()
 Add decoding functions for the attributes.
 DtDECLARE_ENTITY_ATTR_DECODER (AfterburnerOn)
 Static decode<AttributeName> member functions.
 DtDECLARE_ENTITY_ATTR_DECODER (AntiCollisionLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (BlackOutBrakeLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (BlackOutLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (BrakeLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (FormationLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (HatchState)
 DtDECLARE_ENTITY_ATTR_DECODER (HeadLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (InteriorLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (LandingLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (LauncherRaised)
 DtDECLARE_ENTITY_ATTR_DECODER (NavigationLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (RampDeployed)
 DtDECLARE_ENTITY_ATTR_DECODER (RunningLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (SpotLightsOn)
 DtDECLARE_ENTITY_ATTR_DECODER (TailLightsOn)
- Protected Attributes inherited from DtHlaStateDecoder
DtExerciseConnmyExConn
DtObjClassDescmyClassDesc
RTI::ObjectClassHandle myHandle
AttributeHandleDecoderMap myDecoderList
 myDecoderList is a map of decoders for each attribute registered to this state.

Detailed Description

An example subclass of DtPlatformDecoder for use with DtF18EntityStateRep.

This example shows how to add one more attribute to an existing state repository.

Constructor & Destructor Documentation

DtF18EntityDecoder::DtF18EntityDecoder ( DtExerciseConn exConn,
DtObjClassDesc classDesc 
)
inline
virtual DtF18EntityDecoder::~DtF18EntityDecoder ( )
inlinevirtual

destructor

Member Function Documentation

static void DtF18EntityDecoder::decodeSpecialF18Attribute ( DtF18EntityStateRep stateRep,
const RTI::AttributeHandleValuePairSet attrs,
int  pairSetIndex 
)
inlinestaticprotected

all Encoder/Decoder classes need to be static.

All Decoder classes need to have this function signature. Since they are not virtual you can not overload them.

References DtDecodingBuffer(), rti1516::CompatibleHandleValuePairSet< HandleType, MapType >::getValue(), rti1516::CompatibleHandleValuePairSet< HandleType, MapType >::getValueLength(), and DtF18EntityStateRep::setF18Attribute().

Referenced by DtF18EntityDecoder().


The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)