5#include <vitrio/export.hpp>
6#include <vitrio/image_writer_provider.hpp>
7#include <vitrio/platform.hpp>
16class image_descriptor;
18class image_file_write_format_selector;
60 std::shared_ptr<const image_file_write_format_selector> formats
128 std::shared_ptr<
image_writer> acquire(const std::
string &key) override;
131 class implementation;
132 VITRIO_STD_MEMBER_INTERFACE
133 std::unique_ptr<implementation> m_implementation;
A provider that writes files. Its files are explicitly declared and closed by the client.
Definition file_image_writer_provider.hpp:51
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.
file_image_writer_provider(std::shared_ptr< const image_file_write_format_selector > formats)
Construct a provider creating files through a format selector.
std::size_t get_file_count() const noexcept
Get how many files are declared.
void close(const std::string &key)
Finish a file.
The shape and data type of the values an image file holds.
Definition image_descriptor.hpp:28
Interface to serve image_writer given a key.
Definition image_writer_provider.hpp:25
Abstract writable view of one image file.
Definition image_writer.hpp:26