#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 |
Element of an IOV Sequence include the since time, token to the wrapper
Definition at line 12 of file IOVElement.h.
cond::IOVElement::IOVElement | ( | ) | [inline] |
Definition at line 14 of file IOVElement.h.
: m_sinceTime(0), m_wrapper(""), m_oid(){}
cond::IOVElement::IOVElement | ( | cond::Time_t | it | ) | [inline, explicit] |
Definition at line 19 of file IOVElement.h.
: m_sinceTime(it), m_wrapper(""), m_oid(){}
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.
: m_sinceTime(it), m_wrapper(""), m_oid(){ m_oid.fromString( itoken ); }
bool cond::IOVElement::operator== | ( | IOVElement const & | rh | ) | const [inline] |
Definition at line 38 of file IOVElement.h.
References sinceTime(), and token().
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().
{return m_sinceTime;}
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, ora::OId::reset(), and ora::ITokenWriter::write().
{ if( !m_oid.isInvalid() ){ const_cast<IOVElement*>(this)->m_wrapper = writer.write( m_oid ); const_cast<IOVElement*>(this)->m_oid.reset(); } }
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().
{ if( !m_wrapper.empty() ){ const_cast<IOVElement*>(this)->m_oid = parser.parse( m_wrapper ); const_cast<IOVElement*>(this)->m_wrapper.clear(); } }
std::string cond::IOVElement::token | ( | ) | const [inline] |
Definition at line 34 of file IOVElement.h.
References m_oid, and ora::OId::toString().
Referenced by operator==().
ora::OId cond::IOVElement::m_oid [private] |
Definition at line 60 of file IOVElement.h.
Referenced by IOVElement(), swapOId(), swapToken(), and token().
cond::Time_t cond::IOVElement::m_sinceTime [private] |
Definition at line 58 of file IOVElement.h.
Referenced by sinceTime().
std::string cond::IOVElement::m_wrapper [private] |
Definition at line 59 of file IOVElement.h.
Referenced by swapOId(), and swapToken().