Lumiera  0.pre.03
»edit your freedom«
lifecycleregistry.hpp File Reference

Go to the source code of this file.

Description

Helper for registering lifecycle event callbacks, which are provided as a global service by lumiera::AppState.

This service allows to enrol functions under a given label and then to call all those registered functions.

Note
this is in fact an event mechanism, and if we start using more than just this basic functionality, we should switch to boost::signals. (which has the downside of being an binary dependency).
See also
appstate.hpp

Definition in file lifecycleregistry.hpp.

#include "lib/util.hpp"
#include "lib/nocopy.hpp"
#include <functional>
#include <string>
#include <set>
#include <map>

Classes

class  LifecycleRegistry
 Registry of callback functions accessible by a label (ID) provided at registration. More...
 

Namespaces

 lumiera
 Lumiera public interface.