CMS 3D CMS Logo

ODCond2ConfInfo.h
Go to the documentation of this file.
1 #ifndef ODCOND2CONFINFO_H
2 #define ODCOND2CONFINFO_H
3 
4 #include <map>
5 #include <string>
6 
9 
10 typedef int run_t;
11 
12 class ODCond2ConfInfo : public IODConfig {
13  public:
14  friend class EcalCondDBInterface;
16  ~ODCond2ConfInfo() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "COND_2_CONF_INFO"; }
20 
21  inline void setId(int id) { m_ID = id; }
22  inline int getId() const { return m_ID; }
23 
24  inline void setType(std::string x) { m_type = x; }
25  inline std::string getType() const { return m_type; }
26 
27  inline void setRecordDate(const Tm& x) { m_rec_time = x; }
28  inline Tm getRecordDate() const { return m_rec_time; }
29 
30  inline void setLocation(std::string x) { m_loc = x; }
31  inline std::string getLocation() const { return m_loc; }
32 
33  inline void setRunNumber(int id) { m_run = id; }
34  inline int getRunNumber() const { return m_run; }
35 
36  inline void setDescription(std::string x) { m_desc = x; }
37  inline std::string getDescription() const { return m_desc ; }
38 
39  inline void setDBDate(const Tm& x) { m_db_time = x; }
40  inline Tm getDBDate() const { return m_db_time; }
41 
42  // the tag is already in IODConfig
43 
44  int fetchID() noexcept(false);
45 
46  int fetchNextId() noexcept(false);
47  void setParameters(const std::map<std::string,std::string>& my_keys_map);
48 
49  private:
50  void prepareWrite() noexcept(false) override;
51 
52  void writeDB() noexcept(false);
53 
54  void clear();
55 
57 
58  void fetchParents() noexcept(false) ;
59 
60 
61  // User data
62  int m_ID;
66  int m_run;
69  int m_loc_id;
70  int m_typ_id;
71 
72 
73 };
74 
75 #endif
void setParameters(const std::map< std::string, std::string > &my_keys_map)
std::string getType() const
int fetchNextId() noexcept(false)
void writeDB() noexcept(false)
int run_t
void setRecordDate(const Tm &x)
std::string m_type
std::string getDescription() const
void setDBDate(const Tm &x)
#define noexcept
void prepareWrite() noexcept(false) override
std::string getTable() override
void fetchParents() noexcept(false)
std::string m_desc
int getId() const
Tm getDBDate() const
std::string m_loc
~ODCond2ConfInfo() override
void setId(int id)
int getRunNumber() const
void setDescription(std::string x)
std::string getLocation() const
void setLocation(std::string x)
Definition: Tm.h:13
int fetchID() noexcept(false)
Tm getRecordDate() const
void setRunNumber(int id)
void setType(std::string x)
void fetchData(ODCond2ConfInfo *result) noexcept(false)