CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cond::IOVElement Class Reference

#include <IOVElement.h>

Public Member Functions

 IOVElement ()
 
 IOVElement (cond::Time_t it)
 
 IOVElement (cond::Time_t it, std::string const &itoken)
 
bool operator== (IOVElement const &rh) const
 
cond::Time_t sinceTime () const
 
void swapOId (ora::ITokenWriter &writer) const
 
void swapToken (ora::ITokenParser &parser) const
 
std::string token () const
 

Private Attributes

ora::OId m_oid
 
cond::Time_t m_sinceTime
 
std::string m_wrapper
 

Detailed Description

Element of an IOV Sequence include the since time, token to the wrapper

Definition at line 12 of file IOVElement.h.

Constructor & Destructor Documentation

cond::IOVElement::IOVElement ( )
inline

Definition at line 14 of file IOVElement.h.

14  :
15  m_sinceTime(0),
16  m_wrapper(""),
17  m_oid(){}
cond::Time_t m_sinceTime
Definition: IOVElement.h:57
ora::OId m_oid
Definition: IOVElement.h:59
std::string m_wrapper
Definition: IOVElement.h:58
cond::IOVElement::IOVElement ( cond::Time_t  it)
inlineexplicit

Definition at line 19 of file IOVElement.h.

19  :
20  m_sinceTime(it),
21  m_wrapper(""),
22  m_oid(){}
cond::Time_t m_sinceTime
Definition: IOVElement.h:57
ora::OId m_oid
Definition: IOVElement.h:59
std::string m_wrapper
Definition: IOVElement.h:58
cond::IOVElement::IOVElement ( cond::Time_t  it,
std::string const &  itoken 
)
inline

Definition at line 24 of file IOVElement.h.

References ora::OId::fromString(), and m_oid.

25  :
26  m_sinceTime(it),
27  m_wrapper(""),
28  m_oid(){
29  m_oid.fromString( itoken );
30  }
cond::Time_t m_sinceTime
Definition: IOVElement.h:57
ora::OId m_oid
Definition: IOVElement.h:59
std::string m_wrapper
Definition: IOVElement.h:58
bool fromString(const std::string &s)
Definition: OId.cc:64

Member Function Documentation

bool cond::IOVElement::operator== ( IOVElement const &  rh) const
inline

Definition at line 38 of file IOVElement.h.

References sinceTime(), and token().

38  {
39  return sinceTime()==rh.sinceTime()
40  && token()==rh.token();
41  }
std::string token() const
Definition: IOVElement.h:34
cond::Time_t sinceTime() const
Definition: IOVElement.h:32
cond::Time_t cond::IOVElement::sinceTime ( ) const
inline

Definition at line 32 of file IOVElement.h.

References m_sinceTime.

Referenced by cond::IOVSequence::find(), operator==(), and cond::IOVSequence::sortMe().

32 {return m_sinceTime;}
cond::Time_t m_sinceTime
Definition: IOVElement.h:57
void cond::IOVElement::swapOId ( ora::ITokenWriter writer) const
inline

Definition at line 50 of file IOVElement.h.

References ora::OId::isInvalid(), m_oid, m_wrapper, and ora::ITokenWriter::write().

50  {
51  if( !m_oid.isInvalid() ){
52  const_cast<IOVElement*>(this)->m_wrapper = writer.write( m_oid );
53  }
54  }
virtual std::string write(const OId &oid)=0
bool isInvalid() const
Definition: OId.cc:80
ora::OId m_oid
Definition: IOVElement.h:59
std::string m_wrapper
Definition: IOVElement.h:58
void cond::IOVElement::swapToken ( ora::ITokenParser parser) const
inline

Definition at line 43 of file IOVElement.h.

References m_oid, m_wrapper, and ora::ITokenParser::parse().

43  {
44  if( !m_wrapper.empty() ){
45  const_cast<IOVElement*>(this)->m_oid = parser.parse( m_wrapper );
46  const_cast<IOVElement*>(this)->m_wrapper.clear();
47  }
48  }
ora::OId m_oid
Definition: IOVElement.h:59
virtual OId parse(const std::string &poolToken)=0
std::string m_wrapper
Definition: IOVElement.h:58
std::string cond::IOVElement::token ( ) const
inline

Definition at line 34 of file IOVElement.h.

References m_oid, and ora::OId::toString().

Referenced by cond::ExportIOVUtilities::execute(), and operator==().

34  {
35  return m_oid.toString();
36  }
ora::OId m_oid
Definition: IOVElement.h:59
std::string toString() const
Definition: OId.cc:58

Member Data Documentation

ora::OId cond::IOVElement::m_oid
private

Definition at line 59 of file IOVElement.h.

Referenced by IOVElement(), swapOId(), swapToken(), and token().

cond::Time_t cond::IOVElement::m_sinceTime
private

Definition at line 57 of file IOVElement.h.

Referenced by sinceTime().

std::string cond::IOVElement::m_wrapper
private

Definition at line 58 of file IOVElement.h.

Referenced by swapOId(), and swapToken().