1 #ifndef CondCore_IOVService_IOVEditor_h
2 #define CondCore_IOVService_IOVEditor_h
35 bool outOfOrder,
size_t bulkSize = 1 );
39 void setUp(
cond::DbSession& sourceSess,
const std::string& sourceIovToken,
size_t bulkSize = 1 );
70 void load(
const std::string& token );
94 void bulkAppend( std::vector< std::pair<cond::Time_t, std::string > >&
values );
99 void stamp(std::string
const & icomment,
bool append=
false);
102 void editMetadata( std::string
const & metadata,
bool append=
false);
111 unsigned int truncate(
bool withPayload=
false);
117 size_t import(
cond::DbSession& sourceSess,
const std::string& sourceIovToken );
124 std::string
const &
token()
const;
140 boost::shared_ptr<cond::IOVProxyData>
m_iov;
std::string create(cond::TimeType timetype)
void debugInfo(std::ostream &co) const
void load(const std::string &token)
void reportError(std::string message) const
bool validTime(cond::Time_t time, cond::TimeType timetype) const
std::string const & token() const
void setScope(cond::IOVSequence::ScopeType scope)
set the scope
Container::const_iterator const_iterator
unsigned int freeInsert(cond::Time_t sinceTime, const std::string &payloadToken)
insert a payload with known since in any position
cond::IOVProxy m_sourceIov
IOVSequence::const_iterator m_cursor
IOVImportIterator(boost::shared_ptr< cond::IOVProxyData > &destIov)
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.
bool createIOVContainerIfNecessary()
size_t importMoreElements()
IOVSequence::const_iterator m_till
void updateClosure(cond::Time_t newtillTime)
Update the closure of the iov sequence.
unsigned int append(cond::Time_t sinceTime, const std::string &payloadToken)
virtual ~IOVImportIterator()
void bulkAppend(std::vector< std::pair< cond::Time_t, std::string > > &values)
Bulk append of iov chunck.
void stamp(std::string const &icomment, bool append=false)
void deleteEntries(bool withPayload=false)
IOVEditor(cond::DbSession &dbSess)
boost::shared_ptr< IOVImportIterator > importIterator()
void setUp(cond::IOVProxy &sourceIov, cond::Time_t since, cond::Time_t till, bool outOfOrder, size_t bulkSize=1)
boost::shared_ptr< cond::IOVProxyData > m_destIov
boost::shared_ptr< cond::IOVProxyData > m_iov
void editMetadata(std::string const &metadata, bool append=false)
edit metadata