6 namespace persistency {
9 if(connectionString.empty())
return tag;
10 return tag+
"@["+connectionString+
"]";
16 size_t pos = tag.rfind(
"[");
17 if( pos != std::string::npos && tag.size() >= pos+2 ){
18 if( tag[pos-1]==
'@' && tag[tag.size()-1]==
']' ) {
19 pfn = tag.substr( pos+1,tag.size()-pos-2 );
20 t = tag.substr( 0, pos-1 );
23 return std::make_pair( t, pfn );
57 m_current( rhs.m_current ){
83 if( m_current != rhs.
m_current )
return false;
102 m_data( rhs.m_data ),
103 m_session( rhs.m_session ){
137 throwException(
"Global Tag \""+gtName+
"\" has not been found in the database.",
"GTProxy::load");
167 return m_data.get() ?
m_data->snapshotTime : boost::posix_time::ptime();
GTContainer::const_iterator m_current
std::vector< std::tuple< std::string, std::string, std::string > > GTContainer
cond::GTEntry_t operator*()
GTProxy & operator=(const GTProxy &rhs)
Iterator & operator=(const Iterator &rhs)
bool operator==(const Iterator &rhs) const
void checkTransaction(const std::string &ctx)
cond::Time_t validity() const
unsigned long long Time_t
boost::posix_time::ptime snapshotTime
std::pair< std::string, std::string > parseTag(const std::string &tag)
void load(const std::string >Name, const std::string &preFix="", const std::string &postFix="")
GTProxy::GTContainer tagList
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
std::shared_ptr< GTProxyData > m_data
boost::posix_time::ptime snapshotTime() const
std::string fullyQualifiedTag(const std::string &tag, const std::string &connectionString)
bool operator!=(const Iterator &rhs) const
std::vector< std::vector< double > > tmp
std::shared_ptr< SessionImpl > m_session
void throwException(const std::string &message, const std::string &methodName)