Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

lccd::IConditionsHandler Class Reference

Abstract handler for conditions data. More...

#include <IConditionsHandler.hh>

Inheritance diagram for lccd::IConditionsHandler:

lccd::ConditionsHandlerBase lccd::DataFileHandler lccd::DBCondHandler lccd::DBFileHandler lccd::SimpleFileHandler List of all members.

Public Member Functions

virtual void updateEvent (lcio::LCEvent *evt)=0
 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 ()=0
 Returns the current collection of conditions data.

virtual void registerChangeListener (IConditionsChangeListener *cl)=0
 Every IConditionsChangeListener will be notified if the conditions data of this instance has changed.

virtual void removeChangeListener (IConditionsChangeListener *cl)=0
 Remove the specified listener from list of registered listeners ;.

virtual const std::string name ()=0
 The name of this conditions handler - used, e.g.

virtual LCCDTimeStamp validSince ()=0
 First timestamp for which the current conditions data is valid.

virtual LCCDTimeStamp validTill ()=0
 Last timestamp for which the current conditions data is valid.


Detailed Description

Abstract handler for conditions data.

Need one implementation instance for every data set. Check documentation of concrete implemetation for behaviour on update, e.g. a simple file handler might ignore calls to update and allways hold the same data set.

Author:
F.Gaede, DESY
Version:
Id
IConditionsHandler.hh,v 1.2 2005/02/22 18:55:22 gaede Exp


Member Function Documentation

virtual const std::string lccd::IConditionsHandler::name  )  [pure virtual]
 

The name of this conditions handler - used, e.g.

as name of the collection in update( lcio::LCEvent* evt ).

See also:
update( lcio::LCEvent* evt )

Implemented in lccd::ConditionsHandlerBase.

virtual void lccd::IConditionsHandler::update LCCDTimeStamp  timestamp  )  [pure virtual]
 

Retrieves the new conditions data if required by timestamp.

Notifies all registered listeners
See implementation classes for details.

Implemented in lccd::ConditionsHandlerBase, lccd::DataFileHandler, lccd::DBCondHandler, lccd::DBFileHandler, and lccd::SimpleFileHandler.

virtual void lccd::IConditionsHandler::updateEvent lcio::LCEvent *  evt  )  [pure virtual]
 

Retrieves the new conditions data if required by evt->getTimestamp() and adds a collection to event with its name.

Notifies all registered listeners

Implemented in lccd::ConditionsHandlerBase, and lccd::DataFileHandler.


The documentation for this class was generated from the following file:
Generated on Fri Sep 9 12:30:32 2005 for LCCD by doxygen 1.3.5