1 #ifndef CondCore_IOVService_IOVEditor_h
2 #define CondCore_IOVService_IOVEditor_h
33 const std::string&
token);
50 const std::string& payloadToken
55 const std::string& payloadToken
61 const std::string& payloadToken
65 void bulkAppend( std::vector< std::pair<cond::Time_t,std::string> >&
values );
70 void stamp(std::string
const & icomment,
bool append=
false);
75 unsigned int truncate(
bool withPayload=
false);
79 void import(
const std::string& sourceIOVtoken );
105 boost::shared_ptr<cond::IOVSequence>
m_iov;
void debugInfo(std::ostream &co) const
void reportError(std::string message) const
bool validTime(cond::Time_t time, cond::TimeType timetype) const
unsigned int freeInsert(cond::Time_t sinceTime, const std::string &payloadToken)
insert a payload with known since in any position
void create(cond::TimeType timetype)
unsigned int truncate(bool withPayload=false)
unsigned long long Time_t
TimeType timetype() const
unsigned int insert(cond::Time_t tillTime, const std::string &payloadToken)
Assign a payload with till time. Returns the payload index in the iov sequence.
void updateClosure(cond::Time_t newtillTime)
Update the closure of the iov sequence.
unsigned int append(cond::Time_t sinceTime, const std::string &payloadToken)
Append a payload with known since time. The previous last payload's till time will be adjusted to the...
void bulkAppend(std::vector< std::pair< cond::Time_t, std::string > > &values)
Bulk append of iov chunck.
boost::shared_ptr< cond::IOVSequence > m_iov
void stamp(std::string const &icomment, bool append=false)
std::string const & token() const
Returns the token of the iov sequence associated with this editor.
void deleteEntries(bool withPayload=false)
IOVEditor(cond::DbSession &dbSess)
Time_t firstSince() const