9 #ifndef SERVER_ACTION_STD_HPP_
10 #define SERVER_ACTION_STD_HPP_
12 #include <rad/actionGroup.hpp>
13 #include <rad/signal.hpp>
14 #include <rad/smAdapter.hpp>
37 std::optional<std::string>
MakeStatusString(std::list<scxml4cpp::State*>&& states);
71 void GetState(scxml4cpp::Context* c);
89 void Stop(scxml4cpp::Context* c);
98 void Init(scxml4cpp::Context* c);
106 void Enable(scxml4cpp::Context* c);
114 void Disable(scxml4cpp::Context* c);
122 void Reset(scxml4cpp::Context* c);
140 void Exit(scxml4cpp::Context* c);
154 boost::asio::io_service& m_io_service;
155 rad::SMAdapter& m_sm;
156 rad::Signal m_signal;
This class contains the implementation of the actions dealing with the standard commands from stdif....
ActionsStd & operator=(const ActionsStd &)=delete
Disable copy constructor.
void Init(scxml4cpp::Context *c)
Implementation of the Init action.
void Enable(scxml4cpp::Context *c)
Implementation of the Enable action.
ActionsStd(boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data)
Constructor.
void GetState(scxml4cpp::Context *c)
Implementation of the GetState action.
void GetStatus(scxml4cpp::Context *c)
Implementation of the GetStatus action.
ActionsStd(const ActionsStd &)=delete
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.
std::optional< std::string > MakeStatusString(std::list< scxml4cpp::State * > &&states)
Make a status string from active states (as returned from scxml4cpp::Executor::getStatus()).