CMS 3D CMS Logo

LMFIOV.h
Go to the documentation of this file.
1 #ifndef LMFIOV_H
2 #define LMFIOV_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
8 #include <string>
9 #include <stdexcept>
10 
13 
17 class LMFIOV : public LMFUnique {
18 public:
19  friend class EcalCondDBInterface; // need permission to write
20 
21  LMFIOV();
23  LMFIOV(const oracle::occi::Environment *env, const oracle::occi::Connection *conn);
24  ~LMFIOV() override;
25 
26  LMFIOV &setStart(const Tm &start);
27  LMFIOV &setStop(const Tm &stop);
28  LMFIOV &setIOV(const Tm &start, const Tm &stop);
29  LMFIOV &setVmin(int vmin);
30  LMFIOV &setVmax(int vmax);
31  LMFIOV &setVersions(int vmin, int vmax);
32 
33  Tm getStart() const;
34  Tm getStop() const;
35  int getVmin() const;
36  int getVmax() const;
37 
38  void dump() const override;
39 
40 private:
41  // Methods from LMFUnique
44  // std::string fetchAllSql(Statement *stmt) const;
45  std::string setByIDSql(Statement *stmt, int id) override;
46 
47  void getParameters(ResultSet *rset) override;
48  void fetchParentIDs() override {}
49  LMFUnique *createObject() const override;
50 
53  int m_vmin;
54  int m_vmax;
55 };
56 
57 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
start
Definition: start.py:1
LMFIOV::getStart
Tm getStart() const
Definition: LMFIOV.cc:63
LMFIOV::createObject
LMFUnique * createObject() const override
Definition: LMFIOV.cc:105
LMFIOV::getStop
Tm getStop() const
Definition: LMFIOV.cc:65
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
LMFIOV::fetchParentIDs
void fetchParentIDs() override
Definition: LMFIOV.h:48
LMFIOV::setVersions
LMFIOV & setVersions(int vmin, int vmax)
Definition: LMFIOV.cc:58
EcalDBConnection::stmt
oracle::occi::Statement * stmt
Definition: EcalDBConnection.h:73
LMFIOV::setVmax
LMFIOV & setVmax(int vmax)
Definition: LMFIOV.cc:53
LMFIOV::setVmin
LMFIOV & setVmin(int vmin)
Definition: LMFIOV.cc:48
LMFIOV
Definition: LMFIOV.h:17
LMFIOV::writeDBSql
std::string writeDBSql(Statement *stmt) override
Definition: LMFIOV.cc:120
LMFUnique.h
LMFIOV::~LMFIOV
~LMFIOV() override
Definition: LMFIOV.cc:31
LMFIOV::getParameters
void getParameters(ResultSet *rset) override
Definition: LMFIOV.cc:95
Tm
Definition: Tm.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFIOV::LMFIOV
LMFIOV()
Definition: LMFIOV.cc:6
EcalDBConnection.h
LMFIOV::setIOV
LMFIOV & setIOV(const Tm &start, const Tm &stop)
Definition: LMFIOV.cc:43
LMFIOV::m_vmax
int m_vmax
Definition: LMFIOV.h:54
LMFIOV::setStart
LMFIOV & setStart(const Tm &start)
Definition: LMFIOV.cc:33
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
LMFIOV::getVmin
int getVmin() const
Definition: LMFIOV.cc:67
LMFIOV::m_vmin
int m_vmin
Definition: LMFIOV.h:53
LMFIOV::setStop
LMFIOV & setStop(const Tm &stop)
Definition: LMFIOV.cc:38
LMFUnique::Statement
oracle::occi::Statement Statement
Definition: LMFUnique.h:20
LMFIOV::m_iov_stop
Tm m_iov_stop
Definition: LMFIOV.h:52
LMFIOV::m_iov_start
Tm m_iov_start
Definition: LMFIOV.h:51
LMFUnique
Definition: LMFUnique.h:17
LMFIOV::dump
void dump() const override
Definition: LMFIOV.cc:111
LMFIOV::fetchIdSql
std::string fetchIdSql(Statement *stmt) override
Definition: LMFIOV.cc:71
LMFIOV::setByIDSql
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFIOV.cc:85
LMFIOV::getVmax
int getVmax() const
Definition: LMFIOV.cc:69
EcalDBConnection
Definition: EcalDBConnection.h:15
LMFUnique::ResultSet
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:19