#include <TagCollectionRetriever.h>
Public Member Functions | |
bool | existsTagCollection (const std::string &globaltag) |
bool | existsTagDatabase () |
void | getTagCollection (const std::string &globaltag, std::set< cond::TagMetadata > &result) |
bool | selectTagCollection (const std::string &globaltag, std::set< cond::TagMetadata > &result) |
TagCollectionRetriever (cond::DbSession &coraldb) | |
constructor More... | |
TagCollectionRetriever (cond::DbSession &coraldb, std::string const &prefix, std::string const &postfix) | |
~TagCollectionRetriever () | |
destructor More... | |
Private Member Functions | |
std::pair< std::string, std::string > | parseglobaltag (const std::string &globaltag) |
parse global tag string returns result in pair <treename,nodename> More... | |
Private Attributes | |
cond::DbSession | m_coraldb |
PfnEditor | pfnEditor |
Definition at line 20 of file TagCollectionRetriever.h.
|
explicit |
constructor
Definition at line 18 of file TagCollectionRetriever.cc.
TagCollectionRetriever::TagCollectionRetriever | ( | cond::DbSession & | coraldb, |
std::string const & | prefix, | ||
std::string const & | postfix | ||
) |
Definition at line 23 of file TagCollectionRetriever.cc.
TagCollectionRetriever::~TagCollectionRetriever | ( | ) |
bool TagCollectionRetriever::existsTagCollection | ( | const std::string & | globaltag | ) |
Definition at line 38 of file TagCollectionRetriever.cc.
References i, AlCaHLTBitMon_QueryRunRegistry::string, and cond::tagTreeTablePrefix.
Referenced by cond::persistency::OraGTTable::select().
bool TagCollectionRetriever::existsTagDatabase | ( | ) |
Definition at line 33 of file TagCollectionRetriever.cc.
References cond::tagInventoryTable.
Referenced by cond::persistency::OraGTSchema::exists().
void TagCollectionRetriever::getTagCollection | ( | const std::string & | globaltag, |
std::set< cond::TagMetadata > & | result | ||
) |
given global tag return the basic tag collection. The global tag has the format TreeName::NodeName
Definition at line 57 of file TagCollectionRetriever.cc.
Referenced by cond::RDBMS::globalTag().
|
private |
parse global tag string returns result in pair <treename,nodename>
Definition at line 152 of file TagCollectionRetriever.cc.
References align_cfg::globaltag, and query::result.
bool TagCollectionRetriever::selectTagCollection | ( | const std::string & | globaltag, |
std::set< cond::TagMetadata > & | result | ||
) |
Definition at line 64 of file TagCollectionRetriever.cc.
References Exception, i, cond::TagMetadata::labelname, cond::TagMetadata::objectname, cond::TagMetadata::pfn, o2o::query, cond::TagMetadata::recordname, AlCaHLTBitMon_QueryRunRegistry::string, cond::TagMetadata::tag, cond::tagInventoryTable, createPayload::tagname, and cond::tagTreeTablePrefix.
Referenced by cond::persistency::OraGTMapTable::select().
|
private |
Definition at line 44 of file TagCollectionRetriever.h.
|
private |
Definition at line 45 of file TagCollectionRetriever.h.