rad 8.2.0
Loading...
Searching...
No Matches
actionsStd.hpp
Go to the documentation of this file.
1
9#ifndef {{cookiecutter.module_name|upper}}_ACTION_STD_HPP_
10#define {{cookiecutter.module_name|upper}}_ACTION_STD_HPP_
11
12#include <rad/actionGroup.hpp>
13#include <rad/signal.hpp>
14#include <rad/msgReplier.hpp>
15#include <rad/smAdapter.hpp>
16
19
20#include <string>
21
22namespace {{cookiecutter.module_name}} {
23
24class DataContext;
25
48class ActionsStd : public rad::ActionGroup,
51{
52public:
53 ActionsStd(boost::asio::io_context& ios,
54 rad::SMAdapter& sm,
55 rad::MsgReplier& msgR_replier,
56 DataContext& data);
57
58 void notifyEvent(scxml4cpp::Event* event);
59 void notifyStatus(std::list<scxml4cpp::State*>& status);
60
61 void Status(scxml4cpp::Context* c);
62 void Stop(scxml4cpp::Context* c);
63 void Init(scxml4cpp::Context* c);
64 void Enable(scxml4cpp::Context* c);
65 void Disable(scxml4cpp::Context* c);
66 void Reset(scxml4cpp::Context* c);
67 void Config(scxml4cpp::Context* c);
68 void SetLogLevel(scxml4cpp::Context* c);
69 void Exit(scxml4cpp::Context* c);
70 void ExitNoReply(scxml4cpp::Context* c);
71
72 ActionsStd(const ActionsStd&) = delete;
73 ActionsStd& operator= (const ActionsStd&) = delete;
74
75private:
76 boost::asio::io_context& m_ios;
77 rad::SMAdapter& m_sm;
78 rad::MsgReplier& m_msg_replier;
79 rad::Signal m_signal;
80 DataContext& m_data;
81 std::string m_status;
82 std::string m_state;
83 std::string m_substate;
84};
85
86} // namespace {{cookiecutter.module_name}}
87
88#endif // {{cookiecutter.module_name|upper}}_ACTION_STD_HPP_
EventListener header.
StatusListener header.
ActionGroup class header file.
Definition actionGroup.hpp:20
ActionGroup & operator=(const ActionGroup &)=delete
Disable copy constructor.
Definition EventListener.h:57
virtual void notifyEvent(Event *e)=0
Definition StatusListener.h:60
virtual void notifyStatus(std::list< State * > &status)=0
MsgReplier class header file.
Signal class.
SMAdapter class header file.
#define cookiecutter