|
rad 6.2.0
|
#include <guardCallback.hpp>
Public Member Functions | |
| GuardCallback (const std::string &id, std::function< bool(scxml4cpp::Context *c)> guard_method) | |
| void | execute (scxml4cpp::Context *c) override |
| bool | evaluate (scxml4cpp::Context *c) override |
| GuardCallback (GuardCallback &&)=default | |
| GuardCallback & | operator= (GuardCallback &&)=default |
| GuardCallback (const GuardCallback &)=delete | |
| GuardCallback & | operator= (const GuardCallback &)=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::Guard to a method of a class.
|
explicit |
| [in] | id | Guard name. |
| [in] | guard_method | Mapping to the class method implementing the guard. |
|
default |
|
delete |
|
overridevirtual |
This method is used for the evaluation of a guard.
Implements scxml4cpp::Action.
|
overridevirtual |
This method is executed when an guard, 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 guard.
| [in] | c | SCXML context. |
Implements scxml4cpp::Action.
|
delete |
Disable copy constructor.
|
default |