rad
2.0.0
|
#include <actionCallback.hpp>
Public Member Functions | |
ActionCallback (const std::string id, std::function< void(AnyEvent const &)> action_method) | |
void | execute (scxml4cpp::Context *c) |
bool | evaluate (scxml4cpp::Context *c) |
ActionCallback (const ActionCallback &)=delete | |
ActionCallback & | operator= (const ActionCallback &)=delete |
Disable copy constructor. More... | |
ActionCallback (const std::string id, std::function< void(AnyEvent const &)> action_method) | |
void | execute (scxml4cpp::Context *c) |
bool | evaluate (scxml4cpp::Context *c) |
ActionCallback (const ActionCallback &)=delete | |
ActionCallback & | operator= (const ActionCallback &)=delete |
Disable copy constructor. More... | |
![]() | |
Action (const std::string &id) | |
virtual | ~Action () |
std::string | getId () const |
std::string | getParam () const |
void | setId (const std::string &id) |
void | setParam (const std::string &p) |
Action (const std::string &id) | |
virtual | ~Action () |
std::string | getId () const |
std::string | getParam () const |
void | setId (const std::string &id) |
void | setParam (const std::string &p) |
Action (const std::string &id) | |
virtual | ~Action () |
std::string | getId () const |
std::string | getParam () const |
void | setId (const std::string &id) |
void | setParam (const std::string &p) |
This class binds an scxml::Action to a method of a class.
rad::ActionCallback::ActionCallback | ( | const std::string | id, |
std::function< void(AnyEvent const &)> | action_method | ||
) |
[in] | id | Action name. |
[in] | action_method | Mapping to the class method implementing the action. |
|
delete |
rad::ActionCallback::ActionCallback | ( | const std::string | id, |
std::function< void(AnyEvent const &)> | action_method | ||
) |
|
delete |
|
virtual |
This method is used for the evaluation of a guard.
[in] | c | SCXML context. |
Implements scxml4cpp::Action.
|
virtual |
Implements scxml4cpp::Action.
|
virtual |
This method is executed when an action, mapped to a method of class is invoked. After extracting from the SCXML context the last event, it triggers the call of the class method associated to the action.
[in] | c | SCXML context. |
Implements scxml4cpp::Action.
|
virtual |
Implements scxml4cpp::Action.
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.