Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lifecycle.h File Reference

Installing and invoking of application lifecycle event callbacks. More...

Go to the source code of this file.

Description

Installing and invoking of application lifecycle event callbacks.

This service is a facade for and implemented by the lumiera::LifecycleRegistry. By placing a static LifecycleHook variable or by calling LifecycleHook::add, a callback can be registered to be executed on a specific application lifecycle event. Examples being #ON_BASIC_INIT, #ON_GLOBAL_INIT. Other subsystems may register additional events for more specific purpose.

Note
the implementation resides in lib/lifecycle.cpp and gets linked into liblumiera.so
See also
lumiera::AppState
main.cpp

Definition in file lifecycle.h.

#include "lib/symbol.hpp"
#include "lib/nocopy.hpp"

Namespaces

namespace  lumiera
 Lumiera public interface.
 

Classes

class  LifecycleHook
 define and register a callback for a specific lifecycle event. More...
 

Variables

CStr ON_BASIC_INIT
 automatic static init. treated specially to run as soon as possible
 
CStr ON_GLOBAL_INIT
 to be triggered in main()
 
CStr ON_GLOBAL_SHUTDOWN
 to be triggered at the end of main()
 
CStr ON_EMERGENCY
 activated on shutdown after premature failure of a subsystem