|
rad 6.2.0
|
#include <actionCallback.hpp>
Public Member Functions | |
| ActionCallback (const std::string &id, std::function< void(scxml4cpp::Context *c)> action_method) | |
| void | execute (scxml4cpp::Context *c) |
| bool | evaluate (scxml4cpp::Context *c) |
| ActionCallback (const ActionCallback &)=delete | |
| ActionCallback & | operator= (const ActionCallback &)=delete |
| Disable copy constructor. | |
Public Member Functions inherited from scxml4cpp::Action | |
| 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(scxml4cpp::Context *c)> | action_method ) |
| [in] | id | Action name. |
| [in] | action_method | Mapping to the class method implementing the action. |
|
delete |
|
virtual |
This method is used for the evaluation of a guard.
| [in] | c | SCXML context. |
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.
|
delete |
Disable copy constructor.