|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
Saves the regions of a transaction plan out of one array. More...
#include <vitrio/image_saver.hpp>

Public Member Functions | |
| image_saver (const image_saver &other)=delete | |
| image_saver (image_saver &&other)=delete | |
| image_saver & | operator= (const image_saver &other)=delete |
| image_saver & | operator= (image_saver &&other)=delete |
| virtual std::shared_ptr< completion > | save (const_array source, const image_transaction_plan &plan, std::shared_ptr< const image_transfer_sanitizer > sanitizer) const =0 |
| Save every region a transaction plan names. | |
Saves the regions of a transaction plan out of one array.
Every region a plan names is written out of the array and into its file. The writes may still be under way when save returns; the completion it returns says when they are done and reports what failed.
|
pure virtual |
Save every region a transaction plan names.
May return before the writes are done. The completion returned is ready once every region has been written or has failed, and rethrows what the first failure threw.
The regions of each file are shown to sanitizer beside the extents of that file and of source, and what it answers is written in their place. What it refuses is reported through the completion.
| source | The values to save. |
| plan | The transaction to save. |
| sanitizer | What becomes of the regions that do not fit. |
| std::invalid_argument | If sanitizer is null. |
Implemented in vitrio::executor_image_saver.