CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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;
17 
18  // User data methods
19  inline std::string getTable() { 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(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(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() throw(std::runtime_error);
45 
46  int fetchNextId() throw(std::runtime_error);
47  void setParameters(std::map<std::string,std::string> my_keys_map);
48 
49  private:
50  void prepareWrite() throw(std::runtime_error);
51 
52  void writeDB() throw(std::runtime_error);
53 
54  void clear();
55 
56  void fetchData(ODCond2ConfInfo * result) throw(std::runtime_error);
57 
58  void fetchParents() throw(std::runtime_error) ;
59 
60 
61  // User data
62  int m_ID;
63  std::string m_type;
65  std::string m_loc;
66  int m_run;
67  std::string m_desc;
69  int m_loc_id;
70  int m_typ_id;
71 
72 
73 };
74 
75 #endif
std::string getType() const
int run_t
Definition: CaliIOV.h:11
std::string m_type
std::string getDescription() const
void setDBDate(Tm x)
std::string getTable()
void fetchData(ODCond2ConfInfo *result)
std::string m_desc
int getId() const
Tm getDBDate() const
void setParameters(std::map< std::string, std::string > my_keys_map)
tuple result
Definition: query.py:137
std::string m_loc
void setId(int id)
int getRunNumber() const
void setRecordDate(Tm x)
void setDescription(std::string x)
#define private
Definition: FWFileEntry.h:18
std::string getLocation() const
void setLocation(std::string x)
x
Definition: VDTMath.h:216
Definition: Tm.h:14
Tm getRecordDate() const
void setRunNumber(int id)
void setType(std::string x)