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

class DtSoldierDecoder: More...

+ Inheritance diagram for DtSoldierDecoder:
+ Collaboration diagram for DtSoldierDecoder:

Public Member Functions

 DtSoldierDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtSoldierDecoder ()
 destructor
 DtSoldierDecoder (const DtSoldierDecoder &orig)
 copy constructor
DtSoldierDecoderoperator= (const DtSoldierDecoder &orig)
 assignment operator
- Public Member Functions inherited from DtMilitaryEntityDecoder
 DtMilitaryEntityDecoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 constructor
virtual ~DtMilitaryEntityDecoder ()
 destructor
 DtMilitaryEntityDecoder (const DtMilitaryEntityDecoder &orig)
 copy constructor
DtMilitaryEntityDecoderoperator= (const DtMilitaryEntityDecoder &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 Public Member Functions

static DtHlaStateDecodercreate (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Create a DtSoldierDecoder.

Protected Member Functions

void addMyDecoders ()
 Add decoding functions for the attributes.
 DtDECLARE_ENTITY_ATTR_DECODER (PrimaryWeaponState)
 Static decode<AttributeName> member functions.
 DtDECLARE_ENTITY_ATTR_DECODER (SecondaryWeaponState)
- Protected Member Functions inherited from DtMilitaryEntityDecoder
 DtDECLARE_ENTITY_ATTR_DECODER (AlternateEntityType)
 Static decode<AttributeName> member functions.
 DtDECLARE_ENTITY_ATTR_DECODER (CamouflageType)
 DtDECLARE_ENTITY_ATTR_DECODER (FirePowerDisabled)
 DtDECLARE_ENTITY_ATTR_DECODER (ForceID)
 DtDECLARE_ENTITY_ATTR_DECODER (IsConcealed)
- Protected Member Functions inherited from DtPhysicalEntityDecoder
virtual void decode (const DtStateMsg &msg, DtStateRepository *rep) const
 Virtual function override that sets some timestamping info, then calls down to the base class to perform decoding of attributes.
 DtDECLARE_ENTITY_ATTR_DECODER (DamageState)
 Static decode<AttributeName> member functions.
 DtDECLARE_ENTITY_ATTR_DECODER (EngineSmokeOn)
 DtDECLARE_ENTITY_ATTR_DECODER (FlamesPresent)
 DtDECLARE_ENTITY_ATTR_DECODER (HasFuelSupplyCap)
 DtDECLARE_ENTITY_ATTR_DECODER (HasRecoveryCap)
 DtDECLARE_ENTITY_ATTR_DECODER (HasRepairCap)
 DtDECLARE_ENTITY_ATTR_DECODER (Immobilized)
 DtDECLARE_ENTITY_ATTR_DECODER (Marking)
 DtDECLARE_ENTITY_ATTR_DECODER (PowerPlantOn)
 DtDECLARE_ENTITY_ATTR_DECODER (SmokePlumePresent)
 DtDECLARE_ENTITY_ATTR_DECODER (TentDeployed)
 DtDECLARE_ENTITY_ATTR_DECODER (ArticulatedParametersArrayPre09)
 For versions <= 0.8.
 DtDECLARE_ENTITY_ATTR_DECODER (TrailState)
 DtDECLARE_ENTITY_ATTR_DECODER (HatchState)
 DtDECLARE_ENTITY_ATTR_DECODER (LifeformState)
 DtDECLARE_ENTITY_ATTR_DECODER (LightsState)
 DtDECLARE_ENTITY_ATTR_DECODER (RampDeployed)
 DtDECLARE_ENTITY_ATTR_DECODER (ArticulatedParametersArray)
 For versions > 0.8.
 DtDECLARE_ENTITY_ATTR_DECODER (TrailingEffectsCode)
 DtDECLARE_ENTITY_ATTR_DECODER (ForceIdentifier)
 DtDECLARE_ENTITY_ATTR_DECODER (HasAmmunitionSupplyCap)
 DtDECLARE_ENTITY_ATTR_DECODER (AcousticSignatureIndex)
 For Versions >= 2.0007.
 DtDECLARE_ENTITY_ATTR_DECODER (InfraredSignatureIndex)
 DtDECLARE_ENTITY_ATTR_DECODER (PropulsionSystemsData)
 DtDECLARE_ENTITY_ATTR_DECODER (RadarCrossSectionSignatureIndex)
 DtDECLARE_ENTITY_ATTR_DECODER (VectoringNozzleSystemData)
 DtDECLARE_ENTITY_ATTR_DECODER (LiveEntityMeasuredSpeed)
 DtDECLARE_ENTITY_ATTR_DECODER (DIGuyAction)
 For DI Guy only.
 DtDECLARE_ENTITY_ATTR_DECODER (DIGuyAppearance)
 DtDECLARE_ENTITY_ATTR_DECODER (DIGuyArc)
 DtDECLARE_ENTITY_ATTR_DECODER (DIGuyType)
 DtDECLARE_ENTITY_ATTR_DECODER (DIGuyParent)
- Protected Member Functions inherited from DtBaseEntityDecoder
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (Spatial)
 Static decode<AttributeName> member functions.
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (RelativeSpatial)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (IsPartOf)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (IsPartOf_RPR_20014)
 For RPR FOM Version > 2.0014.
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (AccelerationVector)
 For RPR FOM versions <= 1.0.
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (AngularVelocityVector)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (EntityType)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (IsFrozen)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (Orientation)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (VelocityVector)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (DRAlgorithm)
 For RPR FOM versions <= 0.8.
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (Position)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (EntityID)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (DeadReckoningAlgorithm)
 For RPR FOM versions > 0.8.
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (WorldLocation)
 DtDECLARE_BASE_ENTITY_ATTR_DECODER (EntityIdentifier)
- Protected Member Functions inherited from DtHlaStateDecoder
virtual void decodeAttribute (DtStateRepository *stateRep, const RTI::AttributeHandleValuePairSet &attrs, unsigned long pairSetIndex) const
 Decode the attribute at the specified index in the attribute handle pair set.
virtual void copyDecFuncs (const DtHlaStateDecoder &orig)

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 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
- Static Protected Member Functions inherited from DtPhysicalEntityDecoder
static void decodeAttParts (int numParams, DtNetAttachedPart *netParams, DtAttachedPartCollection *attList)
 Called by the decoder for the ArticulatedParametersArray attribute.
static void convertFromRPR1_0 (DtNetArtParamRecord *netParams, DtNetArtParamRecordRPR1 *netParamsRPR1, int numRecords)
 helper function
- 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

class DtSoldierDecoder:

Instances of DtSoldierDecoder are used to decode a soldier entity state message into a state repository in an HLA (as opposed to DIS) environment.

Constructor & Destructor Documentation

DtSoldierDecoder::DtSoldierDecoder ( DtExerciseConn exConn,
DtObjClassDesc classDesc 
)

constructor

virtual DtSoldierDecoder::~DtSoldierDecoder ( )
virtual

destructor

DtSoldierDecoder::DtSoldierDecoder ( const DtSoldierDecoder orig)

copy constructor

Member Function Documentation

void DtSoldierDecoder::addMyDecoders ( )
protected

Add decoding functions for the attributes.

Note: Non-virtual, since meant to be called from constructors to add decoders.

Reimplemented from DtMilitaryEntityDecoder.

static DtHlaStateDecoder* DtSoldierDecoder::create ( DtExerciseConn exConn,
DtObjClassDesc classDesc 
)
static

Create a DtSoldierDecoder.

User is responsible for deletion.

Reimplemented from DtMilitaryEntityDecoder.

DtSoldierDecoder::DtDECLARE_ENTITY_ATTR_DECODER ( PrimaryWeaponState  )
protected

Static decode<AttributeName> member functions.

DtSoldierDecoder::DtDECLARE_ENTITY_ATTR_DECODER ( SecondaryWeaponState  )
protected
DtSoldierDecoder& DtSoldierDecoder::operator= ( const DtSoldierDecoder orig)

assignment operator


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

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)