CMS 3D CMS Logo

FEConfigLinInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGLIN_H
2 #define FECONFIGLIN_H
3 
4 #include <map>
5 #include <string>
6 
10 
11 class FEConfigLinInfo : public IODConfig {
12 public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigLinInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_LIN_INFO"; }
20 
21  inline void setIOVId(int iov_id) { m_iov_id = iov_id; }
22  int getIOVId() const { return m_iov_id; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26  // for compatibility
27  void setID(int id) { setId(id); }
28  int getID() { return getId(); }
29  // the tag is already in IODConfig
30  inline void setVersion(int id) { m_version = id; }
31  inline int getVersion() const { return m_version; }
32 
33  Tm getDBTime() const { return m_db_time; }
34  void setDBTime(const Tm& x) { m_db_time = x; }
35 
36  // Methods from IUniqueDBObject
37  int fetchID() noexcept(false);
38  int fetchNextId() noexcept(false);
39  void setByID(int id) noexcept(false);
40  void setParameters(const std::map<std::string, std::string>& my_keys_map);
41 
42  // operators
43  inline bool operator==(const FEConfigLinInfo& r) const { return (m_ID == r.m_ID); }
44  inline bool operator!=(const FEConfigLinInfo& r) const { return !(*this == r); }
45 
46 private:
47  // User data for this IOV
48  int m_iov_id;
49  int m_ID;
51  int m_version;
52 
53  void prepareWrite() noexcept(false) override;
54  void writeDB() noexcept(false);
55  void clear();
56  void fetchData(FEConfigLinInfo* result) noexcept(false);
57  void fetchLastData(FEConfigLinInfo* result) noexcept(false);
58 };
59 
60 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:29
FEConfigLinInfo::getID
int getID()
Definition: FEConfigLinInfo.h:28
IODConfig.h
FEConfigLinInfo::FEConfigLinInfo
FEConfigLinInfo()
Definition: FEConfigLinInfo.cc:13
FEConfigLinInfo::setByID
void setByID(int id) noexcept(false)
Definition: FEConfigLinInfo.cc:191
FEConfigLinInfo::m_db_time
Tm m_db_time
Definition: FEConfigLinInfo.h:50
DDAxes::x
FEConfigLinInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigLinInfo.cc:161
FEConfigLinInfo
Definition: FEConfigLinInfo.h:11
watchdog.const
const
Definition: watchdog.py:83
FEConfigLinInfo::setVersion
void setVersion(int id)
Definition: FEConfigLinInfo.h:30
FEConfigLinInfo::operator!=
bool operator!=(const FEConfigLinInfo &r) const
Definition: FEConfigLinInfo.h:44
FEConfigLinInfo::m_iov_id
int m_iov_id
Definition: FEConfigLinInfo.h:48
FEConfigLinInfo::fetchData
void fetchData(FEConfigLinInfo *result) noexcept(false)
Definition: FEConfigLinInfo.cc:105
Utilities.operator
operator
Definition: Utilities.py:24
FEConfigLinInfo::getDBTime
Tm getDBTime() const
Definition: FEConfigLinInfo.h:33
FEConfigLinInfo::writeDB
void writeDB() noexcept(false)
Definition: FEConfigLinInfo.cc:84
FEConfigLinInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: FEConfigLinInfo.cc:70
FEConfigLinInfo::m_version
int m_version
Definition: FEConfigLinInfo.h:51
FEConfigLinInfo::setId
void setId(int id)
Definition: FEConfigLinInfo.h:24
FEConfigLinInfo::getVersion
int getVersion() const
Definition: FEConfigLinInfo.h:31
FEConfigLinInfo::clear
void clear()
Definition: FEConfigLinInfo.cc:24
Tm
Definition: Tm.h:13
FEConfigLinInfo::getTable
std::string getTable() override
Definition: FEConfigLinInfo.h:19
Tm.h
IODConfig
Definition: IODConfig.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.r
r
Definition: alignCSCRings.py:93
FEConfigLinInfo::getId
int getId() const
Definition: FEConfigLinInfo.h:25
FEConfigLinInfo::setDBTime
void setDBTime(const Tm &x)
Definition: FEConfigLinInfo.h:34
std
Definition: JetResolutionObject.h:76
FEConfigLinInfo::setID
void setID(int id)
Definition: FEConfigLinInfo.h:27
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
FEConfigLinInfo::fetchLastData
void fetchLastData(FEConfigLinInfo *result) noexcept(false)
Definition: FEConfigLinInfo.cc:137
FEConfigLinInfo::~FEConfigLinInfo
~FEConfigLinInfo() override
Definition: FEConfigLinInfo.cc:26
FEConfigLinInfo::m_ID
int m_ID
Definition: FEConfigLinInfo.h:49
FEConfigLinInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigLinInfo.cc:48
DateHandler.h
mps_fire.result
result
Definition: mps_fire.py:311
FEConfigLinInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: FEConfigLinInfo.cc:28
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigLinInfo::getIOVId
int getIOVId() const
Definition: FEConfigLinInfo.h:22
FEConfigLinInfo::setIOVId
void setIOVId(int iov_id)
Definition: FEConfigLinInfo.h:21