CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LMFCorrVers.h
Go to the documentation of this file.
1 #ifndef LMFCORRVERS_H
2 #define LMFCORRVERS_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 LMFCorrVers : public LMFPrimVers {
18  public:
19  friend class LMFRunIOV; // needs permission to write
20 
21  LMFCorrVers();
23  LMFCorrVers(oracle::occi::Environment* env,
24  oracle::occi::Connection* conn);
25  ~LMFCorrVers();
26 
27  // Operators
28  inline bool operator==(const LMFCorrVers &t) const {
29  return (getID() == t.getID());
30  }
31  inline bool operator!=(const LMFCorrVers &t) const {
32  return (getID() != t.getID());
33  }
34 
35  private:
36  // Methods from LMFUnique
37  std::string fetchIdSql(Statement *stmt);
38  std::string fetchAllSql(Statement *stmt) const;
39  std::string setByIDSql(Statement *stmt, int id);
40  void getParameters(ResultSet *rset);
41  LMFUnique *createObject() const;
42 };
43 
44 #endif
int getID() const
Definition: LMFUnique.h:52
LMFUnique * createObject() const
Definition: LMFCorrVers.cc:47
std::string setByIDSql(Statement *stmt, int id)
Definition: LMFCorrVers.cc:33
std::string fetchAllSql(Statement *stmt) const
Definition: LMFCorrVers.cc:53
bool operator!=(const LMFCorrVers &t) const
Definition: LMFCorrVers.h:31
std::string fetchIdSql(Statement *stmt)
Definition: LMFCorrVers.cc:29
void getParameters(ResultSet *rset)
Definition: LMFCorrVers.cc:43
oracle::occi::Statement Statement
Definition: LMFUnique.h:20
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:21
bool operator==(const LMFCorrVers &t) const
Definition: LMFCorrVers.h:28
tuple conn
Definition: results_mgr.py:53