CMS 3D CMS Logo

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