1 #ifndef CondCore_CondDB_IOVProxy_h 2 #define CondCore_CondDB_IOVProxy_h 18 #include <boost/date_time/posix_time/posix_time.hpp> 22 namespace persistency {
30 typedef std::vector<std::tuple<cond::Time_t, cond::Hash> >
IOVContainer;
32 class Iterator :
public std::iterator<std::input_iterator_tag, cond::Iov_t> {
36 Iterator(IOVContainer::const_iterator current,
37 IOVContainer::const_iterator
end,
59 IOVContainer::const_iterator
m_end;
92 const boost::posix_time::ptime& snapshottime);
112 std::tuple<std::string, boost::posix_time::ptime, boost::posix_time::ptime>
getMetadata()
const;
148 std::pair<cond::Time_t, cond::Time_t>
loadedGroup()
const;
151 const std::shared_ptr<SessionImpl>&
session()
const;
void fetchSequence(cond::Time_t lowerGroup, cond::Time_t higherGroup)
void checkTransaction(const std::string &ctx) const
cond::Time_t m_endOfValidity
cond::SynchronizationType synchronizationType() const
std::shared_ptr< SessionImpl > m_session
void load(const std::string &tag, bool full=false)
std::pair< cond::Time_t, cond::Time_t > loadedGroup() const
std::string payloadObjectType() const
bool operator!=(const Iterator &rhs) const
Iterator & operator=(const Iterator &rhs)
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > getMetadata() const
cond::TimeType timeType() const
unsigned long long Time_t
IOVContainer::const_iterator m_current
Iterator find(cond::Time_t time)
cond::Iov_t getInterval(cond::Time_t time)
IOVContainer::const_iterator m_end
cond::Time_t endOfValidity() const
cond::TimeType m_timeType
void loadRange(const std::string &tag, const cond::Time_t &begin, const cond::Time_t &end)
cond::Time_t lastValidatedTime() const
std::shared_ptr< IOVProxyData > m_data
bool operator==(const Iterator &rhs) const
std::vector< std::tuple< cond::Time_t, cond::Hash > > IOVContainer
size_t numberOfQueries() const
const std::shared_ptr< SessionImpl > & session() const