rad 6.2.0
|
#include <actionMgr.hpp>
Public Member Functions | |
ActionMgr () | |
virtual | ~ActionMgr () |
template<class T > | |
void | RegisterAction (const std::string &id, void(T::*method)(scxml4cpp::Context *c), T *group) |
template<class T > | |
void | RegisterGuard (const std::string &id, bool(T::*method)(scxml4cpp::Context *c), T *group) |
void | AddAction (scxml4cpp::Action *the_action) |
void | AddActionGroup (rad::ActionGroup *the_action_group) |
void | AddActivity (scxml4cpp::Activity *the_activity) |
ActionList & | GetActions () |
ActionGroupList & | GetActionGroups () |
ActivityList & | GetActivities () |
scxml4cpp::Action * | FindAction (const std::string &id) |
ActionGroup * | FindActionGroup (const std::string &id) |
void | DelAction (const std::string &id) |
ActionMgr (const ActionMgr &)=delete | |
ActionMgr & | operator= (const ActionMgr &)=delete |
Disable copy constructor. | |
This class is responsible for the life-cycle management of actions, action groups, and do-activities objects.
rad::ActionMgr::ActionMgr | ( | ) |
Default Constructor.
|
virtual |
Delete all registered actions, group of actions, and activities.
Reimplemented in exciiserver::ActionMgr, exmalserver::ActionMgr, server::ActionMgr, and rad::utest::ActionMgr.
|
delete |
void rad::ActionMgr::AddAction | ( | scxml4cpp::Action * | the_action | ) |
Register an action.
the_action | Action to be added. |
void rad::ActionMgr::AddActionGroup | ( | rad::ActionGroup * | the_action_group | ) |
Register a group of actions.
the_action_group | Action group to be added. |
void rad::ActionMgr::AddActivity | ( | scxml4cpp::Activity * | the_activity | ) |
Register an activity.
the_activity | Activity to be added. |
void rad::ActionMgr::DelAction | ( | const std::string & | id | ) |
scxml4cpp::Action * rad::ActionMgr::FindAction | ( | const std::string & | id | ) |
Find an action among the registered ones.
[in] | id | Identifier of the action. |
ActionGroup * rad::ActionMgr::FindActionGroup | ( | const std::string & | id | ) |
Find an action group among the registered ones.
[in] | id | Identifier of the action group. |
ActionGroupList & rad::ActionMgr::GetActionGroups | ( | ) |
ActionList & rad::ActionMgr::GetActions | ( | ) |
ActivityList & rad::ActionMgr::GetActivities | ( | ) |
|
inline |
|
inline |