#include <ConditionsHandlerBase.hh>
Inheritance diagram for lccd::ConditionsHandlerBase:
Public Member Functions | |
ConditionsHandlerBase (const std::string &name) | |
Default c'tor - need a name for the conditions data set. | |
virtual void | updateEvent (lcio::LCEvent *evt) |
Retrieves the new conditions data if required by evt->getTimestamp() and adds a collection to event with its name. | |
virtual void | update (LCCDTimeStamp timestamp)=0 |
Retrieves the new conditions data if required by timestamp. | |
virtual lcio::LCCollection * | currentCollection () |
Returns the current collection of conditions data. | |
virtual void | registerChangeListener (IConditionsChangeListener *cl) |
Every IConditionsChangeListener will be notified if the conditions data of this instance has changed. | |
virtual void | removeChangeListener (IConditionsChangeListener *cl) |
Remove the specified listener from list of registered listeners ;. | |
virtual const std::string | name () |
The name of this conditions handler - used, e.g. | |
virtual LCCDTimeStamp | validSince () |
First timestamp for which the current conditions data is valid. | |
virtual LCCDTimeStamp | validTill () |
Last timestamp for which the current conditions data is valid. | |
Protected Member Functions | |
virtual void | notifyListeners () |
Tell all registered listeners that the conditions data has changed. | |
Protected Attributes | |
lcio::LCCollection * | _col |
The current collection of conditions data. | |
std::string | _name |
Name assigned with conditions data. | |
LCCDTimeStamp | _validSince |
First timestamp for which the current data is valid. | |
LCCDTimeStamp | _validTill |
Last timestamp for which the current data is valid. | |
std::vector< IConditionsChangeListener * > | _changeListeners |
The registered change listeners. |
Provides common code, e.g. registration and notfication of IConditionsChangeListeners.
Subclasses need to implement IConditionsHandler::update( LCCDTimeStamp timestamp ).
|
The name of this conditions handler - used, e.g. as name of the collection in update( lcio::LCEvent* evt ).
Implements lccd::IConditionsHandler. |
|
Retrieves the new conditions data if required by timestamp.
Notifies all registered listeners Implements lccd::IConditionsHandler. Implemented in lccd::DataFileHandler, lccd::DBCondHandler, lccd::DBFileHandler, and lccd::SimpleFileHandler. |
|
Retrieves the new conditions data if required by evt->getTimestamp() and adds a collection to event with its name. Notifies all registered listeners Implements lccd::IConditionsHandler. Reimplemented in lccd::DataFileHandler. |