VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
soldierDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtSoldierDecoder_H_
8 #define DtSoldierDecoder_H_
9 
10 #if DtHLA
11 
12 #include "militaryEntityDecoder.h"
13 
17 
19 
25 
27 {
28 public:
29 
32  DtExerciseConn* exConn,
33  DtObjClassDesc* classDesc);
34 
36  virtual ~DtSoldierDecoder();
37 
40 
43 
44 public:
45 
48  static DtHlaStateDecoder* create(
49  DtExerciseConn* exConn,
50  DtObjClassDesc* classDesc);
51 
52 protected:
53 
57  void addMyDecoders();
58 
60  DtDECLARE_ENTITY_ATTR_DECODER(PrimaryWeaponState);
61  DtDECLARE_ENTITY_ATTR_DECODER(SecondaryWeaponState);
62 };
63 
69 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_DECODER_WITH_CAST( \
70  attrName, netType, mutator, castExpr) \
71  DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \
72  DtSoldierDecoder, DtEntityStateRepository, \
73  attrName, netType, mutator, castExpr)
74 
75 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_DECODER( \
76  attrName, netType, inspector) \
77  DtDEFINE_SIMPLE_SOLDIER_ATTR_DECODER_WITH_CAST( \
78  attrName, netType, inspector, (netType))
79 
80 #endif
81 #endif
82 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
class DtSoldierDecoder:
Definition: soldierDecoder.h:26
static DtHlaStateDecoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtMilitaryEntityDecoder.
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:41
DtDECLARE_ENTITY_ATTR_DECODER(AlternateEntityType)
Static decode<AttributeName> member functions.
DtHlaStateDecoder is used to provide decoding of a state message into a state repository in an HLA (a...
Definition: hlaStateDecoder.h:34
DtMilitaryEntityDecoder & operator=(const DtMilitaryEntityDecoder &orig)
assignment operator
void addMyDecoders()
Add decoding functions for the attributes.
This file provides a declaration of the class DtMilitaryEntityDecoder.
class DtMilitaryEntityDecoder:
Definition: militaryEntityDecoder.h:26

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)