CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODBadXTInfo.h
Go to the documentation of this file.
1 #ifndef ODBADXTINFO_H
2 #define ODBADXTINFO_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODBadXTInfo : public IODConfig {
10  public:
11  friend class EcalCondDBInterface;
12  ODBadXTInfo();
13  ~ODBadXTInfo();
14 
15  // User data methods
16  inline std::string getTable() { return "BAD_CRYSTALS_INFO"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  // the tag is already in IODConfig
22 
23  inline void setVersion(int id) { m_version = id; }
24  inline int getVersion() const { return m_version; }
25  int fetchID() throw(std::runtime_error);
26 
27  int fetchNextId() throw(std::runtime_error);
28  void setParameters(const std::map<std::string,std::string>& my_keys_map);
29 
30  private:
31  void prepareWrite() throw(std::runtime_error);
32 
33  void writeDB() throw(std::runtime_error);
34 
35  void clear();
36 
37  void fetchData(ODBadXTInfo * result) throw(std::runtime_error);
38 
39 
40 
41  // User data
42  int m_ID;
43  int m_version;
44 
45 };
46 
47 #endif
void setId(int id)
Definition: ODBadXTInfo.h:18
void fetchData(ODBadXTInfo *result)
Definition: ODBadXTInfo.cc:130
tuple result
Definition: mps_fire.py:95
int fetchNextId()
Definition: ODBadXTInfo.cc:36
int getVersion() const
Definition: ODBadXTInfo.h:24
void writeDB()
Definition: ODBadXTInfo.cc:97
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODBadXTInfo.cc:82
int getId() const
Definition: ODBadXTInfo.h:19
std::string getTable()
Definition: ODBadXTInfo.h:16
void prepareWrite()
Definition: ODBadXTInfo.cc:58
string const
Definition: compareJSON.py:14
void setVersion(int id)
Definition: ODBadXTInfo.h:23
void clear()
Definition: ODBadXTInfo.cc:24