ifw-ccf 5.0.2
Loading...
Searching...
No Matches
appBase.hpp
Go to the documentation of this file.
1
5#ifndef CCF_COMMON_APP_BASE_HPP_
6#define CCF_COMMON_APP_BASE_HPP_
7
8#include <mal/Mal.hpp>
9
10#include <rad/mal/replier.hpp>
11
12#include <scxml4cpp/Context.h>
13#include <scxml4cpp/EventQueue.h>
14#include <rad/smAdapter.hpp>
15
16#include <Recif.hpp>
17
18#include <ifw/ccf/common/events.rad.hpp>
19
21
22
23namespace ifw::ccf::common {
24
26 class AppBase {
27 public:
29 static rad::SMAdapter& StateMachine();
30
32 static bool RecordingActive();
33
35 static boost::asio::io_context& IoContext();
36
37 //static elt::mal::Mal& Mal(); // TODO
38
39 AppBase();
40 ~AppBase();
41
42 protected:
43 private:
44 //rad::cii::Replier* m_mal_replier; // TODO: Implement.
45 //static elt::mal::CiiFactory* s_factory; // TODO: Implement.
46 //static elt::mal::Mal* s_mal; // TODO: Implement.
47 static boost::asio::io_context s_io_context;
48 static scxml4cpp::EventQueue s_external_events;
49 static scxml4cpp::Context s_state_machine_ctx;
50 static rad::SMAdapter* s_state_machine;
51 //ActionMgr m_action_mgr; // TODO: Implement.
52 //StdActions* m_actions_std; // TODO: Implement.
53 };
54
55}
56
57#endif // CCF_COMMON_APP_BASE_HPP_
58
59
Class to be used as parent for CCF application type of classes.
Definition appBase.hpp:26
static bool RecordingActive()
Return true if a Recording Session is ongoing.
Definition appBase.cpp:44
~AppBase()
Definition appBase.cpp:23
static rad::SMAdapter & StateMachine()
Return reference to state machine engine.
Definition appBase.cpp:30
AppBase()
Definition appBase.cpp:19
static boost::asio::io_context & IoContext()
Return reference to Asio I/O Service instance.
Definition appBase.cpp:39
Definition appBase.cpp:9