15 #include <rad/actionGroup.hpp>
16 #include <rad/assert.hpp>
17 #include <rad/actionCallback.hpp>
41 if (actions_std ==
nullptr) {
42 LOG4CPLUS_ERROR(
GetLogger(),
"Cannot create actions_std object.");
46 AddActionGroup(actions_std);
52 scxml4cpp::Action* the_action =
nullptr;
54 using std::placeholders::_1;
56 the_action =
new rad::ActionCallback(
57 "ActionsStd.GetState",
59 AddAction(the_action);
61 the_action =
new rad::ActionCallback(
62 "ActionsStd.GetStatus",
64 AddAction(the_action);
66 the_action =
new rad::ActionCallback(
69 AddAction(the_action);
71 the_action =
new rad::ActionCallback(
74 AddAction(the_action);
76 the_action =
new rad::ActionCallback(
79 AddAction(the_action);
81 the_action =
new rad::ActionCallback(
84 AddAction(the_action);
86 the_action =
new rad::ActionCallback(
89 AddAction(the_action);
91 the_action =
new rad::ActionCallback(
92 "ActionsStd.SetLogLevel",
94 AddAction(the_action);
96 the_action =
new rad::ActionCallback(
99 AddAction(the_action);
101 the_action =
new rad::ActionCallback(
102 "ActionsStd.ExitNoReply",
104 AddAction(the_action);
ActionMgr class header file.
ActionsStd class header file.
virtual ~ActionMgr()
Default destructor.
void CreateActivities(rad::SMAdapter &sm, DataContext &the_data)
Method to instantiate activity objects.
ActionMgr()
Default constructor.
void CreateActions(boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &the_data)
Method to instantiate the action objects.
This class contains the implementation of the actions dealing with the standard commands from stdif....
void Init(scxml4cpp::Context *c)
Implementation of the Init action.
void Enable(scxml4cpp::Context *c)
Implementation of the Enable action.
void GetState(scxml4cpp::Context *c)
Implementation of the GetState action.
void GetStatus(scxml4cpp::Context *c)
Implementation of the GetStatus action.
void SetLogLevel(scxml4cpp::Context *c)
Implementation of the SetLogLevel action.
void Disable(scxml4cpp::Context *c)
Implementation of the Disable action.
void Stop(scxml4cpp::Context *c)
Implementation of the Stop action.
void ExitNoReply(scxml4cpp::Context *c)
Implementation of the ExitNoReply action.
void Exit(scxml4cpp::Context *c)
Implementation of the Exit action.
void Reset(scxml4cpp::Context *c)
Implementation of the Reset action.
This class provide access to the application run-time data including the in-memory DB.
DataContext class header file.
log4cplus::Logger & GetLogger()