rad
2.0.0
|
#include <actionMgr.hpp>
This class is responsible for the life-cycle management of actions and activities.
It provides two methods (CreateActions(), CreateActivities()) to create the actions and activities objects used by the State Machine engine.
Action and activity objects are deleted in the base class destructor.
server::ActionMgr::ActionMgr | ( | ) |
Default constructor.
|
virtual |
Default destructor.
Reimplemented from rad::ActionMgr.
|
delete |
server::ActionMgr::ActionMgr | ( | ) |
|
virtual |
Delete all registered actions, group of actions, and activities.
Reimplemented from rad::ActionMgr.
|
delete |
void server::ActionMgr::CreateActions | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | the_data | ||
) |
Method to instantiates the action objects.
[in] | ios | Event loop. |
[in] | sm | SM Adapter used to inject internal events. |
[in] | msg_replier | Helper class to reply to incoming requests. |
[in] | the_data | Data shared within the application among actions and activities. |
void server::ActionMgr::CreateActions | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | the_data | ||
) |
void server::ActionMgr::CreateActivities | ( | DataContext & | the_data, |
rad::SMAdapter & | sm | ||
) |
void server::ActionMgr::CreateActivities | ( | DataContext & | the_data, |
rad::SMAdapter & | sm | ||
) |
Method to instantiate activity objects.
[in] | the_data | Data shared within the application. |
[in] | sm | Reference to the State Machine adapter needed to trigger internal events. |