ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
14 #include <scxml4cpp/Action.h>
15 #include <scxml4cpp/Context.h>
16 
17 #include <functional>
18 
19 namespace rad {
20 
25 {
26 public:
27  ActionCallback(const std::string id, std::function<void(AnyEvent const&)> actionMethod);
28 
29  void execute(scxml4cpp::Context* c);
31 
32  ActionCallback(const ActionCallback&) = delete;
33  ActionCallback& operator= (const ActionCallback&) = delete;
34 
35 private:
36  std::function<void(AnyEvent const&)> mActionMethod;
37 };
38 
39 } // namespace rad
40 
41 #endif
Definition: Action.h:41
Definition: Context.h:43
ActionCallback(const std::string id, std::function< void(AnyEvent const &)> actionMethod)
Definition: ActionCallback.cpp:20
ActionCallback & operator=(const ActionCallback &)=delete
Disable copy constructor.
Definition: AnyEvent.hpp:55
Definition: ActionCallback.hpp:24
void execute(scxml4cpp::Context *c)
Definition: ActionCallback.cpp:34
bool evaluate(scxml4cpp::Context *c)
Definition: ActionCallback.cpp:59