#include <MetaData.h>
Public Member Functions | |
bool | addMapping (const std::string &name, const std::string &token, cond::TimeType timetype=cond::runnumber) |
void | deleteAllEntries () |
void | deleteEntryByTag (const std::string &tag) |
const std::string | getToken (const std::string &tagname) const |
bool | hasTag (const std::string &name) const |
void | listAllTags (std::vector< std::string > &result) const |
MetaData (cond::DbSession &userSession) | |
~MetaData () | |
Private Attributes | |
cond::DbSession | m_userSession |
Definition at line 19 of file MetaData.h.
|
explicit |
Definition at line 31 of file MetaData.cc.
MetaData::~MetaData | ( | ) |
Definition at line 33 of file MetaData.cc.
bool MetaData::addMapping | ( | const std::string & | name, |
const std::string & | token, | ||
cond::TimeType | timetype = cond::runnumber |
||
) |
Definition at line 36 of file MetaData.cc.
References cppFunctionSkipper::exception, and ora::OId::fromString().
Referenced by cond::service::PoolDBOutputService::createNewIOV(), cond::ExportIOVUtilities::execute(), cond::AlignSplitIOV::execute(), TestFunct::Write(), and TestFunct::WriteWithIOV().
void MetaData::deleteAllEntries | ( | ) |
Definition at line 92 of file MetaData.cc.
References cppFunctionSkipper::exception, and edm::hlt::Exception.
void MetaData::deleteEntryByTag | ( | const std::string & | tag | ) |
Definition at line 100 of file MetaData.cc.
References cppFunctionSkipper::exception, and edm::hlt::Exception.
Referenced by TestFunct::DropItem().
const std::string MetaData::getToken | ( | const std::string & | tagname | ) | const |
Definition at line 53 of file MetaData.cc.
References cppFunctionSkipper::exception, convertSQLiteXML::ok, and ora::OId::toString().
Referenced by TestFunct::DropItem(), cond::ExportIOVUtilities::execute(), cond::AlignSplitIOV::execute(), HcalO2OManager::getListOfPoolIovs(), cond::CondDB::iovToken(), cond::BasePayloadProxy::loadTag(), cond::service::PoolDBOutputService::lookUpRecord(), l1t::DataWriter::payloadToken(), TestFunct::Read(), and TestFunct::ReadWithIOV().
bool MetaData::hasTag | ( | const std::string & | name | ) | const |
Definition at line 70 of file MetaData.cc.
References cppFunctionSkipper::exception, and query::result.
Referenced by cond::ExportIOVUtilities::execute(), HcalO2OManager::getListOfPoolIovs(), cond::service::PoolDBOutputService::lookUpRecord(), and l1t::DataWriter::payloadToken().
void MetaData::listAllTags | ( | std::vector< std::string > & | result | ) | const |
Definition at line 83 of file MetaData.cc.
References cppFunctionSkipper::exception, and edm::hlt::Exception.
Referenced by cond::CondDB::allTags(), HcalO2OManager::getListOfPoolTags(), and TestFunct::ReadAll().
|
mutableprivate |
Definition at line 48 of file MetaData.h.