Lumiera  0.pre.03
»edit your freedom«
lifecycle.h File Reference

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"

Classes

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

Variables

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

Namespaces

 lumiera
 Lumiera public interface.