CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FEConfigSlidingInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGSLIDING_H
2 #define FECONFIGSLIDING_H
3 
4 #include <map>
5 #include <string>
6 
10 
12  public:
13  friend class EcalCondDBInterface;
14 
17 
18  // Methods for user data
19  inline std::string getTable() { return "FE_CONFIG_SLIDING_INFO"; }
20 
21 
22  inline void setIOVId(int iov_id){ m_iov_id = iov_id; }
23  int getIOVId() const{return m_iov_id; }
24 
25  inline void setId(int id) { m_ID = id; }
26  inline int getId() const { return m_ID; }
27  // for compatibility
28  void setID(int id) {setId(id);}
29  int getID() { return getId() ;}
30  // the tag is already in IODConfig
31  inline void setVersion(int id) { m_version = id; }
32  inline int getVersion() const { return m_version; }
33 
34 
35  Tm getDBTime() const{ return m_db_time;}
36  void setDBTime(Tm x) { m_db_time=x; }
37 
38 
39  // Methods from IUniqueDBObject
40  int fetchID() throw(std::runtime_error);
41  int fetchNextId() throw(std::runtime_error);
42  void setByID(int id) throw(std::runtime_error);
43  void setParameters(std::map<std::string,std::string> my_keys_map);
44 
45  // operators
46  inline bool operator==(const FEConfigSlidingInfo &r) const { return (m_ID == r.m_ID ); }
47  inline bool operator!=(const FEConfigSlidingInfo &r) const { return !(*this == r); }
48 
49  private:
50  // User data for this IOV
51  int m_iov_id ;
52  int m_ID;
54  int m_version;
55 
56  void prepareWrite() throw(std::runtime_error);
57  void writeDB() throw(std::runtime_error);
58  void clear();
59  void fetchData(FEConfigSlidingInfo * result) throw(std::runtime_error);
60  void fetchLastData(FEConfigSlidingInfo * result) throw(std::runtime_error);
61 
62 
63 };
64 
65 
66 #endif
bool operator!=(const FEConfigSlidingInfo &r) const
void fetchLastData(FEConfigSlidingInfo *result)
void setIOVId(int iov_id)
tuple result
Definition: query.py:137
void fetchData(FEConfigSlidingInfo *result)
string const
Definition: compareJSON.py:14
Definition: DDAxes.h:10
Definition: Tm.h:14
void setParameters(std::map< std::string, std::string > my_keys_map)