vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_file_write_format.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6#include <vitrio/image_file_format_suitability.hpp>
7#include <vitrio/image_writer.hpp>
8
9#include <memory>
10#include <string>
11
12namespace vitrio
13{
14
17class image_metadata;
19
28class VITRIO_API image_file_write_format
29{
30public:
31 image_file_write_format() noexcept;
32 image_file_write_format(const image_file_write_format &other) = delete;
33 image_file_write_format(image_file_write_format &&other) = delete;
34 virtual ~image_file_write_format();
35
36 image_file_write_format&
37 operator=(const image_file_write_format &other) = delete;
38 image_file_write_format&
39 operator=(image_file_write_format &&other) = delete;
40
46 virtual std::string get_name() const = 0;
47
60 virtual image_file_format_suitability
61 get_suitability(const image_file_probe &probe) const = 0;
62
86 virtual std::shared_ptr<image_writer> open(
87 const image_file_probe &probe,
88 const image_descriptor &descriptor,
89 const image_metadata &metadata,
90 const file_transfer_pool &transfers
91 ) const = 0;
92};
93
94} // namespace vitrio
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
Inmutable brief representation of a file.
Definition image_file_probe.hpp:33
virtual std::string get_name() const =0
Get the name of this format.
virtual std::shared_ptr< image_writer > open(const image_file_probe &probe, const image_descriptor &descriptor, const image_metadata &metadata, const file_transfer_pool &transfers) const =0
Create a file and open it for writing.
virtual image_file_format_suitability get_suitability(const image_file_probe &probe) const =0
Report how well this format fits a file.
What an image file states beyond its shape and data type, such as the distance between its samples.
Definition image_metadata.hpp:35