Bases: icat.dumpfile.DumpFileReader
Backend for icatingest.py to read a XML data file.
Iterate over the chunks in the data file.
Iterate over the objects in a data chunk.
Yield a new entity object in each iteration. The object is initialized from the data, but not yet created at the client.
Bases: icat.dumpfile.DumpFileWriter
Backend for icatdump.py to write a XML data file.
Write a header with some meta information to the data file.
Start a new data chunk.
If the current chunk contains any data, write it to the data file.
Add an entity object to the current data chunk.
Finalize the data file.