rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/smAdapter.hpp>
15 
16 #include <scxml4cpp/StatusListener.h>
17 #include <scxml4cpp/EventListener.h>
18 
19 #include <string>
20 
21 namespace {{cookiecutter.module_name}} {
22 
23 class DataContext;
24 
47 class ActionsStd : public rad::ActionGroup,
50  public:
58  ActionsStd(boost::asio::io_service& ios,
59  rad::SMAdapter& sm,
60  DataContext& data);
61 
70 
77  void notifyStatus(std::set<scxml4cpp::State*>& status);
78 
87  void Status(const rad::AnyEvent& last_event);
88 
96  void Stop(const rad::AnyEvent& last_event);
97 
106  void Init(const rad::AnyEvent& last_event);
107 
115  void Enable(const rad::AnyEvent& last_event);
116 
124  void Disable(const rad::AnyEvent& last_event);
125 
133  void Reset(const rad::AnyEvent& last_event);
134 
144  void Config(const rad::AnyEvent& last_event);
145 
154  void SetLogLevel(const rad::AnyEvent& last_event);
155 
164  void Exit(const rad::AnyEvent& last_event);
165 
173  void ExitNoReply(const rad::AnyEvent& last_event);
174 
175  ActionsStd(const ActionsStd&) = delete;
176  ActionsStd& operator=(const ActionsStd&) = delete;
177 
178  private:
179  boost::asio::io_service& m_io_service;
180  rad::SMAdapter& m_sm;
181  rad::Signal m_signal;
182  DataContext& m_data;
183  std::string m_status;
184  std::string m_state;
185  std::string m_substate;
186 };
187 
188 } // namespace {{cookiecutter.module_name}}
189 
190 #endif // {{cookiecutter.module_name|upper}}_ACTION_STD_HPP_
virtual void notifyEvent(Event *e)=0
Definition: signal.hpp:22
Definition: EventListener.h:39
virtual void notifyStatus(std::set< State * > &status)=0
ActionGroup & operator=(const ActionGroup &)=delete
Disable copy constructor.
Definition: smAdapter.hpp:42
#define cookiecutter
Definition: StatusListener.h:40
Definition: anyEvent.hpp:52
Definition: Event.h:38
Definition: actionGroup.hpp:20