00001 #ifndef Cond_IOVElement_h 00002 #define Cond_IOVElement_h 00003 #include "CondFormats/Common/interface/Time.h" 00004 #include <string> 00005 00006 namespace cond { 00007 00011 class IOVElement { 00012 public: 00013 IOVElement(){} 00014 // for comparisons 00015 IOVElement(cond::Time_t it) : m_sinceTime(it){} 00016 00017 IOVElement(cond::Time_t it, 00018 std::string const& iwrapper): 00019 m_sinceTime(it),m_wrapper(iwrapper){} 00020 00021 cond::Time_t sinceTime() const {return m_sinceTime;} 00022 std::string const & token() const {return m_wrapper;} 00023 std::string const & wrapperToken() const {return m_wrapper;} 00024 00025 bool operator==(IOVElement const & rh) const { 00026 return sinceTime()==rh.sinceTime() 00027 && wrapperToken()==rh.wrapperToken(); 00028 } 00029 00030 00031 private: 00032 cond::Time_t m_sinceTime; 00033 std::string m_wrapper; 00034 00035 }; 00036 00037 00038 } // ns cond 00039 00040 00041 #endif