Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:50

0001 #ifndef LMFCORRVERS_H
0002 #define LMFCORRVERS_H
0003 
0004 /*
0005  Last updated by  Giovanni.Organtini@roma1.infn.it 2010
0006  */
0007 
0008 #include <string>
0009 #include <stdexcept>
0010 
0011 #include "OnlineDB/EcalCondDB/interface/LMFPrimVers.h"
0012 #include "OnlineDB/EcalCondDB/interface/EcalDBConnection.h"
0013 
0014 /**
0015  *   LMF Correction version
0016  */
0017 class LMFCorrVers : public LMFPrimVers {
0018 public:
0019   friend class LMFRunIOV;  // needs permission to write
0020 
0021   LMFCorrVers();
0022   LMFCorrVers(EcalDBConnection *c);
0023   LMFCorrVers(oracle::occi::Environment *env, oracle::occi::Connection *conn);
0024   ~LMFCorrVers() override;
0025 
0026   // Operators
0027   inline bool operator==(const LMFCorrVers &t) const { return (getID() == t.getID()); }
0028   inline bool operator!=(const LMFCorrVers &t) const { return (getID() != t.getID()); }
0029 
0030 private:
0031   // Methods from LMFUnique
0032   std::string fetchIdSql(Statement *stmt) override;
0033   std::string fetchAllSql(Statement *stmt) const override;
0034   std::string setByIDSql(Statement *stmt, int id) override;
0035   void getParameters(ResultSet *rset) override;
0036   LMFUnique *createObject() const override;
0037 };
0038 
0039 #endif