VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
soldierEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtSoldierEncoder_H_
8 #define DtSoldierEncoder_H_
9 
10 #if DtHLA
11 
12 #include "militaryEntityEncoder.h"
13 #include "entityStateRepository.h"
14 
18 
23 
24 class DT_DLL_VL DtSoldierEncoder : public DtMilitaryEntityEncoder
25 {
26 public:
27 
29  DtSoldierEncoder(
30  DtExerciseConn* exConn,
31  DtObjClassDesc* classDesc);
32 
34  virtual ~DtSoldierEncoder();
35 
37  DtSoldierEncoder(const DtSoldierEncoder& orig);
38 
40  DtSoldierEncoder& operator=(const DtSoldierEncoder& orig);
41 
42 public:
43 
46  static DtHlaStateEncoder* create(
47  DtExerciseConn* exConn,
48  DtObjClassDesc* classDesc);
49 
50 protected:
51 
53  DtDECLARE_ENTITY_ATTR_CHECKER(PrimaryWeaponState);
54  DtDECLARE_ENTITY_ATTR_CHECKER(SecondaryWeaponState);
55 
57  DtDECLARE_ENTITY_ATTR_ENCODER(PrimaryWeaponState);
58  DtDECLARE_ENTITY_ATTR_ENCODER(SecondaryWeaponState);
59 };
60 
66 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_ENCODER( \
67  attrName, netType, inspector) \
68  DtDEFINE_SIMPLE_ATTR_ENCODER(DtSoldierEncoder, \
69  DtEntityStateRepository, \
70  attrName, netType, inspector)
71 
77 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_CHECKER( \
78  attrName, inspector) \
79  DtDEFINE_SIMPLE_ATTR_CHECKER(DtSoldierEncoder, \
80  DtEntityStateRepository, \
81  attrName, inspector)
82 
83 #endif
84 #endif
85 

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)