CMS 3D CMS Logo

FEConfigWeightInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGWEIGHT_H
2 #define FECONFIGWEIGHT_H
3 
4 #include <map>
5 #include <string>
6 
10 
11 class FEConfigWeightInfo : public IODConfig {
12  public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigWeightInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_WEIGHT_INFO"; }
20 
21 
22  void setNumberOfGroups(int n){m_ngr=n;}
23  int getNumberOfGroups() const{return m_ngr;}
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(const Tm& x) { m_db_time=x; }
37 
38 
39  // Methods from IUniqueDBObject
40  int fetchID() noexcept(false);
41  int fetchNextId() noexcept(false);
42  void setByID(int id) noexcept(false);
43  void setParameters(const std::map<std::string,std::string>& my_keys_map);
44 
45  // operators
46  inline bool operator==(const FEConfigWeightInfo &r) const { return (m_ID == r.m_ID ); }
47  inline bool operator!=(const FEConfigWeightInfo &r) const { return !(*this == r); }
48 
49  private:
50  // User data for this IOV
51  int m_ngr ;
52  int m_ID;
54  int m_version;
55 
56  void prepareWrite() noexcept(false) override;
57  void writeDB() noexcept(false);
58  void clear();
59  void fetchData(FEConfigWeightInfo * result) noexcept(false);
60  void fetchLastData(FEConfigWeightInfo * result) noexcept(false);
61 
62 
63 };
64 
65 
66 #endif
void fetchLastData(FEConfigWeightInfo *result) noexcept(false)
~FEConfigWeightInfo() override
#define noexcept
void fetchData(FEConfigWeightInfo *result) noexcept(false)
void writeDB() noexcept(false)
int getNumberOfGroups() const
int fetchNextId() noexcept(false)
std::string getTable() override
void setDBTime(const Tm &x)
bool operator==(const FEConfigWeightInfo &r) const
bool operator!=(const FEConfigWeightInfo &r) const
void setParameters(const std::map< std::string, std::string > &my_keys_map)
void setNumberOfGroups(int n)
void prepareWrite() noexcept(false) override
void setByID(int id) noexcept(false)
Definition: Tm.h:13
int fetchID() noexcept(false)