rad  3.0.0
actionCallback.hpp
Go to the documentation of this file.
1 
9 #ifndef RAD_ACTION_CALLBACK_HPP
10 #define RAD_ACTION_CALLBACK_HPP
11 
12 #include <rad/anyEvent.hpp>
13 #include <rad/exceptions.hpp>
14 #include <rad/smEvent.hpp>
15 
16 #include <scxml4cpp/Action.h>
17 #include <scxml4cpp/Context.h>
18 
19 #include <functional>
20 
21 namespace rad {
22 
27  public:
28  ActionCallback(const std::string id, std::function<void(scxml4cpp::Context* c)> action_method);
29 
30  void execute(scxml4cpp::Context* c);
32 
33  ActionCallback(const ActionCallback&) = delete;
35 
36  private:
37  std::function<void(scxml4cpp::Context* c)> m_action_method;
38 };
39 
40 } // namespace rad
41 
42 #endif // RAD_ACTION_CALLBACK_HPP
rad::ActionCallback::operator=
ActionCallback & operator=(const ActionCallback &)=delete
Disable copy constructor.
scxml4cpp::Action
Definition: Action.h:41
rad
Definition: actionCallback.hpp:21
rad::ActionCallback::ActionCallback
ActionCallback(const std::string id, std::function< void(scxml4cpp::Context *c)> action_method)
Definition: actionCallback.cpp:20
rad::ActionCallback::ActionCallback
ActionCallback(const ActionCallback &)=delete
rad::ActionCallback::execute
void execute(scxml4cpp::Context *c)
Definition: actionCallback.cpp:33
rad::ActionCallback::evaluate
bool evaluate(scxml4cpp::Context *c)
Definition: actionCallback.cpp:57
rad::ActionCallback
Definition: actionCallback.hpp:26
scxml4cpp::Context
Definition: Context.h:44