11 #include <vrfOM/sets/readNavAidRadioTransmitterRepository.hpp>
12 #include <vrfOM/sets/writeNavAidRadioTransmitterRepository.hpp>
16 class DtRadioTransmitterStateComponent;
54 virtual void setIdentificationCode(
const std::wstring&)
override;
57 virtual const std::wstring identificationCode()
const override;
71 void setPublishingOnLegionNetwork(
bool b);
74 virtual void makeWritable()
override;
77 virtual void makeReadOnly()
override;
80 virtual void updateStateData(
DtStateData*)
override;
101 virtual const std::wstring identificationCode()
const override;
104 bool readComponentValid()
const;
115 virtual void updateStateData(
DtStateData*)
override;
149 if (!myFoundComponent)
151 myFoundComponent = myCurrentFrameState.findReadComponent(myNextFrameState.nextFrameRadioTransmitter());
154 myCurrentFrameState.emitComponentUpdated();
161 myCurrentFrameState.updateStateData(sd);
162 myNextFrameState.updateStateData(sd);
169 myCurrentFrameState.aboutToBeDeleted();
170 myNextFrameState.aboutToBeDeleted();
176 virtual void addAdditionalStateComponents()
override;
178 virtual void removeAdditionalStateComponents()
override;
181 virtual bool forceAdvance()
override;
184 virtual void firstFrameAdvance()
override;
186 virtual void completeSetup()
override;
189 virtual void setPublishingOnLegionNetwork(
bool b)
override;
DtNavAidRadioTransmitterStateComponentCurrentFrame myCurrentFrameState
Current-frame (read) nav aid radio transmitter state.
Definition: navAidRadioTransmitterStateComponent.h:193
virtual const DtFrameStateInterface * nextFrameState() const override
Returns the next-frame state interface (read-only).
Definition: navAidRadioTransmitterStateComponent.h:144
Exception thrown when a required method has not been implemented.
Definition: stateDataTypes.h:30
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: radioTransmitterStateComponent.h:160
virtual DtRadioTransmitterStateComponent * nextFrameRadioTransmitter()
Returns the next-frame radio transmitter state component (writable). Throws DtUnimplementedMethod in ...
Definition: navAidRadioTransmitterStateComponent.h:38
virtual DtFrameStateInterface * nextFrameState() override
Returns the next-frame state interface (writable).
Definition: navAidRadioTransmitterStateComponent.h:142
Current-frame (read) implementation of the nav aid radio transmitter state component.
Definition: navAidRadioTransmitterStateComponent.h:92
Default creator implementation for a state component type. T_StateComponent is the concrete component...
Definition: stateComponent.h:326
Double-buffered state component implementation for the nav aid radio transmitter. Owns and manages bo...
Definition: navAidRadioTransmitterStateComponent.h:127
virtual void aboutToBeDeleted() override
Propagates the about-to-be-deleted notification to both frame states.
Definition: navAidRadioTransmitterStateComponent.h:166
virtual void updateStateData(DtStateData *sd) override
Updates the state data pointer in both frame states.
Definition: navAidRadioTransmitterStateComponent.h:159
virtual void updateDataStorage() override
Advances data storage by attempting to bind the read repository, then signals an update.
Definition: navAidRadioTransmitterStateComponent.h:147
bool myFoundComponent
True once the current-frame read component has been successfully located.
Definition: navAidRadioTransmitterStateComponent.h:197
VRF::ReadNavAidRadioTransmitterRepository myReadNavAidRadioTransmitterRepository
Repository used for reading nav aid radio transmitter data from the Legion layer. ...
Definition: navAidRadioTransmitterStateComponent.h:119
bool myPublishingOnLegionNetwork
True if this component is publishing on the Legion network.
Definition: navAidRadioTransmitterStateComponent.h:88
Definition: stateComponent.h:97
DtNavAidRadioTransmitterStateComponentNextFrame myNextFrameState
Next-frame (write) nav aid radio transmitter state.
Definition: navAidRadioTransmitterStateComponent.h:195
bool isDoubleBuffered()
Returns true since this component uses double buffering.
Definition: navAidRadioTransmitterStateComponent.h:138
const DtRadioTransmitterStateComponent * myRadioTransmitter
The associated current-frame radio transmitter state component (read-only).
Definition: navAidRadioTransmitterStateComponent.h:121
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
Next-frame (write) implementation of the nav aid radio transmitter state component.
Definition: navAidRadioTransmitterStateComponent.h:42
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Macro to define all required static and virtual state component type methods. Place in the public sec...
Definition: stateComponent.h:272
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:489
VRF::WriteNavAidRadioTransmitterRepository myWriteNavAidRadioTransmitterRepository
Repository used for writing nav aid radio transmitter data to the Legion layer.
Definition: navAidRadioTransmitterStateComponent.h:84
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual by-value accessor and an undefined virtual setter, both throwing DtUnimp...
Definition: doubleBufferedDataStorage.h:103
virtual void aboutToBeDeleted()
Called when the component is about to be deleted; emits signal_stateComponentAboutToBeDeleted.
DtStateComponentCreator< DtNavAidRadioTransmitterStateComponentImplementation > DtNavAidRadioTransmitterStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: navAidRadioTransmitterStateComponent.h:204
Interface class representing the nav aid radio transmitter state component. Concrete subclasses provi...
Definition: navAidRadioTransmitterStateComponent.h:21
virtual const DtFrameStateInterface * currentFrameState() const override
Returns the current-frame state interface (read-only).
Definition: navAidRadioTransmitterStateComponent.h:140
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:29
DtRadioTransmitterStateComponent * myRadioTransmitter
The associated next-frame radio transmitter state component.
Definition: navAidRadioTransmitterStateComponent.h:86
Contains the DtStateComponent class declaration.
DtRadioTransmitterStateComponent * myRadioTransmitter
The associated radio transmitter state component shared between frames.
Definition: navAidRadioTransmitterStateComponent.h:199
Base interface for accessing current or next frame state in a double-buffered state component...
Definition: stateComponent.h:354