#include <UpdateStamp.h>
Public Member Functions | |
std::string const & | comment () const |
int | revision () const |
int | stamp (std::string const &icomment, bool append=false) |
cond::Time_t | timestamp () const |
UpdateStamp (UpdateStamp const &rhs) | |
UpdateStamp () | |
virtual | ~UpdateStamp () |
Private Attributes | |
std::string | m_comment |
int | m_revision |
cond::Time_t | m_timestamp |
class to "stamp" a new version of an updateble persistent object it includes a timestamp, a sequential revision number and a comment no history in mantained at the moment
Definition at line 14 of file UpdateStamp.h.
cond::UpdateStamp::UpdateStamp | ( | ) |
Definition at line 10 of file UpdateStamp.cc.
: m_revision(-1), m_timestamp(0), m_comment("not stamped"){}
cond::UpdateStamp::UpdateStamp | ( | UpdateStamp const & | rhs | ) |
Definition at line 13 of file UpdateStamp.cc.
References m_comment, m_revision, and m_timestamp.
{ m_revision = rhs.m_revision; m_timestamp = rhs.m_timestamp; m_comment = rhs.m_comment; }
cond::UpdateStamp::~UpdateStamp | ( | ) | [virtual] |
Definition at line 19 of file UpdateStamp.cc.
{}
std::string const& cond::UpdateStamp::comment | ( | ) | const [inline] |
int cond::UpdateStamp::revision | ( | ) | const [inline] |
int cond::UpdateStamp::stamp | ( | std::string const & | icomment, |
bool | append = false |
||
) |
Definition at line 22 of file UpdateStamp.cc.
References m_comment, m_revision, m_timestamp, and cmsPerfSuiteHarvest::now.
{ m_revision++; m_timestamp = cond::time::now(); if (append && !icomment.empty()) m_comment += sep + icomment; else m_comment = icomment; return m_revision; }
cond::Time_t cond::UpdateStamp::timestamp | ( | ) | const [inline] |
std::string cond::UpdateStamp::m_comment [private] |
Definition at line 36 of file UpdateStamp.h.
Referenced by comment(), stamp(), and UpdateStamp().
int cond::UpdateStamp::m_revision [private] |
Definition at line 34 of file UpdateStamp.h.
Referenced by revision(), stamp(), and UpdateStamp().
cond::Time_t cond::UpdateStamp::m_timestamp [private] |
Definition at line 35 of file UpdateStamp.h.
Referenced by stamp(), timestamp(), and UpdateStamp().