CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/OnlineDB/EcalCondDB/interface/MonRunOutcomeDef.h

Go to the documentation of this file.
00001 #ifndef MONRUNOUTCOMEDEF_H
00002 #define MONRUNOUTCOMEDEF_H
00003 
00004 #include <string>
00005 #include <stdexcept>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IDef.h"
00008 
00012 class MonRunOutcomeDef : public IDef {
00013   public:
00014   friend class EcalCondDBInterface;
00015   
00016   MonRunOutcomeDef();
00017   virtual ~MonRunOutcomeDef();
00018 
00019   // Methods for user data
00020   std::string getShortDesc() const;
00021   void setShortDesc(std::string desc);
00022 
00023   std::string getLongDesc() 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 MonRunOutcomeDef &d) const { return m_shortDesc == d.m_shortDesc; }
00031   inline bool operator!=(const MonRunOutcomeDef &d) const { return m_shortDesc != d.m_shortDesc; }
00032 
00033  protected:
00034   // User data for this def
00035   std::string m_shortDesc;
00036   std::string m_longDesc;
00037 
00038   void fetchAllDefs( std::vector<MonRunOutcomeDef>* fillVec) throw(std::runtime_error);
00039 };
00040 
00041 #endif