lumiera::LifecycleRegistry Class Reference

Registry of callback functions accessable by a label (ID) provided at registration. More...

#include <lifecycleregistry.hpp>

Inheritance diagram for lumiera::LifecycleRegistry:

Inheritance graph
[legend]
Collaboration diagram for lumiera::LifecycleRegistry:

Collaboration graph
[legend]

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:

Generated on Sat Aug 16 18:10:42 2008 for Lumiera by  doxygen 1.5.5