5#include <vitrio/export.hpp>
6#include <vitrio/image_writer_provider.hpp>
7#include <vitrio/platform.hpp>
52 :
public image_writer_provider
64 std::shared_ptr<const image_file_write_format_selector> formats,
65 std::shared_ptr<const file_transfer_pool> transfers
130 const std::string &key,
131 std::shared_ptr<completion_notifier> done
160 class implementation;
161 VITRIO_STD_MEMBER_INTERFACE
162 std::unique_ptr<implementation> m_implementation;
Where a finished unit of work is reported.
Definition completion_notifier.hpp:20
void flush()
Make everything written to the files reach the storage.
void declare(std::string key, image_descriptor descriptor, const image_metadata &metadata)
Make a file writable.
std::size_t get_file_count() const noexcept
Get how many files are declared.
file_image_writer_provider(std::shared_ptr< const image_file_write_format_selector > formats, std::shared_ptr< const file_transfer_pool > transfers)
Construct a provider creating files through a format selector.
std::shared_ptr< image_writer > acquire(const std::string &key) override
Get the writer a key names.
void close(const std::string &key)
Finish a file.
void close_async(const std::string &key, std::shared_ptr< completion_notifier > done)
Start finishing a file, and report once it is finished.
Threads that carry out the reads and writes of files, each many at once, and hand the computations th...
Definition file_transfer_pool.hpp:30
The shape and data type of the values an image file holds.
Definition image_descriptor.hpp:28
Abstract writable view of one image file.
Definition image_writer.hpp:28