16 #include <boost/function.hpp>
30 class DtIffStateComponent;
33 namespace makVrfEvents
36 class DtIffInterrogatorEvent;
58 virtual bool init()
override;
66 virtual void tick()
override;
70 virtual const char*
type()
const override;
82 virtual void registerSetIffRequestMsgCallbacks();
84 static void setIffRequestCallback(
DtSimMessage *msg,
void * usrData);
86 virtual void processSetIffRequestMessage(
DtSimMessage *msg);
88 static void setClutterIcaoIffRequestCallback(
DtSimMessage *msg,
void * usrData);
90 virtual void processSetClutterIcaoIffRequestMessage(
DtSimMessage *msg);
133 virtual void setupStaticMode5Settings();
150 virtual bool createPublisher();
152 virtual void updateFromDescriptor();
154 virtual void updateFromSetRequest(
DtSetIff2Request *setReq,
bool updateInPSR =
true);
159 virtual void updateDynamicData();
166 virtual bool createPSR();
172 virtual void enable()
override;
173 virtual void disable()
override;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtIffControllerComponent is a controller that manages a IFF publisher for an entity.
Definition: iffControllerComponent.h:43
General settings that apply to all modes.
Definition: iffMode5Settings.h:12
Definition: iffInterrogatorEvent.h:14
const DtIffControllerDescriptor * myIffDescriptor
Descriptor for this controller; nullptr if the descriptor type is wrong.
Definition: iffControllerComponent.h:185
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
std::map< int, ModeSettingFunction > ModeSettingFunctions
Definition: iffControllerComponent.h:187
ModeSettingFunctions myModeSettingFunctions
Definition: iffControllerComponent.h:188
Definition: simRadio.h:30
virtual void setRadio(DtSimRadio *radio)
virtual void enable() override
Enables the component and resends capable tasks and sets.
virtual void setIsEnabled(bool yesNo)
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: setClutterIcaoIffRequest.h:27
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
makVrf::DtIffStateComponent * myIffComponent
Definition: iffControllerComponent.h:178
virtual void disable() override
Disables the component and resends capable tasks and sets.
class DtSetIff2Request
Definition: setIff2Request.h:20
virtual bool init() override
Calls setRadio()
Definition: iffModeSettings.h:89
DtIffControllerDescriptor; descriptor for the DtIffControllerComponent component. ...
Definition: iffControllerDescriptor.h:25
boost::signals2::connection mySignalForInterrogatorEventConnection
Definition: iffControllerComponent.h:189
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
DtVrfIffPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: iffControllerComponent.h:182
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
boost::function< void(const DtIffModeSetting *)> ModeSettingFunction
Definition: iffControllerComponent.h:121
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
virtual void registerAttributeFunctions()
Called to register functions that provide system attribute values. Called by init(). Empty in this class. Overridden in different components to add attribute provider functions.
Definition: simComponent.h:132
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: iffStateComponent.h:102
A locally simulated VRF object.
Definition: localObject.h:98
class DtVrfIffPSR:
Definition: vrfIffPSR.h:21