OnlineDB
EcalCondDB
interface
RunModeDef.h
Go to the documentation of this file.
1
#ifndef RUNMODEDEF_H
2
#define RUNMODEDEF_H
3
4
#include <string>
5
#include <stdexcept>
6
7
#include "
OnlineDB/EcalCondDB/interface/IDef.h
"
8
12
class
RunModeDef
:
public
IDef
{
13
public
:
14
friend
class
EcalCondDBInterface
;
15
16
RunModeDef
();
17
~RunModeDef
()
override
;
18
19
// Methods for user data
20
std::string
getRunMode
()
const
;
21
void
setRunMode
(
std::string
runmode
);
22
23
// Methods from IUniqueDBObject
24
int
fetchID
() noexcept(
false
) override;
25
void
setByID
(
int
id
) noexcept(
false
) override;
26
27
// Operators. m_desc is not considered, it cannot be written to DB anyhow
28
inline
bool
operator
==(
const
RunModeDef
&
t
)
const
{
return
m_runMode
==
t
.m_runMode; }
29
inline
bool
operator!=
(
const
RunModeDef
&
t
)
const
{
return
m_runMode
!=
t
.m_runMode; }
30
31
protected
:
32
// User data for this def
33
std::string
m_runMode
;
34
35
void
fetchAllDefs
(std::vector<RunModeDef> *fillVec) noexcept(
false
);
36
};
37
38
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
IDef
Definition:
IDef.h:11
funct::false
false
Definition:
Factorize.h:29
RunModeDef
Definition:
RunModeDef.h:12
RunModeDef::fetchID
int fetchID() noexcept(false) override
Definition:
RunModeDef.cc:27
RunModeDef::fetchAllDefs
void fetchAllDefs(std::vector< RunModeDef > *fillVec) noexcept(false)
Definition:
RunModeDef.cc:79
RunModeDef::operator!=
bool operator!=(const RunModeDef &t) const
Definition:
RunModeDef.h:29
RunModeDef::RunModeDef
RunModeDef()
Definition:
RunModeDef.cc:9
watchdog.const
const
Definition:
watchdog.py:83
Utilities.operator
operator
Definition:
Utilities.py:24
RunModeDef::setByID
void setByID(int id) noexcept(false) override
Definition:
RunModeDef.cc:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RunModeDef::setRunMode
void setRunMode(std::string runmode)
Definition:
RunModeDef.cc:20
SiStripCommissioningClient_cfg.runmode
runmode
Definition:
SiStripCommissioningClient_cfg.py:8
RunModeDef::getRunMode
std::string getRunMode() const
Definition:
RunModeDef.cc:18
IDef.h
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
RunModeDef::m_runMode
std::string m_runMode
Definition:
RunModeDef.h:33
RunModeDef::~RunModeDef
~RunModeDef() override
Definition:
RunModeDef.cc:16
Generated for CMSSW Reference Manual by
1.8.16