CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UpdateStamp.cc
Go to the documentation of this file.
3 
4 namespace {
5  std::string sep(". ");
6 }
7 
8 namespace cond {
9 
11  m_revision(-1), m_timestamp(0), m_comment("not stamped"){}
12 
14  m_revision = rhs.m_revision;
16  m_comment = rhs.m_comment;
17  }
18 
20 
21  // stamp and return current revision number;
22  int UpdateStamp::stamp(std::string const & icomment, bool append) {
23  m_revision++;
25  if (append && !icomment.empty()) m_comment += sep + icomment;
26  else m_comment = icomment;
27  return m_revision;
28  }
29 
30 }
int stamp(std::string const &icomment, bool append=false)
Definition: UpdateStamp.cc:22
cond::Time_t m_timestamp
Definition: UpdateStamp.h:35
virtual ~UpdateStamp()
Definition: UpdateStamp.cc:19
std::string m_comment
Definition: UpdateStamp.h:36
Time_t now()