CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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, oracle::occi::Connection *conn);
24  ~LMFSeqVers() override;
25 
26  // Operators
27  inline bool operator==(const LMFSeqVers &t) const { return (getDescription() == t.getDescription()); }
28  inline bool operator!=(const LMFSeqVers &t) const { return (getDescription() != t.getDescription()); }
29 
30 private:
31  // Methods from LMFUnique
32  std::string fetchIdSql(Statement *stmt) override;
33  std::string fetchAllSql(Statement *stmt) const override;
34  std::string setByIDSql(Statement *stmt, int id) override;
35  void getParameters(ResultSet *rset) override;
36  LMFUnique *createObject() const override;
37 };
38 
39 #endif
bool operator!=(const LMFSeqVers &t) const
Definition: LMFSeqVers.h:28
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFSeqVers.cc:25
const edm::EventSetup & c
std::string getDescription() const
Definition: LMFPrimVers.h:33
std::string fetchAllSql(Statement *stmt) const override
Definition: LMFSeqVers.cc:42
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:23
std::string fetchIdSql(Statement *stmt) override
Definition: LMFSeqVers.cc:23
oracle::occi::Statement Statement
Definition: LMFUnique.h:24
void getParameters(ResultSet *rset) override
Definition: LMFSeqVers.cc:34
bool operator==(const LMFSeqVers &t) const
Definition: LMFSeqVers.h:27
~LMFSeqVers() override
Definition: LMFSeqVers.cc:21
LMFUnique * createObject() const override
Definition: LMFSeqVers.cc:36
tuple conn
Definition: getInfo.py:9