rad
2.0.0
|
#include <guardCallback.hpp>
Public Member Functions | |
GuardCallback (const std::string id, std::function< bool(AnyEvent const &)> 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. More... | |
GuardCallback (const std::string id, std::function< bool(AnyEvent const &)> 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. 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::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 |
|
explicit |
|
default |
|
delete |
|
overridevirtual |
This method is used for the evaluation of a guard.
Implements scxml4cpp::Action.
|
overridevirtual |
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.
|
overridevirtual |
Implements scxml4cpp::Action.
|
default |
|
default |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.