WSF
WsfScriptStateMachineObserver.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2021 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFSCRIPTSTATEMACHINEOBSERVER_HPP
13#define WSFSCRIPTSTATEMACHINEOBSERVER_HPP
14
15#include "wsf_export.h"
16
17#include "UtCallback.hpp"
18
20class WsfSimulation;
21
22namespace WsfObserver
23{
24using StateMachineCallback = UtCallbackListN<void(double, WsfScriptStateMachine*)>;
25using StateMachineStateCallback = UtCallbackListN<void(double, WsfScriptStateMachine*, int, int)>;
26
29} // namespace WsfObserver
30
32{
33 // Callback for sending the state machine layout upon state machine initialization.
35
36 // Callback for sending the state machine's current state.
38};
39
40#endif // WSFSCRIPTSTATEMACHINEOBSERVER_HPP
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfScriptStateMachine.hpp:47
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Observer definitions for cyber events.
Definition WsfAdvancedBehaviorObserver.hpp:22
UtCallbackListN< void(double, WsfScriptStateMachine *, int, int)> StateMachineStateCallback
Definition WsfScriptStateMachineObserver.hpp:25
UtCallbackListN< void(double, WsfScriptStateMachine *)> StateMachineCallback
Definition WsfScriptStateMachineObserver.hpp:24
WSF_EXPORT StateMachineStateCallback & StateMachineState(const WsfSimulation *aSimulationPtr)
WSF_EXPORT StateMachineCallback & StateMachine(const WsfSimulation *aSimulationPtr)
Definition WsfScriptStateMachineObserver.hpp:32
WsfObserver::StateMachineCallback StateMachine
Definition WsfScriptStateMachineObserver.hpp:34
WsfObserver::StateMachineStateCallback StateMachineState
Definition WsfScriptStateMachineObserver.hpp:37
Copyrights Multiple, All Rights Reserved