LCCD  1.5.0
Public Member Functions | Static Public Member Functions | List of all members
lccd::LCConditionsMgr Class Reference

Manager for IConditionsHandler objects. More...

#include <LCConditionsMgr.hh>

Public Member Functions

void registerChangeListener (IConditionsChangeListener *cl, const std::string &name)
 Register a change listener with the conditions handler 'name'. More...
 
void registerHandler (const std::string &name, IConditionsHandler *handler)
 Register a handler with the given type name.
 
void removeHandler (const std::string &name)
 Remove the handler with the given name.
 
IConditionsHandlergetHandler (const std::string &name)
 Returns the handler for the given name - Null if not registered.
 
void updateEvent (lcio::LCEvent *evt)
 Call IConditionsHandler::updateEvent() for all registered handlers.
 
void update (LCCDTimeStamp timestamp)
 Call IConditionsHandler::update() for all registered handlers.
 
void clear ()
 Clear the map and delete all handlers.
 

Static Public Member Functions

static LCConditionsMgrinstance ()
 The instance of this manager class.
 

Detailed Description

Manager for IConditionsHandler objects.


Can be used to keep all conditions handler objects in an aplication in one place and treat them through a common interface, e.g. call IConditionsHandler::updateEvent().

Singleton.

Author
F.Gaede, DESY
Version
Id:
LCConditionsMgr.hh,v 1.2 2007-04-27 13:21:31 gaede Exp

Member Function Documentation

void lccd::LCConditionsMgr::registerChangeListener ( IConditionsChangeListener cl,
const std::string &  name 
)

Register a change listener with the conditions handler 'name'.

Throws an exception if no handler with the given name has been registered before.


The documentation for this class was generated from the following files: