6 namespace persistency {
87 if( !
m_data.get() )
return;
95 m_session->runInfoSchema().runInfoTable().getInclusiveRunRange( low, up,
m_data->runList );
96 std::cout <<
"Min="<<std::get<0>(
m_data->runList.front())<<
" max="<<std::get<0>(
m_data->runList.back())<<std::endl;
100 if( !
m_data.get() )
return;
105 checkTransaction(
"RunInfoProxy::load(const boost::posix_time::ptime&,const boost::posix_time::ptime&)" );
108 m_session->runInfoSchema().runInfoTable().getInclusiveTimeRange( low, up,
m_data->runList );
139 bool operator()(
const std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime>& x,
const cond::Time_t& y ){
return ( y > std::get<0>(x) ); }
146 bool operator()(
const std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime>& x,
const boost::posix_time::ptime& y ){
return ( y > std::get<2>(x) ); }
170 if( it ==
end() )
throwException(
"The target run has not been found in the selected run range.",
"RunInfoProxy::get(Time_t)" );
177 if( it ==
Iterator() )
throwException(
"No data has been found.",
"RunInfoProxy::get(const boost::posix_time::ptime&)" );
178 if( it ==
end() )
throwException(
"The target time has not been found in the selected time range.",
"RunInfoProxy::get(const boost::posix_time::ptime&)" );
bool operator()(const std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > &x, const boost::posix_time::ptime &y)
void load(Time_t low, Time_t up)
bool operator()(const std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > &x, const cond::Time_t &y)
std::shared_ptr< SessionImpl > m_session
RunInfoProxy::RunInfoData runList
RunInfoData::const_iterator m_current
cond::RunInfo_t operator*()
unsigned long long Time_t
bool operator==(const Iterator &rhs) const
std::vector< std::tuple< Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > RunInfoData
RunInfoProxy & operator=(const RunInfoProxy &rhs)
cond::RunInfo_t get(Time_t target) const
bool operator!=(const Iterator &rhs) const
Iterator find(Time_t target) const
Iterator & operator=(const Iterator &rhs)
std::vector< std::vector< double > > tmp
void checkTransaction(const std::string &ctx)
void throwException(const std::string &message, const std::string &methodName)
std::shared_ptr< RunInfoProxyData > m_data