LCCD  1.5.0
Classes | Typedefs | Functions | Variables
lccd Namespace Reference

The only namespace in the project. More...

Classes

class  ConditionsHandlerBase
 Base implementation of IConditionsHandler. More...
 
class  ConditionsMap
 Template class for maps of conditions data. More...
 
class  DataFileHandler
 Implementation of ConditionsHandlerBase that handles conditions data that is stored in a data LCIO file. More...
 
class  DBCondHandler
 Implementation of ConditionsHandlerBase that reads the conditions data from the database. More...
 
class  DBConnectionMgr
 Singleton that manages data base connection on the basis of access strings. More...
 
class  DBFileHandler
 Implementation of ConditionsHandlerBase that reads the conditions data from a special LCIO file. More...
 
class  DBInterface
 Provides a simple interface to the conditions data base for lccd. More...
 
class  IConditionsChangeListener
 Simple interface that allows notification of implementation classes if a conditions data set has changed, or the implementation classes are registered with a class inheriting from ConditionsHandlerBase. More...
 
class  IConditionsHandler
 Abstract handler for conditions data. More...
 
class  LCConditionsMgr
 Manager for IConditionsHandler objects. More...
 
class  LCGenericObjectStreamer
 Base class for LCCollection streamer classes. More...
 
class  SimpleFileHandler
 Implementation of ConditionsHandlerBase that reads the conditions data from an LCIO file. More...
 
class  StreamerMgr
 Manager for streamer classes of LCCollections. More...
 
class  VCollectionStreamer
 Base class for LCCollection streamer classes. More...
 
class  Xdr
 Utility functions for DB streamer objects. More...
 
class  LCCDException
 Exception used for general LCCD errors. More...
 
class  DatabaseException
 DatabaseException used for errors accessing the database data. More...
 
class  DataNotAvailableException
 Exception used for data not available. More...
 
class  ReadOnlyException
 Exception used for signaling a 'read only exception'. More...
 
class  InconsistencyException
 Exception used for (possible) inconsistency warnings. More...
 
class  MemberNotImplementedException
 Exception used for not implemented member functions. More...
 
class  contains_timestamp
 Helper predicate to find validity ranges. More...
 
struct  less_wrt_validity
 Helper class to sort collections of conditions data w.r.t. More...
 

Typedefs

typedef std::pair
< LCCDTimeStamp, LCCDTimeStamp
ValidityInterval
 
typedef std::vector
< ValidityInterval > 
ValidityVector
 
typedef std::vector
< lcio::LCCollection * > 
ColVec
 Convenience typedef for vector of LCCollection pointers.
 
typedef std::map< std::string,
IConditionsHandler * > 
HandlerMap
 
typedef std::map< std::string,
VCollectionStreamer * > 
StreamerMap
 
typedef lcio::long64 LCCDTimeStamp
 The timestamp in LCCD is a 64bit int as defined in LCIO.
 

Functions

void ensure_LCCDTimeStamp_is_64bit ()
 If this doesn't compile than LCCDTimeStamp doesn't have 64bit.
 
std::string getDBInitString ()
 Returns a database initialization string of the form "DB_HOST:DB_NAME:DB_USER:PASSWD" from the environment variable $LCCD_DB_INIT. More...
 
LCCDTimeStamp fromSimpleTime (const SimpleTime &st)
 Converts the 64bit time stamp in SimpleTime objects (based on 1.1.1900) to the LCIO definition of time stamps: ns since 1.1.1970 UTC.
 

Variables

LCCDTimeStamp LCCDMinusInf = -9223372036854775807LL - 1
 The smallest possible time stamp.
 
LCCDTimeStamp LCCDPlusInf = 9223372036854775807LL
 The largest possible time stamp.
 
std::string DBSINCE = "DBSince"
 String constant: DBSince.
 
std::string DBTILL = "DBTill"
 String constant: DBTill.
 
std::string DBQUERYTIME = "DBQueryTime"
 String constant: DBQueryTime.
 
std::string DBINSERTIONTIME = "DBInsertionTime"
 String constant: DBInsertionTime.
 
std::string DBTAG = "DBTag"
 String constant: DBTag.
 
std::string DBFOLDER = "DBFolder"
 String constant: DBFolder.
 
std::string DBNAME = "DBName"
 String constant: DBName.
 
std::string DBLAYER = "DBLayer"
 String constant: DBLayer.
 
std::string DBTIMESTAMP = "DBTimeStamp"
 String constant: DBTimeStamp.
 

Detailed Description

The only namespace in the project.

Provides global constants.


Function Documentation

std::string lccd::getDBInitString ( )

Returns a database initialization string of the form "DB_HOST:DB_NAME:DB_USER:PASSWD" from the environment variable $LCCD_DB_INIT.

The default value is determined at compile time from the same variable. If it isn't set at compile time "localhost:lccd_test:calvin:hobbes" is used as default-default.