sgns::application::AppStateManagerImpl¶
#include <app_state_manager_impl.hpp>
Inherits from sgns::application::AppStateManager, std::enable_shared_from_this< AppStateManager >, IComponent
Public Functions¶
| Name | |
|---|---|
| AppStateManagerImpl() | |
| AppStateManagerImpl(const AppStateManagerImpl & ) =delete | |
| AppStateManagerImpl(AppStateManagerImpl && ) =delete | |
| ~AppStateManagerImpl() override | |
| AppStateManagerImpl & | operator=(AppStateManagerImpl const & ) =delete |
| AppStateManagerImpl & | operator=(AppStateManagerImpl && ) =delete |
| virtual void | atPrepare(OnPrepare && cb) override Execute a callback at the prepare stage. |
| virtual void | atLaunch(OnLaunch && cb) override Execute a callback immediately before application start. |
| virtual void | atShutdown(OnShutdown && cb) override Execute a callback during shutdown. |
| virtual void | run() override Start application life cycle. |
| virtual void | shutdown() override Initiate shutting down (at any time). |
| virtual State | state() const override Get current stage. |
| virtual std::string | GetName() override |
Protected Functions¶
| Name | |
|---|---|
| void | reset() |
| virtual void | doPrepare() override |
| virtual void | doLaunch() override |
| virtual void | doShutdown() override |
Additional inherited members¶
Public Types inherited from sgns::application::AppStateManager
| Name | |
|---|---|
| enum class | State |
| using std::function< bool()> | OnPrepare |
| using std::function< bool()> | OnLaunch |
| using std::function< void()> | OnShutdown |
Public Functions inherited from sgns::application::AppStateManager
| Name | |
|---|---|
| ~AppStateManager() override =default | |
| void | registerHandlers(OnPrepare && prepare_cb, OnLaunch && launch_cb, OnShutdown && shutdown_cb) Registration of all stages' handlers at the same time. |
| template <typename Controlled > void |
takeControl(Controlled & entity) Registration special methods of object as handlers for stages of application life-cycle. |
Public Functions inherited from IComponent
| Name | |
|---|---|
| virtual | ~IComponent() =default |
Public Functions Documentation¶
function AppStateManagerImpl¶
function AppStateManagerImpl¶
function AppStateManagerImpl¶
function ~AppStateManagerImpl¶
function operator=¶
function operator=¶
function atPrepare¶
Execute a callback at the prepare stage.
Parameters:
- cb Callback to execute.
Reimplements: sgns::application::AppStateManager::atPrepare
function atLaunch¶
Execute a callback immediately before application start.
Parameters:
- cb Callback to execute.
Reimplements: sgns::application::AppStateManager::atLaunch
function atShutdown¶
Execute a callback during shutdown.
Parameters:
- cb Callback to execute.
Reimplements: sgns::application::AppStateManager::atShutdown
function run¶
Start application life cycle.
Reimplements: sgns::application::AppStateManager::run
function shutdown¶
Initiate shutting down (at any time).
Reimplements: sgns::application::AppStateManager::shutdown
function state¶
Get current stage.
Reimplements: sgns::application::AppStateManager::state
function GetName¶
Reimplements: IComponent::GetName
Protected Functions Documentation¶
function reset¶
function doPrepare¶
Reimplements: sgns::application::AppStateManager::doPrepare
function doLaunch¶
Reimplements: sgns::application::AppStateManager::doLaunch
function doShutdown¶
Reimplements: sgns::application::AppStateManager::doShutdown
Updated on 2026-03-04 at 13:10:43 -0800