1 #ifndef PopConSourceHandler_H
2 #define PopConSourceHandler_H
11 #include <boost/bind.hpp>
78 T
const *
ptr()
const {
94 boost::shared_ptr<T>
m_d;
126 const_cast<self*
>(
this)->
initialize(session, tagInfo, logDBEntry);
144 virtual std::string
id()
const=0;
148 boost::bind(std::less<cond::Time_t>(),
T const & operator*() const
std::string m_userTextLog
std::string const & userTextLog() const
edm::Ref< Container > Ref
virtual void getNewObjects()=0
DbTransaction & transaction()
Ref & operator=(const Ref &ref)
int commit()
commit transaction.
cond::DbSession m_dbsession
Container::value_type value_type
std::vector< Triplet > Container
OldContainer m_to_transfer
cond::TagInfo const & tagInfo() const
cond::LogDBEntry const * m_logDBEntry
virtual ~PopConSourceHandler()
U second(std::pair< T, U > const &p)
cond::LogDBEntry const & logDBEntry() const
int start(bool readOnly=false)
start transaction
unsigned long long Time_t
cond::DbSession m_session
cond::TagInfo const * m_tagInfo
std::pair< Container const *, std::string const > operator()(cond::DbSession session, cond::TagInfo const &tagInfo, cond::LogDBEntry const &logDBEntry) const
Summary * dummySummary(typename OldContainer::value_type const &) const
Container const & returnData()
Ref(cond::DbSession &dbsession, std::string token)
T const * operator->() const
virtual std::string id() const =0
boost::shared_ptr< T > m_d
boost::shared_ptr< T > getTypedObject(const std::string &objectId)
std::vector< std::pair< T *, cond::Time_t > > OldContainer
int add(value_type *payload, Summary *summary, Time_t time)
void initialize(cond::DbSession dbSession, cond::TagInfo const &tagInfo, cond::LogDBEntry const &logDBEntry)