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 13 of file IOVElement.h.

Constructor & Destructor Documentation

cond::IOVElement::IOVElement ( )
inline

Definition at line 15 of file IOVElement.h.

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

Definition at line 20 of file IOVElement.h.

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

Definition at line 25 of file IOVElement.h.

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

26  :
27  m_sinceTime(it),
28  m_wrapper(""),
29  m_oid(){
30  m_oid.fromString( itoken );
31  }
cond::Time_t m_sinceTime
Definition: IOVElement.h:58
ora::OId m_oid
Definition: IOVElement.h:60
std::string m_wrapper
Definition: IOVElement.h:59
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 39 of file IOVElement.h.

References sinceTime(), and token().

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

Definition at line 33 of file IOVElement.h.

References m_sinceTime.

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

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

Definition at line 51 of file IOVElement.h.

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

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

Definition at line 44 of file IOVElement.h.

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

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

Definition at line 35 of file IOVElement.h.

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

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

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

Member Data Documentation

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().