CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
56  void fetchData(ODCond2ConfInfo* result) noexcept(false);
57 
58  void fetchParents() noexcept(false);
59 
60  // User data
61  int m_ID;
62  std::string m_type;
64  std::string m_loc;
65  int m_run;
66  std::string m_desc;
68  int m_loc_id;
69  int m_typ_id;
70 };
71 
72 #endif
void setParameters(const std::map< std::string, std::string > &my_keys_map)
std::string getType() const
int fetchNextId() noexcept(false)
int run_t
Definition: CaliIOV.h:11
void writeDB() noexcept(false)
void setRecordDate(const Tm &x)
std::string m_type
std::string getDescription() const
uint16_t *__restrict__ id
void setDBDate(const Tm &x)
void prepareWrite() noexcept(false) override
std::string getTable() override
void fetchParents() noexcept(false)
std::string m_desc
tuple result
Definition: mps_fire.py:311
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)