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 
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 
39 
41 };
42 
43 } // nc cond
44 
45 #endif
int revision() const
Definition: UpdateStamp.h:28
cond::Time_t timestamp() const
Definition: UpdateStamp.h:30
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:37
virtual ~UpdateStamp()
Definition: UpdateStamp.cc:19
#define COND_SERIALIZABLE
Definition: Serializable.h:37
std::string const & comment() const
Definition: UpdateStamp.h:32
std::string m_comment
Definition: UpdateStamp.h:38