00001 #ifndef Cond_UpdateStamp_h 00002 #define Cond_UpdateStamp_h 00003 00004 #include "CondFormats/Common/interface/Time.h" 00005 #include <string> 00006 00007 00008 namespace cond { 00009 00014 class UpdateStamp { 00015 public: 00016 // constrcutor creates and invalid stamp 00017 UpdateStamp(); 00018 00019 UpdateStamp(UpdateStamp const & rhs); 00020 00021 virtual ~UpdateStamp(); 00022 00023 // stamp and return current revision number; 00024 int stamp( std::string const & icomment, bool append=false); 00025 00026 int revision() const { return m_revision;} 00027 00028 cond::Time_t timestamp() const { return m_timestamp;} 00029 00030 std::string const & comment() const { return m_comment;} 00031 00032 private: 00033 00034 int m_revision; 00035 cond::Time_t m_timestamp; 00036 std::string m_comment; 00037 }; 00038 00039 } // nc cond 00040 00041 #endif