#include <app_state_manager.hpp>
Definition at line 13 of file app_state_manager.hpp.
Enumerator |
---|
Init |
|
Prepare |
|
ReadyToStart |
|
Starting |
|
Works |
|
ShuttingDown |
|
ReadyToStop |
|
Definition at line 19 of file app_state_manager.hpp.
virtual kagome::application::AppStateManager::~AppStateManager |
( |
| ) |
|
|
virtualdefault |
virtual void kagome::application::AppStateManager::atLaunch |
( |
OnLaunch && |
cb | ) |
|
|
pure virtual |
virtual void kagome::application::AppStateManager::atPrepare |
( |
OnPrepare && |
cb | ) |
|
|
pure virtual |
virtual void kagome::application::AppStateManager::atShutdown |
( |
OnShutdown && |
cb | ) |
|
|
pure virtual |
virtual void kagome::application::AppStateManager::doLaunch |
( |
| ) |
|
|
protectedpure virtual |
virtual void kagome::application::AppStateManager::doPrepare |
( |
| ) |
|
|
protectedpure virtual |
virtual void kagome::application::AppStateManager::doShutdown |
( |
| ) |
|
|
protectedpure virtual |
void kagome::application::AppStateManager::registerHandlers |
( |
OnPrepare && |
prepare_cb, |
|
|
OnLaunch && |
launch_cb, |
|
|
OnShutdown && |
shutdown_cb |
|
) |
| |
|
inline |
Registration of all stages' handlers at the same time.
- Parameters
-
prepare_cb | - handler for stage of prepare |
launch_cb | - handler for doing immediately before start application |
shutdown_cb | - handler for stage of shutting down application |
Definition at line 55 of file app_state_manager.hpp.
virtual void kagome::application::AppStateManager::run |
( |
| ) |
|
|
pure virtual |
virtual void kagome::application::AppStateManager::shutdown |
( |
| ) |
|
|
pure virtual |
virtual State kagome::application::AppStateManager::state |
( |
| ) |
const |
|
pure virtual |
template<typename Controlled >
void kagome::application::AppStateManager::takeControl |
( |
Controlled & |
entity | ) |
|
|
inline |
Registration special methods of object as handlers for stages of application life-cycle.
- Parameters
-
entity | is registered entity |
Definition at line 69 of file app_state_manager.hpp.
The documentation for this class was generated from the following file: