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