VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lifeformEncoder.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 DtLifeformEncoder_H_
8 #define DtLifeformEncoder_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 ~DtLifeformEncoder();
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(FlashLightsOn);
56  DtDECLARE_ENTITY_ATTR_CHECKER(PrimaryWeaponState);
57  DtDECLARE_ENTITY_ATTR_CHECKER(SecondaryWeaponState);
58  DtDECLARE_ENTITY_ATTR_CHECKER(ComplianceState);
59 
61  DtDECLARE_ENTITY_ATTR_ENCODER(FlashLightsOn);
63  DtDECLARE_ENTITY_ATTR_ENCODER(PrimaryWeaponState);
64  DtDECLARE_ENTITY_ATTR_ENCODER(SecondaryWeaponState);
65  DtDECLARE_ENTITY_ATTR_ENCODER(ComplianceState);
66 };
67 
73 #define DtDEFINE_SIMPLE_LIFEFORM_ATTR_ENCODER( \
74  attrName, netType, inspector) \
75  DtDEFINE_SIMPLE_ATTR_ENCODER( \
76  DtLifeformEncoder, \
77  DtEntityStateRepository, \
78  attrName, netType, inspector)
79 
85 #define DtDEFINE_SIMPLE_LIFEFORM_ATTR_CHECKER( \
86  attrName, inspector) \
87  DtDEFINE_SIMPLE_ATTR_CHECKER( \
88  DtLifeformEncoder, \
89  DtEntityStateRepository, \
90  attrName, inspector)
91 
92 #define DtDEFINE_LIFEFORM_LIGHT_ATTR_CHECKER(attrName, arg1) \
93  DtDEFINE_LIGHT_ATTR_CHECKER(DtLifeformEncoder, attrName, arg1)
94 
95 #define DtDEFINE_LIFEFORM_LIGHT_ATTR_ENCODER(attrName, arg1) \
96  DtDEFINE_LIGHT_ATTR_ENCODER(DtLifeformEncoder, attrName, arg1)
97 
98 #endif
99 #endif
100 

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)