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

lccd::DBCondHandler Class Reference

Implementation of ConditionsHandlerBase that reads the conditions data from the database. More...

#include <DBCondHandler.hh>

Inheritance diagram for lccd::DBCondHandler:

lccd::ConditionsHandlerBase lccd::IConditionsHandler List of all members.

Public Member Functions

 DBCondHandler (const std::string &dbInit, const std::string &folder, const std::string &name, const std::string &tag="")
 Default constructor.

virtual void update (LCCDTimeStamp timeStamp)
 Retrieves the conditions data from the data base if time stamp exceeds current validity time range.
Notifies all registered listeners if conditions have changed.


Protected Attributes

lccd::DBInterface_db
std::string _dbInit
std::string _folder
std::string _tag

Detailed Description

Implementation of ConditionsHandlerBase that reads the conditions data from the database.

On every call to update() it checks whether the provided time stamp exceeds the validity of the current conditions data. If so, new constants are retrieved from the data base.

Author:
F.Gaede, DESY
Version:
Id
DBCondHandler.hh,v 1.1.1.1 2005/02/10 12:17:54 gaede Exp


Constructor & Destructor Documentation

lccd::DBCondHandler::DBCondHandler const std::string &  dbInit,
const std::string &  folder,
const std::string &  name,
const std::string &  tag = ""
 

Default constructor.

You have to specify the following parameters:

Parameters:
dbInit: initialization string for the database, e.g. "localhost:lccd_test:calvin:hobbes"
folder: name of the database folder
name: of this conditions data set - used, e.g. as collection name in update(LCEvent* evt)
tag: tag to be used for queries, HEAD if omitted


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