Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
Common
interface
UpdateStamp.h
Go to the documentation of this file.
1
#ifndef Cond_UpdateStamp_h
2
#define Cond_UpdateStamp_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include "
CondFormats/Common/interface/Time.h
"
7
#include <string>
8
9
10
namespace
cond {
11
16
class
UpdateStamp
{
17
public
:
18
// constrcutor creates and invalid stamp
19
UpdateStamp
();
20
21
UpdateStamp
(
UpdateStamp
const
& rhs);
22
23
virtual
~UpdateStamp
();
24
25
// stamp and return current revision number;
26
int
stamp
(
std::string
const
& icomment,
bool
append
=
false
);
27
28
int
revision
()
const
{
return
m_revision
;}
29
30
cond::Time_t
timestamp
()
const
{
return
m_timestamp
;}
31
32
std::string
const
&
comment
()
const
{
return
m_comment
;}
33
34
private
:
35
36
int
m_revision
;
37
cond::Time_t
m_timestamp
;
38
std::string
m_comment
;
39
40
COND_SERIALIZABLE
;
41
};
42
43
}
// nc cond
44
45
#endif
cond::UpdateStamp::revision
int revision() const
Definition:
UpdateStamp.h:28
Time.h
python.multivaluedict.append
def append
Definition:
multivaluedict.py:73
cond::UpdateStamp::timestamp
cond::Time_t timestamp() const
Definition:
UpdateStamp.h:30
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::Time_t
unsigned long long Time_t
Definition:
Time.h:16
cond::UpdateStamp::m_revision
int m_revision
Definition:
UpdateStamp.h:36
cond::UpdateStamp::COND_SERIALIZABLE
COND_SERIALIZABLE
Definition:
UpdateStamp.h:40
cond::UpdateStamp::m_timestamp
cond::Time_t m_timestamp
Definition:
UpdateStamp.h:37
cond::UpdateStamp::~UpdateStamp
virtual ~UpdateStamp()
Definition:
UpdateStamp.cc:19
cond::UpdateStamp::comment
std::string const & comment() const
Definition:
UpdateStamp.h:32
cond::UpdateStamp::m_comment
std::string m_comment
Definition:
UpdateStamp.h:38
Serializable.h
cond::UpdateStamp
Definition:
UpdateStamp.h:16
cond::UpdateStamp::UpdateStamp
UpdateStamp()
Definition:
UpdateStamp.cc:10
Generated for CMSSW Reference Manual by
1.8.5