Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
Common
src
UpdateStamp.cc
Go to the documentation of this file.
1
#include "
CondFormats/Common/interface/UpdateStamp.h
"
2
#include "
CondFormats/Common/interface/TimeConversions.h
"
3
4
namespace
{
5
const
std::string
sep(
". "
);
6
}
7
8
namespace
cond {
9
10
UpdateStamp::UpdateStamp
() :
11
m_revision(-1), m_timestamp(0), m_comment(
"not stamped"
){}
12
13
UpdateStamp::UpdateStamp
(
UpdateStamp
const
& rhs) {
14
m_revision
= rhs.
m_revision
;
15
m_timestamp
= rhs.
m_timestamp
;
16
m_comment
= rhs.
m_comment
;
17
}
18
19
UpdateStamp::~UpdateStamp
(){}
20
21
// stamp and return current revision number;
22
int
UpdateStamp::stamp
(
std::string
const
& icomment,
bool
append
) {
23
m_revision
++;
24
m_timestamp
=
cond::time::now
();
25
if
(append && !icomment.empty())
m_comment
+= sep + icomment;
26
else
m_comment
= icomment;
27
return
m_revision
;
28
}
29
30
}
UpdateStamp.h
python.multivaluedict.append
def append
Definition:
multivaluedict.py:73
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::UpdateStamp::stamp
int stamp(std::string const &icomment, bool append=false)
Definition:
UpdateStamp.cc:22
cond::UpdateStamp::m_revision
int m_revision
Definition:
UpdateStamp.h:36
cond::UpdateStamp::m_timestamp
cond::Time_t m_timestamp
Definition:
UpdateStamp.h:37
cond::UpdateStamp::~UpdateStamp
virtual ~UpdateStamp()
Definition:
UpdateStamp.cc:19
cond::UpdateStamp::m_comment
std::string m_comment
Definition:
UpdateStamp.h:38
TimeConversions.h
cond::UpdateStamp
Definition:
UpdateStamp.h:16
cond::UpdateStamp::UpdateStamp
UpdateStamp()
Definition:
UpdateStamp.cc:10
cond::time::now
Time_t now()
Definition:
TimeConversions.h:75
Generated for CMSSW Reference Manual by
1.8.5