LCCD
1.5.0
|
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. | |
IConditionsHandler * | getHandler (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 LCConditionsMgr * | instance () |
The instance of this manager class. | |
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.
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.