VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
platformEncoder.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 DtPlatformEncoder_H_
8 #define DtPlatformEncoder_H_
9 
10 #if DtHLA
11 
12 #include "physicalEntityEncoder.h"
13 #include "entityStateRepository.h"
14 
18 
24 
25 class DT_DLL_VL DtPlatformEncoder : public DtPhysicalEntityEncoder
26 {
27 public:
28 
30  DtPlatformEncoder(
31  DtExerciseConn* exConn,
32  DtObjClassDesc* classDesc);
33 
35  virtual ~DtPlatformEncoder();
36 
38  DtPlatformEncoder( const DtPlatformEncoder& orig);
39 
41  DtPlatformEncoder& operator=( const DtPlatformEncoder& orig);
42 
43 public:
44 
47  static DtHlaStateEncoder* create(
48  DtExerciseConn* exConn,
49  DtObjClassDesc* classDesc);
50 
51 protected:
52 
54  DtDECLARE_ENTITY_ATTR_CHECKER(AfterburnerOn);
55  DtDECLARE_ENTITY_ATTR_CHECKER(AntiCollisionLightsOn);
56  DtDECLARE_ENTITY_ATTR_CHECKER(BlackOutBrakeLightsOn);
57  DtDECLARE_ENTITY_ATTR_CHECKER(BlackOutLightsOn);
58  DtDECLARE_ENTITY_ATTR_CHECKER(BrakeLightsOn);
59  DtDECLARE_ENTITY_ATTR_CHECKER(FormationLightsOn);
60  DtDECLARE_ENTITY_ATTR_CHECKER(HatchState);
61  DtDECLARE_ENTITY_ATTR_CHECKER(HeadLightsOn);
62  DtDECLARE_ENTITY_ATTR_CHECKER(InteriorLightsOn);
63  DtDECLARE_ENTITY_ATTR_CHECKER(LandingLightsOn);
64  DtDECLARE_ENTITY_ATTR_CHECKER(LauncherRaised);
65  DtDECLARE_ENTITY_ATTR_CHECKER(NavigationLightsOn);
66  DtDECLARE_ENTITY_ATTR_CHECKER(RampDeployed);
67  DtDECLARE_ENTITY_ATTR_CHECKER(RunningLightsOn);
68  DtDECLARE_ENTITY_ATTR_CHECKER(SpotLightsOn);
69  DtDECLARE_ENTITY_ATTR_CHECKER(TailLightsOn);
70 
72  DtDECLARE_ENTITY_ATTR_ENCODER(AfterburnerOn);
73  DtDECLARE_ENTITY_ATTR_ENCODER(AntiCollisionLightsOn);
74  DtDECLARE_ENTITY_ATTR_ENCODER(BlackOutBrakeLightsOn);
75  DtDECLARE_ENTITY_ATTR_ENCODER(BlackOutLightsOn);
76  DtDECLARE_ENTITY_ATTR_ENCODER(BrakeLightsOn);
77  DtDECLARE_ENTITY_ATTR_ENCODER(FormationLightsOn);
78  DtDECLARE_ENTITY_ATTR_ENCODER(HatchState);
79  DtDECLARE_ENTITY_ATTR_ENCODER(HeadLightsOn);
80  DtDECLARE_ENTITY_ATTR_ENCODER(InteriorLightsOn);
81  DtDECLARE_ENTITY_ATTR_ENCODER(LandingLightsOn);
82  DtDECLARE_ENTITY_ATTR_ENCODER(LauncherRaised);
83  DtDECLARE_ENTITY_ATTR_ENCODER(NavigationLightsOn);
84  DtDECLARE_ENTITY_ATTR_ENCODER(RampDeployed);
85  DtDECLARE_ENTITY_ATTR_ENCODER(RunningLightsOn);
86  DtDECLARE_ENTITY_ATTR_ENCODER(SpotLightsOn);
87  DtDECLARE_ENTITY_ATTR_ENCODER(TailLightsOn);
88 };
89 
95 #define DtDEFINE_SIMPLE_PLATFORM_ATTR_ENCODER( \
96  attrName, netType, inspector) \
97  DtDEFINE_SIMPLE_ATTR_ENCODER( \
98  DtPlatformEncoder, \
99  DtEntityStateRepository, \
100  attrName, netType, inspector)
101 
107 #define DtDEFINE_SIMPLE_PLATFORM_ATTR_CHECKER( \
108  attrName, inspector) \
109  DtDEFINE_SIMPLE_ATTR_CHECKER( \
110  DtPlatformEncoder, \
111  DtEntityStateRepository, \
112  attrName, inspector)
113 
114 #define DtDEFINE_PLATFORM_LIGHTS_ATTR_CHECKER(attrName, arg1) \
115  DtDEFINE_LIGHT_ATTR_CHECKER(DtPlatformEncoder, attrName, arg1)
116 
117 #define DtDEFINE_PLATFORM_LIGHTS_ATTR_ENCODER(attrName, arg1) \
118  DtDEFINE_LIGHT_ATTR_ENCODER(DtPlatformEncoder, attrName, arg1)
119 
120 #endif
121 #endif
122 

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)