CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/OnlineDB/EcalCondDB/interface/MonVersionDef.h

Go to the documentation of this file.
00001 #ifndef MONVERSIONDEF_H
00002 #define MONVERSIONDEF_H
00003 
00004 #include <string>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDef.h"
00008 
00012 class MonVersionDef : public IDef {
00013   public:
00014   friend class EcalCondDBInterface;
00015   
00016   MonVersionDef();
00017   virtual ~MonVersionDef();
00018 
00019   // Methods for user data
00020   std::string getMonitoringVersion() const;
00021   void setMonitoringVersion(std::string ver);
00022 
00023   std::string getDescription() const;
00024 
00025   // Methods from IUniqueDBObject
00026   int fetchID() throw(std::runtime_error);
00027   void setByID(int id) throw(std::runtime_error);
00028 
00029   // Operators
00030   inline bool operator==(const MonVersionDef &d) const { return m_monVer == d.m_monVer; }
00031   inline bool operator!=(const MonVersionDef &d) const { return m_monVer != d.m_monVer; }
00032 
00033  protected:
00034   // User data for this def
00035   std::string m_monVer;
00036   std::string m_desc;
00037 
00038   void fetchAllDefs( std::vector<MonVersionDef>* fillVec) throw(std::runtime_error);
00039 };
00040 
00041 #endif