lumiera::LifecycleRegistry Class Reference
Registry of callback functions accessable by a label (ID) provided at registration.
More...
#include <lifecycleregistry.hpp>
List of all members.
|
Public Types |
|
typedef std::set< Hook > | Callbacks |
|
typedef void(* | Hook )(void) |
|
typedef Callbacks::iterator | Iter |
Public Member Functions |
|
bool | enroll (const string label, Hook toCall) |
|
void | execute (const string label) |
Private Attributes |
|
std::map< const string, Callbacks > | table_ |
Friends |
|
class | Appconfig |
Detailed Description
Registered functions will be added to a list, which can be triggered via label. Used by
Appconfig to implement the
lumiera lifecycle (init, shutdown) hooks.
Definition at line 67 of file lifecycleregistry.hpp.
The documentation for this class was generated from the following file: