WSF
src
core
wsf_cyber
source
Macros
WsfCyberObserver.cpp File Reference
#include "
WsfCyberObserver.hpp
"
#include "
WsfCyberSimulationExtension.hpp
"
Include dependency graph for WsfCyberObserver.cpp:
Macros
#define
WSF_CYBER_OBSERVER_CALLBACK_DEFINE
(EVENT)
#define
WSF_CYBER_OBSERVER_CALLBACK_TRIGGER
(EVENT)
Macro Definition Documentation
◆
WSF_CYBER_OBSERVER_CALLBACK_DEFINE
#define WSF_CYBER_OBSERVER_CALLBACK_DEFINE
(
EVENT
)
Value:
WsfObserver::CyberCallback
& WsfObserver::EVENT(
const
WsfSimulation
* aSimulationPtr) \
{ \
return
wsf::cyber::SimulationExtension::Get
(*aSimulationPtr).
GetObserver
().EVENT; \
}
WsfSimulation
The main controller for a simulation.
Definition
WsfSimulation.hpp:109
wsf::cyber::SimulationExtension::Get
static SimulationExtension & Get(const WsfSimulation &aSimulation)
Return a reference to the cyber simulation extension.
Definition
WsfCyberSimulationExtension.cpp:111
wsf::cyber::SimulationExtension::GetObserver
Observer & GetObserver()
Definition
WsfCyberSimulationExtension.hpp:44
WsfObserver::CyberCallback
UtCallbackListN< void(double, const wsf::cyber::Engagement &)> CyberCallback
Definition
WsfCyberObserver.hpp:39
◆
WSF_CYBER_OBSERVER_CALLBACK_TRIGGER
#define WSF_CYBER_OBSERVER_CALLBACK_TRIGGER
(
EVENT
)
Value:
WsfObserver::EVENT##Callback& WsfObserver::EVENT(
const
WsfSimulation
* aSimulationPtr) \
{ \
return
wsf::cyber::SimulationExtension::Get
(*aSimulationPtr).
GetObserver
().EVENT; \
}
Copyrights Multiple, All Rights Reserved