CMS 3D CMS Logo

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