VR-Link API Documentation for DIS
hSensorEnc.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 DtSensorEncoder_H_
8 #define DtSensorEncoder_H_
9 
10 #if DtHLA
11 
12 #include "hPhysEntEnc.h"
13 #include "entitySR.h"
14 
18 
24 
25 class DT_DLL_VL DtSensorEncoder : public DtPhysicalEntityEncoder
26 {
27 public:
28 
30  DtSensorEncoder(
31  DtExerciseConn* exConn,
32  DtObjClassDesc* classDesc);
33 
35  virtual ~DtSensorEncoder();
36 
38  DtSensorEncoder(const DtSensorEncoder& orig);
39 
41  DtSensorEncoder& operator=(const DtSensorEncoder& orig);
42 
43 public:
44 
47  static DtHlaStateEncoder* create(
48  DtExerciseConn* exConn,
49  DtObjClassDesc* classDesc);
50 
51 protected:
52 
54  DtDECLARE_ENTITY_ATTR_CHECKER(AntennaRaised);
55  DtDECLARE_ENTITY_ATTR_CHECKER(BlackoutLightsOn);
56  DtDECLARE_ENTITY_ATTR_CHECKER(LightsOn);
57  DtDECLARE_ENTITY_ATTR_CHECKER(InteriorLightsOn);
58  DtDECLARE_ENTITY_ATTR_CHECKER(MissionKill);
59 
61  DtDECLARE_ENTITY_ATTR_ENCODER(AntennaRaised);
62  DtDECLARE_ENTITY_ATTR_ENCODER(BlackoutLightsOn);
63  DtDECLARE_ENTITY_ATTR_ENCODER(LightsOn);
64  DtDECLARE_ENTITY_ATTR_ENCODER(InteriorLightsOn);
65  DtDECLARE_ENTITY_ATTR_ENCODER(MissionKill);
66 };
67 
73 #define DtDEFINE_SIMPLE_SENSOR_ATTR_ENCODER( \
74  attrName, netType, inspector) \
75  DtDEFINE_SIMPLE_ATTR_ENCODER( \
76  DtSensorEncoder, \
77  DtEntityStateRepository, \
78  attrName, netType, inspector)
79 
85 #define DtDEFINE_SIMPLE_SENSOR_ATTR_CHECKER( \
86  attrName, inspector) \
87  DtDEFINE_SIMPLE_ATTR_CHECKER( \
88  DtSensorEncoder, \
89  DtEntityStateRepository, \
90  attrName, inspector)
91 
92 #define DtDEFINE_SENSOR_LIGHT_ATTR_CHECKER(attrName, arg1) \
93  DtDEFINE_LIGHT_ATTR_CHECKER(DtSensorEncoder, attrName, arg1);
94 
95 #define DtDEFINE_SENSOR_LIGHT_ATTR_ENCODER(attrName, arg1) \
96  DtDEFINE_LIGHT_ATTR_ENCODER(DtSensorEncoder, attrName, arg1);
97 
98 #endif
99 #endif
100 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)