rad  3.0.0
actionsStd.hpp
Go to the documentation of this file.
1 
9 #ifndef HELLO_ACTION_STD_HPP_
10 #define HELLO_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 
17 #include <scxml4cpp/StatusListener.h>
18 #include <scxml4cpp/EventListener.h>
19 
20 #include <string>
21 
22 namespace hello {
23 
24 class DataContext;
25 
51 {
52 public:
53  ActionsStd(boost::asio::io_service& ios,
54  rad::SMAdapter& sm,
55  rad::MsgReplier& msgR_replier,
56  DataContext& data);
57 
58  void notifyEvent(scxml4cpp::Event* event);
59  void notifyStatus(std::set<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);
69  void Exit(scxml4cpp::Context* c);
71 
72  ActionsStd(const ActionsStd&) = delete;
73  ActionsStd& operator= (const ActionsStd&) = delete;
74 
75 private:
76  boost::asio::io_service& 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 hello
87 
88 #endif // HELLO_ACTION_STD_HPP_
rad::SMAdapter
Definition: smAdapter.hpp:60
rad::Signal
Definition: signal.hpp:22
hello::ActionsStd::Config
void Config(scxml4cpp::Context *c)
Definition: actionsStd.cpp:259
rad::MsgReplier
Definition: msgReplier.hpp:28
hello::DataContext
Definition: dataContext.hpp:22
hello::ActionsStd::Reset
void Reset(scxml4cpp::Context *c)
Definition: actionsStd.cpp:242
hello::ActionsStd::ActionsStd
ActionsStd(const ActionsStd &)=delete
hello::ActionsStd::Status
void Status(scxml4cpp::Context *c)
Definition: actionsStd.cpp:165
hello::ActionsStd::notifyStatus
void notifyStatus(std::set< scxml4cpp::State * > &status)
Definition: actionsStd.cpp:60
hello
Definition: actionMgr.cpp:21
hello::ActionsStd::operator=
ActionsStd & operator=(const ActionsStd &)=delete
Disable copy constructor.
hello::ActionsStd::Init
void Init(scxml4cpp::Context *c)
Definition: actionsStd.cpp:196
hello::ActionsStd::Exit
void Exit(scxml4cpp::Context *c)
Definition: actionsStd.cpp:135
scxml4cpp::EventListener
Definition: EventListener.h:40
hello::ActionsStd::ExitNoReply
void ExitNoReply(scxml4cpp::Context *c)
Definition: actionsStd.cpp:152
hello::ActionsStd::Disable
void Disable(scxml4cpp::Context *c)
Definition: actionsStd.cpp:227
scxml4cpp::StatusListener
Definition: StatusListener.h:41
hello::ActionsStd::SetLogLevel
void SetLogLevel(scxml4cpp::Context *c)
Definition: actionsStd.cpp:277
scxml4cpp::Event
Definition: Event.h:39
hello::ActionsStd::Enable
void Enable(scxml4cpp::Context *c)
Definition: actionsStd.cpp:212
hello::ActionsStd::notifyEvent
void notifyEvent(scxml4cpp::Event *event)
Definition: actionsStd.cpp:112
hello::ActionsStd
Definition: actionsStd.hpp:51
rad::ActionGroup
Definition: actionGroup.hpp:20
hello::ActionsStd::ActionsStd
ActionsStd(boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msgR_replier, DataContext &data)
Definition: actionsStd.cpp:37
hello::ActionsStd::Stop
void Stop(scxml4cpp::Context *c)
Definition: actionsStd.cpp:180
scxml4cpp::Context
Definition: Context.h:44