CMS 3D CMS Logo

FEConfigCokeInfo.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGCOKEINFO_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGCOKEINFO_H
3 
4 #include <map>
5 #include <string>
6 
10 
11 class FEConfigCokeInfo : public IODConfig {
12 public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigCokeInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_COKE_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 FEConfigCokeInfo& r) const { return (m_ID == r.m_ID); }
41  inline bool operator!=(const FEConfigCokeInfo& r) const { return !(*this == r); }
42 
43 private:
44  // User data for this IOV
45  int m_ID;
47  int m_version;
48 
49  void prepareWrite() noexcept(false) override;
50  void writeDB() noexcept(false);
51  void clear();
52  void fetchData(FEConfigCokeInfo* result) noexcept(false);
53  void fetchLastData(FEConfigCokeInfo* result) noexcept(false);
54 };
55 
56 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:29
FEConfigCokeInfo::setVersion
void setVersion(int id)
Definition: FEConfigCokeInfo.h:27
FEConfigCokeInfo::m_ID
int m_ID
Definition: FEConfigCokeInfo.h:45
FEConfigCokeInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: FEConfigCokeInfo.cc:70
IODConfig.h
FEConfigCokeInfo::getTable
std::string getTable() override
Definition: FEConfigCokeInfo.h:19
FEConfigCokeInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigCokeInfo.cc:187
FEConfigCokeInfo
Definition: FEConfigCokeInfo.h:11
DDAxes::x
FEConfigCokeInfo::m_db_time
Tm m_db_time
Definition: FEConfigCokeInfo.h:46
watchdog.const
const
Definition: watchdog.py:83
Utilities.operator
operator
Definition: Utilities.py:24
FEConfigCokeInfo::setID
void setID(int id)
Definition: FEConfigCokeInfo.h:24
FEConfigCokeInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigCokeInfo.cc:28
FEConfigCokeInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigCokeInfo.cc:82
FEConfigCokeInfo::setId
void setId(int id)
Definition: FEConfigCokeInfo.h:21
FEConfigCokeInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigCokeInfo.h:30
Tm
Definition: Tm.h:13
FEConfigCokeInfo::FEConfigCokeInfo
FEConfigCokeInfo()
Definition: FEConfigCokeInfo.cc:13
FEConfigCokeInfo::~FEConfigCokeInfo
~FEConfigCokeInfo() override
Definition: FEConfigCokeInfo.cc:26
FEConfigCokeInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigCokeInfo.cc:48
FEConfigCokeInfo::clear
void clear()
Definition: FEConfigCokeInfo.cc:24
FEConfigCokeInfo::fetchLastData
void fetchLastData(FEConfigCokeInfo *result) noexcept(false)
Definition: FEConfigCokeInfo.cc:134
FEConfigCokeInfo::fetchData
void fetchData(FEConfigCokeInfo *result) noexcept(false)
Definition: FEConfigCokeInfo.cc:102
FEConfigCokeInfo::m_version
int m_version
Definition: FEConfigCokeInfo.h:47
FEConfigCokeInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigCokeInfo.cc:157
FEConfigCokeInfo::getVersion
int getVersion() const
Definition: FEConfigCokeInfo.h:28
Tm.h
IODConfig
Definition: IODConfig.h:18
FEConfigCokeInfo::setDBTime
void setDBTime(const Tm &x)
Definition: FEConfigCokeInfo.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.r
r
Definition: alignCSCRings.py:93
std
Definition: JetResolutionObject.h:76
FEConfigCokeInfo::getId
int getId() const
Definition: FEConfigCokeInfo.h:22
FEConfigCokeInfo::operator!=
bool operator!=(const FEConfigCokeInfo &r) const
Definition: FEConfigCokeInfo.h:41
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
DateHandler.h
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigCokeInfo::getID
int getID()
Definition: FEConfigCokeInfo.h:25