ifw-sup  1.0.0
actionsSetup.hpp
Go to the documentation of this file.
1 
8 #ifndef SUP_SUBSIM_COMMON_ACTIONS_SETUP_HPP_
9 #define SUP_SUBSIM_COMMON_ACTIONS_SETUP_HPP_
10 
11 // Local headers
12 #include <sup/subsim/common/events.rad.hpp>
13 
14 #include <rad/actionGroup.hpp>
15 #include <rad/smAdapter.hpp>
16 #include <rad/mal/request.hpp>
17 
18 #include <scxml4cpp/Context.h>
19 
20 namespace sup {
21  namespace subsim {
22  namespace common {
23 
24  class DataContext;
25 
29  class ActionsSetup : public rad::ActionGroup
30  {
31  public:
40  ActionsSetup(boost::asio::io_service& ios,
41  rad::SMAdapter& sm,
42  DataContext& data_ctx);
43 
50  void Start(scxml4cpp::Context* c);
51 
59  void Stop(scxml4cpp::Context* c);
60 
68  void Done(scxml4cpp::Context* c);
69 
77  void Error(scxml4cpp::Context* c);
78 
86  void Timeout(scxml4cpp::Context* c);
87 
88  ActionsSetup(const ActionsSetup&) = delete;
89  ActionsSetup& operator= (const ActionsSetup&) = delete;
90 
91  private:
92  boost::asio::io_service& m_io_service;
93  rad::SMAdapter& m_sm;
94  DataContext& m_data_ctx;
95 
96  rad::cii::Request<std::string> m_setup_req;
97  };
98  } // namespace common
99  } // namespace devmgr
100 }
101 
102 #endif // SUP_SUBSIM_COMMON_ACTIONS_SETUP_HPP_
sup::subsim::common::ActionsSetup
Definition: actionsSetup.hpp:30
sup::subsim::common::ActionsSetup::ActionsSetup
ActionsSetup(boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data_ctx)
Definition: actionsSetup.cpp:22
sup::subsim::common::ActionsSetup::Stop
void Stop(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:46
sup::subsim::common::ActionsSetup::ActionsSetup
ActionsSetup(const ActionsSetup &)=delete
Disable copy constructor.
sup
Definition: actionMgr.cpp:32
sup::subsim::common::ActionsSetup::Error
void Error(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:70
sup::subsim::common::DataContext
Definition: dataContext.hpp:87
sup::subsim::common::ActionsSetup::Timeout
void Timeout(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:86
sup::subsim::common::ActionsSetup::Start
void Start(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:32
sup::subsim::common::ActionsSetup::Done
void Done(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:62
sup::subsim::common::ActionsSetup::operator=
ActionsSetup & operator=(const ActionsSetup &)=delete
Disable assignment operator.