CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunTypeDef.h
Go to the documentation of this file.
1 #ifndef RUNTYPEDEF_H
2 #define RUNTYPEDEF_H
3 
4 #include <string>
5 #include <stdexcept>
6 
8 
12 class RunTypeDef : public IDef {
13  public:
14  friend class EcalCondDBInterface;
15 
16  RunTypeDef();
17  virtual ~RunTypeDef();
18 
19  // Methods for user data
20  std::string getRunType() const;
21  void setRunType(std::string runtype);
22 
24 
25  // Methods from IUniqueDBObject
26  int fetchID() throw(std::runtime_error);
27  void setByID(int id) throw(std::runtime_error);
28 
29  // Operators. m_desc is not considered, it cannot be written to DB anyhow
30  inline bool operator==(const RunTypeDef &t) const { return m_runType == t.m_runType; }
31  inline bool operator!=(const RunTypeDef &t) const { return m_runType != t.m_runType; }
32 
33  protected:
34  // User data for this def
37 
38  void fetchAllDefs( std::vector<RunTypeDef>* fillVec) throw(std::runtime_error);
39 };
40 
41 #endif
std::string m_runType
Definition: RunTypeDef.h:35
std::string getDescription() const
Definition: RunTypeDef.cc:43
int fetchID()
Definition: RunTypeDef.cc:50
std::string getRunType() const
Definition: RunTypeDef.cc:26
bool operator!=(const RunTypeDef &t) const
Definition: RunTypeDef.h:31
virtual ~RunTypeDef()
Definition: RunTypeDef.cc:20
std::string m_desc
Definition: RunTypeDef.h:36
void fetchAllDefs(std::vector< RunTypeDef > *fillVec)
Definition: RunTypeDef.cc:111
Definition: IDef.h:11
void setRunType(std::string runtype)
Definition: RunTypeDef.cc:33
string const
Definition: compareJSON.py:14
void setByID(int id)
Definition: RunTypeDef.cc:84