#include <GTProxy.h>
Classes | |
class | Iterator |
Public Types | |
typedef std::vector < std::tuple< std::string, std::string, std::string > > | GTContainer |
Public Member Functions | |
Iterator | begin () const |
Iterator | end () const |
GTProxy () | |
GTProxy (const std::shared_ptr< SessionImpl > &session) | |
GTProxy (const GTProxy &rhs) | |
void | load (const std::string >Name, const std::string &preFix="", const std::string &postFix="") |
std::string | name () const |
GTProxy & | operator= (const GTProxy &rhs) |
void | reload () |
void | reset () |
int | size () const |
boost::posix_time::ptime | snapshotTime () const |
cond::Time_t | validity () const |
Private Member Functions | |
void | checkTransaction (const std::string &ctx) |
Private Attributes | |
std::shared_ptr< GTProxyData > | m_data |
std::shared_ptr< SessionImpl > | m_session |
typedef std::vector<std::tuple<std::string,std::string,std::string> > cond::persistency::GTProxy::GTContainer |
GTProxy::GTProxy | ( | ) |
Definition at line 91 of file GTProxy.cc.
|
explicit |
Definition at line 96 of file GTProxy.cc.
GTProxy::GTProxy | ( | const GTProxy & | rhs | ) |
Definition at line 101 of file GTProxy.cc.
GTProxy::Iterator GTProxy::begin | ( | void | ) | const |
|
private |
Definition at line 170 of file GTProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by load().
GTProxy::Iterator GTProxy::end | ( | void | ) | const |
void GTProxy::load | ( | const std::string & | gtName, |
const std::string & | pref = "" , |
||
const std::string & | postf = "" |
||
) |
this will be the final function void GTProxy::load( const std::string& gtName ){
clear reset();
checkSession( "GTProxy::load" );
if(!m_session->gtSchema().gtTable().select( gtName, m_data->validity, m_data->snapshotTime ) ){ throwException( "Global Tag \""+gtName+"" has not been found in the database.","GTProxy::load"); } m_data->name = gtName;
m_session->gtSchema().gtMapTable().select( m_data->name, m_data->tagList );
}
Definition at line 130 of file GTProxy.cc.
References checkTransaction(), m_data, m_session, reset(), and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), and reload().
std::string GTProxy::name | ( | ) | const |
Definition at line 158 of file GTProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by VIDSelectorBase.VIDSelectorBase::initialize().
Definition at line 106 of file GTProxy.cc.
References m_data, and m_session.
void GTProxy::reload | ( | ) |
Definition at line 148 of file GTProxy.cc.
References load(), and m_data.
void GTProxy::reset | ( | void | ) |
int GTProxy::size | ( | void | ) | const |
boost::posix_time::ptime GTProxy::snapshotTime | ( | ) | const |
cond::Time_t GTProxy::validity | ( | ) | const |
Definition at line 162 of file GTProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 104 of file GTProxy.h.
Referenced by begin(), end(), load(), name(), operator=(), reload(), reset(), size(), snapshotTime(), and validity().
|
private |
Definition at line 105 of file GTProxy.h.
Referenced by checkTransaction(), load(), and operator=().