CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UpdateStamp.h
Go to the documentation of this file.
1 #ifndef Cond_UpdateStamp_h
2 #define Cond_UpdateStamp_h
3 
5 #include <string>
6 
7 
8 namespace cond {
9 
14  class UpdateStamp {
15  public:
16  // constrcutor creates and invalid stamp
17  UpdateStamp();
18 
19  UpdateStamp(UpdateStamp const & rhs);
20 
21  virtual ~UpdateStamp();
22 
23  // stamp and return current revision number;
24  int stamp( std::string const & icomment, bool append=false);
25 
26  int revision() const { return m_revision;}
27 
28  cond::Time_t timestamp() const { return m_timestamp;}
29 
30  std::string const & comment() const { return m_comment;}
31 
32  private:
33 
36  std::string m_comment;
37  };
38 
39 } // nc cond
40 
41 #endif
int revision() const
Definition: UpdateStamp.h:26
cond::Time_t timestamp() const
Definition: UpdateStamp.h:28
int stamp(std::string const &icomment, bool append=false)
Definition: UpdateStamp.cc:22
unsigned long long Time_t
Definition: Time.h:16
cond::Time_t m_timestamp
Definition: UpdateStamp.h:35
virtual ~UpdateStamp()
Definition: UpdateStamp.cc:19
std::string const & comment() const
Definition: UpdateStamp.h:30
std::string m_comment
Definition: UpdateStamp.h:36