5#include <vitrio/export.hpp>
6#include <vitrio/image_writer.hpp>
21class VITRIO_API synchronous_image_writer
25 synchronous_image_writer()
noexcept;
26 ~synchronous_image_writer()
override;
36 std::shared_ptr<completion_notifier> done
44 void flush_async(std::shared_ptr<completion_notifier> done)
final;
A read-only reference to a multidimensional array that does not keep it alive.
Definition const_array_ref.hpp:29
A multidimensional array of numbers that cannot be written through.
Definition const_array.hpp:29
The regions to transfer between one file and one array.
Definition image_transfer_plan.hpp:34
virtual void write(const_array_ref source, const image_transfer_plan ®ions)=0
Write a set of hyperrectangles of the file from one array, all before returning.
void write_async(const_array source, image_transfer_plan regions, std::shared_ptr< completion_notifier > done) final
Start writing a set of hyperrectangles of the file from one array.
void flush_async(std::shared_ptr< completion_notifier > done) final
Start making what has been written reach the storage.
virtual void flush()=0
Make what has been written reach the storage, before returning.