CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
16  ~FEConfigSpikeInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { 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  Tm getDBTime() const { return m_db_time; }
31  void setDBTime(const Tm& x) { m_db_time = x; }
32 
33  // Methods from IUniqueDBObject
34  int fetchID() noexcept(false);
35  int fetchNextId() noexcept(false);
36  void setByID(int id) noexcept(false);
37  void setParameters(const std::map<std::string, std::string>& my_keys_map);
38 
39  // operators
40  inline bool operator==(const FEConfigSpikeInfo& r) const { return (m_ID == r.m_ID); }
41  inline bool operator!=(const FEConfigSpikeInfo& r) const { return !(*this == r); }
42 
43 private:
44  // User data for this IOV
45 
46  int m_ID;
48  int m_version;
49 
50  void prepareWrite() noexcept(false) override;
51  void writeDB() noexcept(false);
52  void clear();
53  void fetchData(FEConfigSpikeInfo* result) noexcept(false);
54  void fetchLastData(FEConfigSpikeInfo* result) noexcept(false);
55 };
56 
57 #endif
int fetchNextId() noexcept(false)
uint16_t *__restrict__ id
void fetchData(FEConfigSpikeInfo *result) noexcept(false)
void setParameters(const std::map< std::string, std::string > &my_keys_map)
tuple result
Definition: mps_fire.py:311
void setVersion(int id)
std::string getTable() override
void prepareWrite() noexcept(false) override
~FEConfigSpikeInfo() override
bool operator!=(const FEConfigSpikeInfo &r) const
int getVersion() const
void fetchLastData(FEConfigSpikeInfo *result) noexcept(false)
void setByID(int id) noexcept(false)
Definition: Tm.h:13
void setDBTime(const Tm &x)
void writeDB() noexcept(false)
int fetchID() noexcept(false)