vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_file_read_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_metadata.hpp>
8#include <vitrio/image_reader.hpp>
9
10#include <memory>
11#include <string>
12
13namespace vitrio
14{
15
18
28class VITRIO_API image_file_read_format
29{
30public:
31 image_file_read_format() noexcept;
32 image_file_read_format(const image_file_read_format &other) = delete;
33 image_file_read_format(image_file_read_format &&other) = delete;
34 virtual ~image_file_read_format();
35
36 image_file_read_format&
37 operator=(const image_file_read_format &other) = delete;
38 image_file_read_format& operator=(image_file_read_format &&other) = delete;
39
45 virtual std::string get_name() const = 0;
46
64 virtual image_file_format_suitability
65 get_suitability(const image_file_probe &probe) const = 0;
66
79 virtual std::shared_ptr<image_reader> open(
80 const image_file_probe &probe,
81 const file_transfer_pool &transfers
82 ) const = 0;
83
104 virtual image_metadata
105 read_metadata(const image_file_probe &probe) const = 0;
106};
107
108} // 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
Inmutable brief representation of a file.
Definition image_file_probe.hpp:33
virtual std::shared_ptr< image_reader > open(const image_file_probe &probe, const file_transfer_pool &transfers) const =0
Open a file for reading.
virtual image_file_format_suitability get_suitability(const image_file_probe &probe) const =0
Report how well this format fits a file.
virtual image_metadata read_metadata(const image_file_probe &probe) const =0
Read what a file states beyond its shape and data type.
virtual std::string get_name() const =0
Get the name of this format.
What an image file states beyond its shape and data type, such as the distance between its samples.
Definition image_metadata.hpp:35