CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IOVElement.h
Go to the documentation of this file.
1 #ifndef Cond_IOVElement_h
2 #define Cond_IOVElement_h
4 #include <string>
5 
6 namespace cond {
7 
11  class IOVElement {
12  public:
14  // for comparisons
16 
18  std::string const& iwrapper):
19  m_sinceTime(it),m_wrapper(iwrapper){}
20 
22  std::string const & token() const {return m_wrapper;}
23  std::string const & wrapperToken() const {return m_wrapper;}
24 
25  bool operator==(IOVElement const & rh) const {
26  return sinceTime()==rh.sinceTime()
27  && wrapperToken()==rh.wrapperToken();
28  }
29 
30 
31  private:
33  std::string m_wrapper;
34 
35  };
36 
37 
38 } // ns cond
39 
40 
41 #endif
IOVElement(cond::Time_t it, std::string const &iwrapper)
Definition: IOVElement.h:17
bool operator==(IOVElement const &rh) const
Definition: IOVElement.h:25
unsigned long long Time_t
Definition: Time.h:16
cond::Time_t m_sinceTime
Definition: IOVElement.h:32
IOVElement(cond::Time_t it)
Definition: IOVElement.h:15
cond::Time_t sinceTime() const
Definition: IOVElement.h:21
std::string const & token() const
Definition: IOVElement.h:22
std::string m_wrapper
Definition: IOVElement.h:33
std::string const & wrapperToken() const
Definition: IOVElement.h:23