1 #ifndef CondCore_CondDB_IOVEditor_h
2 #define CondCore_CondDB_IOVEditor_h
18 #include <boost/date_time/posix_time/posix_time.hpp>
22 namespace persistency {
35 IOVEditor(
const std::shared_ptr<SessionImpl>& session,
40 const boost::posix_time::ptime&
creationTime = boost::posix_time::microsec_clock::universal_time());
77 const boost::posix_time::ptime& insertionTime,
85 bool flush(
const boost::posix_time::ptime& operationTime);
94 bool flush(
const std::string& logText,
const boost::posix_time::ptime& operationTime,
bool forceInsertion);
98 std::shared_ptr<IOVEditorData>
m_data;
void checkTransaction(const std::string &ctx)
void load(const std::string &tag)
void setDescription(const std::string &description)
void setLastValidatedTime(cond::Time_t time)
std::shared_ptr< SessionImpl > m_session
std::string description() const
unsigned long long Time_t
IOVEditor & operator=(const IOVEditor &rhs)
cond::SynchronizationType synchronizationType() const
void erase(cond::Time_t since, const cond::Hash &payloadHash)
cond::Time_t endOfValidity() const
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
std::shared_ptr< IOVEditorData > m_data
cond::TimeType timeType() const
cond::Time_t lastValidatedTime() const
void setEndOfValidity(cond::Time_t validity)
void setSynchronizationType(cond::SynchronizationType synchronizationType)
std::string payloadType() const