6 namespace persistency {
76 if (!
m_session->runInfoSchema().runInfoTable().getInclusiveRunRange(low, up,
m_data->runList)) {
78 "RunInfoProxy::load(Time_t,Time_t)");
89 checkTransaction(
"RunInfoProxy::load(const boost::posix_time::ptime&,const boost::posix_time::ptime&)");
92 if (!
m_session->runInfoSchema().runInfoTable().getInclusiveTimeRange(low, up,
m_data->runList)) {
93 throwException(
"No runs have been found in the interval (" + boost::posix_time::to_simple_string(low) +
"," +
94 boost::posix_time::to_simple_string(up) +
")",
95 "RunInfoProxy::load(boost::posix_time::ptime&,const boost::posix_time::ptime&)");
108 if (!
m_session->isTransactionActive(
false))
128 bool operator()(
const std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime>& x,
130 return (y > std::get<0>(x));
136 bool operator()(
const std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime>& x,
137 const boost::posix_time::ptime& y) {
138 return (y > std::get<2>(x));
162 throwException(
"No data has been found.",
"RunInfoProxy::get(Time_t)");
164 throwException(
"The target run has not been found in the selected run range.",
"RunInfoProxy::get(Time_t)");
172 throwException(
"No data has been found.",
"RunInfoProxy::get(const boost::posix_time::ptime&)");
174 throwException(
"The target time has not been found in the selected time range.",
175 "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::string to_string(const V &value)
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
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
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)
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
void checkTransaction(const std::string &ctx)
void throwException(const std::string &message, const std::string &methodName)
std::shared_ptr< RunInfoProxyData > m_data
std::vector< std::tuple< Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > RunInfoData