VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
militaryEntityEncoder.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 DtMilitaryEntityEncoder_H_
8 #define DtMilitaryEntityEncoder_H_
9 
10 #if DtHLA
11 
12 #include "physicalEntityEncoder.h"
13 #include "entityStateRepository.h"
14 
18 
24 
26 {
27 public:
28 
31  DtExerciseConn* exConn,
32  DtObjClassDesc* classDesc);
33 
35  virtual ~DtMilitaryEntityEncoder();
36 
39 
42 
43 public:
44 
47  static DtHlaStateEncoder* create(
48  DtExerciseConn* exConn,
49  DtObjClassDesc* classDesc);
50 
51 protected:
52 
54  DtDECLARE_ENTITY_ATTR_CHECKER(AlternateEntityType);
55  DtDECLARE_ENTITY_ATTR_CHECKER(CamouflageType);
56  DtDECLARE_ENTITY_ATTR_CHECKER(FirePowerDisabled);
58  DtDECLARE_ENTITY_ATTR_CHECKER(IsConcealed);
59 
61  DtDECLARE_ENTITY_ATTR_ENCODER(AlternateEntityType);
62  DtDECLARE_ENTITY_ATTR_ENCODER(CamouflageType);
63  DtDECLARE_ENTITY_ATTR_ENCODER(FirePowerDisabled);
65  DtDECLARE_ENTITY_ATTR_ENCODER(IsConcealed);
66 };
67 
73 #define DtDEFINE_SIMPLE_MIL_ENTITY_ATTR_ENCODER( \
74  attrName, netType, inspector) \
75  DtDEFINE_SIMPLE_ATTR_ENCODER(DtMilitaryEntityEncoder, \
76  DtEntityStateRepository, \
77  attrName, netType, inspector)
78 
84 #define DtDEFINE_SIMPLE_MIL_ENTITY_ATTR_CHECKER( \
85  attrName, inspector) \
86  DtDEFINE_SIMPLE_ATTR_CHECKER(DtMilitaryEntityEncoder, \
87  DtEntityStateRepository, \
88  attrName, inspector)
89 
90 #endif
91 #endif
92 

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)