rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
rad::ActionCallback Class Reference

#include <actionCallback.hpp>

Inheritance diagram for rad::ActionCallback:
scxml4cpp::Action scxml4cpp::Action

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
 
ActionCallbackoperator= (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
 
ActionCallbackoperator= (const ActionCallback &)=delete
 Disable copy constructor. More...
 
- 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)
 
 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)
 

Detailed Description

This class binds an scxml::Action to a method of a class.

Constructor & Destructor Documentation

rad::ActionCallback::ActionCallback ( const std::string  id,
std::function< void(AnyEvent const &)>  action_method 
)
Parameters
[in]idAction name.
[in]action_methodMapping to the class method implementing the action.
rad::ActionCallback::ActionCallback ( const ActionCallback )
delete
rad::ActionCallback::ActionCallback ( const std::string  id,
std::function< void(AnyEvent const &)>  action_method 
)
rad::ActionCallback::ActionCallback ( const ActionCallback )
delete

Member Function Documentation

bool rad::ActionCallback::evaluate ( scxml4cpp::Context c)
virtual

This method is used for the evaluation of a guard.

Parameters
[in]cSCXML context.

Implements scxml4cpp::Action.

bool rad::ActionCallback::evaluate ( scxml4cpp::Context c)
virtual

Implements scxml4cpp::Action.

void rad::ActionCallback::execute ( scxml4cpp::Context c)
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.

Parameters
[in]cSCXML context.

Implements scxml4cpp::Action.

void rad::ActionCallback::execute ( scxml4cpp::Context c)
virtual

Implements scxml4cpp::Action.

ActionCallback& rad::ActionCallback::operator= ( const ActionCallback )
delete

Disable copy constructor.

ActionCallback& rad::ActionCallback::operator= ( const ActionCallback )
delete

Disable copy constructor.


The documentation for this class was generated from the following files: