LCCD  1.5.0
lccd.h
1 #ifndef lccd_h
2 #define lccd_h 1
3 
4 //#include "lccd/LCCDConfig.h"
5 #include "lccd_exceptions.h"
6 #include "lcio.h"
7 
8 #include <bitset>
9 #include <string>
10 
11 
12 class SimpleTime ;
13 
14 
15 // Provides common definitions and typedefs for LCCD.
18 namespace lccd{
19 
20 
21 
24  typedef lcio::long64 LCCDTimeStamp ;
25 
28  extern LCCDTimeStamp LCCDMinusInf ;
29 
32  extern LCCDTimeStamp LCCDPlusInf ;
33 
37 
38 
39 
41  extern std::string DBSINCE ;
42 
44  extern std::string DBTILL ;
45 
47  extern std::string DBQUERYTIME ;
48 
50  extern std::string DBINSERTIONTIME ;
51 
53  extern std::string DBTAG ;
54 
56  extern std::string DBFOLDER ;
57 
59  extern std::string DBNAME ;
60 
62  extern std::string DBLAYER ;
63 
65  extern std::string DBTIMESTAMP ;
66 
67 
73  std::string getDBInitString() ;
74 
75 
79  LCCDTimeStamp fromSimpleTime( const SimpleTime& st ) ;
80 
81 }
82 
83 #endif
void ensure_LCCDTimeStamp_is_64bit()
If this doesn&#39;t compile than LCCDTimeStamp doesn&#39;t have 64bit.
Definition: lccd.cc:69
LCCDTimeStamp LCCDPlusInf
The largest possible time stamp.
Definition: lccd.cc:18
std::string getDBInitString()
Returns a database initialization string of the form &quot;DB_HOST:DB_NAME:DB_USER:PASSWD&quot; from the enviro...
Definition: lccd.cc:34
std::string DBINSERTIONTIME
String constant: DBInsertionTime.
Definition: lccd.cc:25
std::string DBLAYER
String constant: DBLayer.
Definition: lccd.cc:28
std::string DBTILL
String constant: DBTill.
Definition: lccd.cc:23
std::string DBFOLDER
String constant: DBFolder.
Definition: lccd.cc:21
std::string DBTIMESTAMP
String constant: DBTimeStamp.
Definition: lccd.cc:29
std::string DBQUERYTIME
String constant: DBQueryTime.
Definition: lccd.cc:24
LCCDTimeStamp LCCDMinusInf
The smallest possible time stamp.
Definition: lccd.cc:16
lcio::long64 LCCDTimeStamp
The timestamp in LCCD is a 64bit int as defined in LCIO.
Definition: lccd.h:24
std::string DBNAME
String constant: DBName.
Definition: lccd.cc:27
std::string DBSINCE
String constant: DBSince.
Definition: lccd.cc:22
LCCDTimeStamp fromSimpleTime(const SimpleTime &st)
Converts the 64bit time stamp in SimpleTime objects (based on 1.1.1900) to the LCIO definition of tim...
Definition: lccd.cc:51
std::string DBTAG
String constant: DBTag.
Definition: lccd.cc:26