#include <actionMgr.hpp>
Public Types | |
| using | LoopActionFactory |
| using | LoopSuspendedActionFactory |
| using | LoopCloseActionFactory |
| using | LoopExecuteActivityFactory |
Public Member Functions | |
| ActionMgr (DataContext &the_data) | |
| virtual | ~ActionMgr () |
| void | RegisterLoopActionFactory (int loop_index, LoopActionFactory factory) |
| void | RegisterLoopSuspendedActionFactory (int loop_index, LoopSuspendedActionFactory factory) |
| void | RegisterLoopCloseActionFactory (int loop_index, LoopCloseActionFactory factory) |
| void | RegisterLoopExecuteActivityFactory (int loop_index, LoopExecuteActivityFactory factory) |
| void | CreateActions (rad::Application &appl) override |
| void | CreateActivities (rad::Application &appl) override |
| ActionMgr (const ActionMgr &)=delete | |
| ActionMgr & | operator= (const ActionMgr &)=delete |
| Disable copy constructor. | |
| BaseLoopSuspendedActions * | CreateLoopSuspendedAction (int loop_index, const std::string &name, rad::Application &appl) |
| BaseLoopCloseActions * | CreateLoopCloseAction (int loop_index, const std::string &name, rad::Application &appl) |
| BaseLoopExecuteActivity * | CreateLoopExecuteActivity (int loop_index, const std::string &name, rad::SMAdapter &sm) |
This class is responsible for the life-cycle management of actions and activities with support for customizable loop actions via factory registration.
Factory types for creating custom loop action implementations
Factory type for creating loop execute activities
| ifw::slm::ActionMgr::ActionMgr | ( | DataContext & | the_data | ) |
Constructor.
| the_data | Data context for the application |
|
virtual |
Destructor.
|
delete |
|
override |
Method to instantiate the action objects. Uses registered factories to create loop actions, or defaults to base implementations.
| appl | RAD application instance |
|
override |
Method to instantiate activity objects.
| appl | RAD application instance |
| BaseLoopCloseActions * ifw::slm::ActionMgr::CreateLoopCloseAction | ( | int | loop_index, |
| const std::string & | name, | ||
| rad::Application & | appl ) |
Helper method to create loop close actions using factories or defaults
| BaseLoopExecuteActivity * ifw::slm::ActionMgr::CreateLoopExecuteActivity | ( | int | loop_index, |
| const std::string & | name, | ||
| rad::SMAdapter & | sm ) |
Helper method to create loop execute activities using factories or defaults
| BaseLoopSuspendedActions * ifw::slm::ActionMgr::CreateLoopSuspendedAction | ( | int | loop_index, |
| const std::string & | name, | ||
| rad::Application & | appl ) |
Helper method to create suspended loop actions using factories or defaults
| void ifw::slm::ActionMgr::RegisterLoopActionFactory | ( | int | loop_index, |
| LoopActionFactory | factory ) |
Register custom factory for loop action (ActionsLoopN) Must be called before CreateActions().
| loop_index | Loop index (1-9) |
| factory | Factory function to create the action |
| void ifw::slm::ActionMgr::RegisterLoopCloseActionFactory | ( | int | loop_index, |
| LoopCloseActionFactory | factory ) |
Register custom factory for loop close action (ActionsLoopNCloseLoop) Must be called before CreateActions().
| loop_index | Loop index (1-9) |
| factory | Factory function to create the action |
| void ifw::slm::ActionMgr::RegisterLoopExecuteActivityFactory | ( | int | loop_index, |
| LoopExecuteActivityFactory | factory ) |
Register custom factory for loop execute activity Must be called before CreateActivities().
| loop_index | Loop index (1-9) |
| factory | Factory function to create the activity |
| void ifw::slm::ActionMgr::RegisterLoopSuspendedActionFactory | ( | int | loop_index, |
| LoopSuspendedActionFactory | factory ) |
Register custom factory for loop suspended action (ActionsLoopNS) Must be called before CreateActions().
| loop_index | Loop index (1-9) |
| factory | Factory function to create the action |