![]() |
![]() |
#include <IOVService.h>
Public Member Functions | |
void | deleteAll (bool withPayload=false) |
std::string | exportIOVRangeWithPayload (cond::DbSession &destDB, const std::string &iovToken, const std::string &destToken, cond::Time_t since, cond::Time_t till, bool outOfOrder) |
std::string | exportIOVWithPayload (cond::DbSession &destDB, const std::string &iovToken) |
IOVService (cond::DbSession &dbSess) | |
bool | isValid (const std::string &iovToken, cond::Time_t currenttime) |
IOVEditor * | newIOVEditor (const std::string &token="") |
std::string | payloadContainerName (const std::string &iovtoken) |
std::string | payloadToken (const std::string &iovToken, cond::Time_t currenttime) |
cond::TimeType | timeType (const std::string &iovToken) |
std::pair< cond::Time_t, cond::Time_t > | validity (const std::string &iovToken, cond::Time_t currenttime) |
virtual | ~IOVService () |
Private Member Functions | |
cond::IOVSequence const & | iovSeq (const std::string &iovToken) |
Private Attributes | |
cond::DbSession | m_dbSess |
boost::shared_ptr < cond::IOVSequence > | m_iov |
std::string | m_token |
Definition at line 10 of file IOVService.h.
cond::IOVService::IOVService | ( | cond::DbSession & | dbSess | ) |
Definition at line 14 of file IOVService.cc.
|
virtual |
Definition at line 17 of file IOVService.cc.
void cond::IOVService::deleteAll | ( | bool | withPayload = false | ) |
Definition at line 96 of file IOVService.cc.
References ora::PVector< Tp >::begin(), cont, cond::IOVNames::container(), ora::Database::containerHandle(), EcalCondDB::db, ora::Container::erase(), ora::Container::flush(), ora::ContainerIterator::get(), o2o::iov, cond::IOVSequence::iovs(), ora::ContainerIterator::itemId(), ora::Container::iterator(), and ora::ContainerIterator::next().
std::string cond::IOVService::exportIOVRangeWithPayload | ( | cond::DbSession & | destDB, |
const std::string & | iovToken, | ||
const std::string & | destToken, | ||
cond::Time_t | since, | ||
cond::Time_t | till, | ||
bool | outOfOrder | ||
) |
export IOV selected by token within selected range and associated payload to another database return new iov token string
maybe no longer required...
Definition at line 146 of file IOVService.cc.
References prof2calltree::back, cond::IOVNames::container(), ora::PVector< Tp >::end(), edm::hlt::Exception, cond::IOVSequence::find(), cond::IOVSequence::firstSince(), cond::DbSession::getTypedObject(), cond::DbSession::importObject(), o2o::iov, cond::IOVSequence::iovs(), cond::IOVSequence::lastTill(), max(), cond::IOVSequence::metadataToken(), cond::DbSession::storeObject(), cond::IOVSequence::timeType(), cond::DbSession::updateObject(), and cond::userInfo().
std::string cond::IOVService::exportIOVWithPayload | ( | cond::DbSession & | destDB, |
const std::string & | iovToken | ||
) |
export IOV selected by token and associated payload to another database return new iov token string
Definition at line 118 of file IOVService.cc.
References ora::PVector< Tp >::begin(), cond::IOVNames::container(), ora::PVector< Tp >::end(), cond::DbSession::importObject(), o2o::iov, cond::IOVSequence::iovs(), cond::IOVSequence::lastTill(), cond::IOVSequence::metadataToken(), cond::DbSession::storeObject(), and cond::IOVSequence::timeType().
|
private |
Definition at line 27 of file IOVService.cc.
bool cond::IOVService::isValid | ( | const std::string & | iovToken, |
cond::Time_t | currenttime | ||
) |
Definition at line 54 of file IOVService.cc.
References cond::IOVSequence::firstSince(), o2o::iov, and cond::IOVSequence::lastTill().
cond::IOVEditor * cond::IOVService::newIOVEditor | ( | const std::string & | token = "" | ) |
create an editor to the iov selected by the token user aquires the ownership of the pointer. Need explicit delete after usage
Definition at line 20 of file IOVService.cc.
std::string cond::IOVService::payloadContainerName | ( | const std::string & | iovtoken | ) |
Definition at line 83 of file IOVService.cc.
References ora::PVector< Tp >::front(), o2o::iov, cond::IOVSequence::iovs(), and cond::parseToken().
Referenced by cond::AlignSplitIOV::execute().
std::string cond::IOVService::payloadToken | ( | const std::string & | iovToken, |
cond::Time_t | currenttime | ||
) |
Definition at line 38 of file IOVService.cc.
References ora::PVector< Tp >::end(), cond::IOVSequence::find(), o2o::iov, and cond::IOVSequence::iovs().
Referenced by l1t::DataWriter::payloadToken().
cond::TimeType cond::IOVService::timeType | ( | const std::string & | iovToken | ) |
Definition at line 49 of file IOVService.cc.
References o2o::iov, and cond::IOVSequence::timeType().
Referenced by cond::AlignSplitIOV::execute().
std::pair< cond::Time_t, cond::Time_t > cond::IOVService::validity | ( | const std::string & | iovToken, |
cond::Time_t | currenttime | ||
) |
Definition at line 63 of file IOVService.cc.
References ora::PVector< Tp >::end(), cond::IOVSequence::find(), cond::IOVSequence::firstSince(), o2o::iov, cond::IOVSequence::iovs(), and cond::IOVSequence::lastTill().
|
private |
Definition at line 62 of file IOVService.h.
|
private |
Definition at line 64 of file IOVService.h.
|
private |
Definition at line 63 of file IOVService.h.