ifw-sup  3.0.0-pre3
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 <utils/bat/logger.hpp>
13 #include <ifw/sup/subsim/common/events.rad.hpp>
14 
15 #include <rad/actionGroup.hpp>
16 #include <rad/smAdapter.hpp>
17 #include <rad/mal/request.hpp>
18 
19 #include <scxml4cpp/Context.h>
20 
21 namespace sup {
22  namespace subsim {
23  namespace common {
24 
25  class DataContext;
26 
30  class ActionsSetup : public rad::ActionGroup
31  {
32  public:
41  ActionsSetup();
42 
49  void Start(scxml4cpp::Context* c);
50 
58  void Stop(scxml4cpp::Context* c);
59 
67  void Done(scxml4cpp::Context* c);
68 
76  void Error(scxml4cpp::Context* c);
77 
85  void Timeout(scxml4cpp::Context* c);
86 
87  ActionsSetup(const ActionsSetup&) = delete;
88  ActionsSetup& operator= (const ActionsSetup&) = delete;
89 
90  private:
91 
92  rad::cii::Request<std::string> m_setup_req;
93  log4cplus::Logger m_logger;
94  };
95  } // namespace common
96  } // namespace devmgr
97 }
98 
99 #endif // SUP_SUBSIM_COMMON_ACTIONS_SETUP_HPP_
Definition: actionsSetup.hpp:31
ActionsSetup & operator=(const ActionsSetup &)=delete
Disable assignment operator.
void Stop(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:42
void Error(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:66
void Timeout(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:82
ActionsSetup(const ActionsSetup &)=delete
Disable copy constructor.
void Done(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:58
void Start(scxml4cpp::Context *c)
Definition: actionsSetup.cpp:28
ActionsSetup()
Definition: actionsSetup.cpp:22
Definition: actionMgr.cpp:32