10 #include "legionDataStore/writeStateInstance.h"
12 #include <vlutil/vlString.h>
138 : DtFrameStateInterface(storage)
176 const int antiCollisionLightsDayNight()
const;
177 void setAntiCollisionLightsDayNight(
const int&);
179 const int antiCollisionLightsFlashing()
const;
180 void setAntiCollisionLightsFlashing(
const int&);
182 const int formationLightsLuminance()
const;
183 void setFormationLightsLuminance(
const int&);
185 const int navigationLightsFlashing()
const;
186 void setNavigationLightsFlashing(
const int&);
188 const int nvgMode()
const;
189 void setNvgMode(
const int&);
191 const bool taxiwayLightsOn()
const;
192 void setTaxiwayLightsOn(
const bool&);
194 const bool hduLightsOn()
const;
195 void setHduLightsOn(
const bool&);
197 const bool refuelingStation1LightsOn()
const;
198 void setRefuelingStation1LightsOn(
const bool&);
200 const int refuelingStation1LightsColor()
const;
201 void setRefuelingStation1LightsColor(
const int&);
203 const bool refuelingStation1LightsFlashing()
const;
204 void setRefuelingStation1LightsFlashing(
const bool&);
206 const int refuelingStation1DayNight()
const;
207 void setRefuelingStation1DayNight(
const int&);
209 const bool refuelingStation2LightsOn()
const;
210 void setRefuelingStation2LightsOn(
const bool&);
212 const int refuelingStation2LightsColor()
const;
213 void setRefuelingStation2LightsColor(
const int&);
215 const bool refuelingStation2LightsFlashing()
const;
216 void setRefuelingStation2LightsFlashing(
const bool&);
218 const int refuelingStation2DayNight()
const;
219 void setRefuelingStation2DayNight(
const int&);
221 const bool refuelingStation3LightsOn()
const;
222 void setRefuelingStation3LightsOn(
const bool&);
224 const int refuelingStation3LightsColor()
const;
225 void setRefuelingStation3LightsColor(
const int&);
227 const bool refuelingStation3LightsFlashing()
const;
228 void setRefuelingStation3LightsFlashing(
const bool&);
230 const int refuelingStation3DayNight()
const;
231 void setRefuelingStation3DayNight(
const int&);
237 virtual void makeReadOnly() {};
256 const int antiCollisionLightsDayNight()
const;
257 const int antiCollisionLightsFlashing()
const;
258 const int formationLightsLuminance()
const;
259 const int navigationLightsFlashing()
const;
260 const int nvgMode()
const;
261 const bool taxiwayLightsOn()
const;
262 const bool hduLightsOn()
const;
263 const bool refuelingStation1LightsOn()
const;
264 const int refuelingStation1LightsColor()
const;
265 const bool refuelingStation1LightsFlashing()
const;
266 const int refuelingStation1DayNight()
const;
267 const bool refuelingStation2LightsOn()
const;
268 const int refuelingStation2LightsColor()
const;
269 const bool refuelingStation2LightsFlashing()
const;
270 const int refuelingStation2DayNight()
const;
271 const bool refuelingStation3LightsOn()
const;
272 const int refuelingStation3LightsColor()
const;
273 const bool refuelingStation3LightsFlashing()
const;
274 const int refuelingStation3DayNight()
const;
276 friend class DtAircraftLightingStateImplementation;
301 if (myNextFrameState.isWritable())
303 myCurrentFrameState.advanceFrame(myNextFrameState.frameState());
306 myCurrentFrameState.emitComponentUpdated();
311 myCurrentFrameState.updateStateData(sd);
312 myNextFrameState.updateStateData(sd);
318 myCurrentFrameState.aboutToBeDeleted();
319 myNextFrameState.aboutToBeDeleted();
int myRefuelingStation2LightsColor
Definition: aircraftLightingStateComponent.h:115
int myRefuelingStation3DayNight
Definition: aircraftLightingStateComponent.h:119
int myRefuelingStation2DayNight
Definition: aircraftLightingStateComponent.h:118
bool myRefuelingStation3LightsOn
Definition: aircraftLightingStateComponent.h:124
Definition: stateComponent.h:266
bool myRefuelingStation3LightsFlashing
Definition: aircraftLightingStateComponent.h:127
bool myTaxiwayLightsOn
Definition: aircraftLightingStateComponent.h:120
bool myRefuelingStation1LightsFlashing
Definition: aircraftLightingStateComponent.h:125
bool myHduLightsOn
Definition: aircraftLightingStateComponent.h:121
virtual void aboutToBeDeleted() override
Definition: aircraftLightingStateComponent.h:315
DtStateComponentCreator< DtAircraftLightingStateComponentImplementation > DtAircraftLightingStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: aircraftLightingStateComponent.h:329
const DtAircraftLightingStateComponentData & frameState() const
Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)...
Definition: aircraftLightingStateComponent.h:173
int myRefuelingStation3LightsColor
Definition: aircraftLightingStateComponent.h:116
int myNavigationLightsFlashing
Definition: aircraftLightingStateComponent.h:112
virtual const DtFrameStateInterface * nextFrameState() const
Definition: aircraftLightingStateComponent.h:297
DtAircraftLightingStateComponentData myData
Definition: aircraftLightingStateComponent.h:284
DtAircraftLightingStateComponentNextFrame myNextFrameState
Definition: aircraftLightingStateComponent.h:324
int myRefuelingStation1LightsColor
Definition: aircraftLightingStateComponent.h:114
int myNvgMode
Definition: aircraftLightingStateComponent.h:113
Definition: aircraftLightingStateComponent.h:16
DtAircraftLightingStateComponentData & operator=(const DtAircraftLightingStateComponentData &orig)
Definition: aircraftLightingStateComponent.h:63
2) Define the next frame class. This will be used for write access.
Definition: aircraftLightingStateComponent.h:165
virtual DtFrameStateInterface * nextFrameState()
Definition: aircraftLightingStateComponent.h:296
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:228
void updateDataStorage()
Implement to update data storage. Called from advanceFrame.
Definition: aircraftLightingStateComponent.h:299
bool myRefuelingStation1LightsOn
Definition: aircraftLightingStateComponent.h:122
DtAircraftLightingStateComponentCurrentFrame myCurrentFrameState
Definition: aircraftLightingStateComponent.h:323
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:379
int myAntiCollisionLightsFlashing
Definition: aircraftLightingStateComponent.h:110
bool myRefuelingStation2LightsOn
Definition: aircraftLightingStateComponent.h:123
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:53
virtual void aboutToBeDeleted()
bool myRefuelingStation2LightsFlashing
Definition: aircraftLightingStateComponent.h:126
DtAircraftLightingStateComponentData & frameState()
Definition: aircraftLightingStateComponent.h:174
bool isDoubleBuffered()
Definition: aircraftLightingStateComponent.h:294
DtStateData * myStateData
Definition: aircraftLightingStateComponent.h:283
Definition: stateComponent.h:96
int myAntiCollisionLightsDayNight
Definition: aircraftLightingStateComponent.h:109
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
Definition: doubleBufferedDataStorage.h:23
3) Define the current frame class. This will be used for read access.
Definition: aircraftLightingStateComponent.h:246
void updateStateData(DtStateData *sd)
Implement to update data storage to the new state data.
Definition: aircraftLightingStateComponent.h:309
DtAircraftLightingStateComponentData(const DtAircraftLightingStateComponentData &orig)
Definition: aircraftLightingStateComponent.h:40
const DtFrameStateInterface * currentFrameState() const
Definition: aircraftLightingStateComponent.h:295
virtual void makeWritable()
Override to make component writable.
Definition: aircraftLightingStateComponent.h:234
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:26
DtAircraftLightingStateComponentData myData
Definition: aircraftLightingStateComponent.h:242
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: aircraftLightingStateComponent.h:289
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: aircraftLightingStateComponent.h:132
void advanceFrame(const DtAircraftLightingStateComponentData &data)
Definition: aircraftLightingStateComponent.h:277
Contains the DtStateComponent class declaration.
const DtAircraftLightingStateComponentData & frameState() const
Current frame state only can access current frame buffers. This ensures thread safety.
Definition: aircraftLightingStateComponent.h:254
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:291
DtAircraftLightingStateComponentData()
Definition: aircraftLightingStateComponent.h:18
int myRefuelingStation1DayNight
Definition: aircraftLightingStateComponent.h:117
int myFormationLightsLuminance
Definition: aircraftLightingStateComponent.h:111