1 #ifndef LCConditionsMgr_h
2 #define LCConditionsMgr_h
6 #include "lccd/IConditionsHandler.hh"
17 typedef std::map< std::string, IConditionsHandler* > HandlerMap ;
89 #endif // LCConditionsMgr_h
Manager for IConditionsHandler objects.
Definition: LCConditionsMgr.hh:31
void registerHandler(const std::string &name, IConditionsHandler *handler)
Register a handler with the given type name.
Definition: LCConditionsMgr.cc:74
void registerChangeListener(IConditionsChangeListener *cl, const std::string &name)
Register a change listener with the conditions handler 'name'.
Definition: LCConditionsMgr.cc:21
void removeHandler(const std::string &name)
Remove the handler with the given name.
Definition: LCConditionsMgr.cc:33
Simple interface that allows notification of implementation classes if a conditions data set has chan...
Definition: IConditionsChangeListener.hh:22
IConditionsHandler * getHandler(const std::string &name)
Returns the handler for the given name - Null if not registered.
Definition: LCConditionsMgr.cc:62
void updateEvent(lcio::LCEvent *evt)
Call IConditionsHandler::updateEvent() for all registered handlers.
Definition: LCConditionsMgr.cc:43
Abstract handler for conditions data.
Definition: IConditionsHandler.hh:26
void update(LCCDTimeStamp timestamp)
Call IConditionsHandler::update() for all registered handlers.
Definition: LCConditionsMgr.cc:52
static LCConditionsMgr * instance()
The instance of this manager class.
Definition: LCConditionsMgr.cc:11
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24
void clear()
Clear the map and delete all handlers.
Definition: LCConditionsMgr.cc:88