1 #ifndef CondCore_CondDB_RunInfoProxy_h 2 #define CondCore_CondDB_RunInfoProxy_h 20 namespace persistency {
23 class RunInfoProxyData;
28 typedef std::vector<std::tuple<Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >
RunInfoData;
32 class Iterator :
public std::iterator<std::input_iterator_tag, cond::RunInfo_t> {
36 explicit Iterator(RunInfoData::const_iterator current);
61 explicit RunInfoProxy(
const std::shared_ptr<SessionImpl>& session);
73 void load(
const boost::posix_time::ptime&
low,
const boost::posix_time::ptime&
up);
103 std::shared_ptr<RunInfoProxyData>
m_data;
void load(Time_t low, Time_t up)
std::shared_ptr< SessionImpl > m_session
RunInfoData::const_iterator m_current
cond::RunInfo_t operator*()
unsigned long long Time_t
Iterator find(Time_t target) const
RunInfoProxy & operator=(const RunInfoProxy &rhs)
bool operator!=(const Iterator &rhs) const
bool operator==(const Iterator &rhs) const
Iterator & operator=(const Iterator &rhs)
void checkTransaction(const std::string &ctx)
std::shared_ptr< RunInfoProxyData > m_data
std::vector< std::tuple< Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > RunInfoData