#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 86 of file GTProxy.cc.
|
explicit |
Definition at line 91 of file GTProxy.cc.
GTProxy::GTProxy | ( | const GTProxy & | rhs | ) |
Definition at line 96 of file GTProxy.cc.
GTProxy::Iterator GTProxy::begin | ( | void | ) | const |
|
private |
Definition at line 165 of file GTProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by load().
GTProxy::Iterator GTProxy::end | ( | void | ) | const |
Definition at line 177 of file GTProxy.cc.
References m_data.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
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 125 of file GTProxy.cc.
References checkTransaction(), m_data, m_session, reset(), and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), cond::persistency::Session::readGlobalTag(), and reload().
std::string GTProxy::name | ( | ) | const |
Definition at line 153 of file GTProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
Definition at line 101 of file GTProxy.cc.
References m_data, and m_session.
void GTProxy::reload | ( | ) |
Definition at line 143 of file GTProxy.cc.
References load(), and m_data.
void GTProxy::reset | ( | void | ) |
Definition at line 147 of file GTProxy.cc.
References m_data.
Referenced by MatrixReader.MatrixReader::__init__(), load(), and MatrixReader.MatrixReader::showRaw().
int GTProxy::size | ( | void | ) | const |
boost::posix_time::ptime GTProxy::snapshotTime | ( | ) | const |
cond::Time_t GTProxy::validity | ( | ) | const |
Definition at line 157 of file GTProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 103 of file GTProxy.h.
Referenced by begin(), end(), load(), name(), operator=(), reload(), reset(), size(), snapshotTime(), and validity().
|
private |
Definition at line 104 of file GTProxy.h.
Referenced by checkTransaction(), load(), and operator=().