vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
detector_event_timeline_file_read_format_selector.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/detector_event_timeline_reader.hpp>
6#include <vitrio/export.hpp>
7#include <vitrio/platform.hpp>
8
9#include <memory>
10#include <string>
11
12namespace vitrio
13{
14
15class detector_event_timeline_file_read_format;
16class image_file_probe;
17
32{
33public:
40 ) = delete;
43 ) = delete;
45
48 ) = delete;
51 ) = delete;
52
61 static const
62 std::shared_ptr<detector_event_timeline_file_read_format_selector>&
64
69
78 std::unique_ptr<detector_event_timeline_file_read_format> format
79 );
80
98 std::shared_ptr<detector_event_timeline_reader>
99 open(const std::string &path) const;
100
110
111private:
112 class implementation;
113 VITRIO_STD_MEMBER_INTERFACE
114 std::unique_ptr<implementation> m_implementation;
115};
116
117} // namespace vitrio
Holds the file formats of detector events that can be read, selects the most suitable of them for a f...
Definition detector_event_timeline_file_read_format_selector.hpp:32
std::shared_ptr< detector_event_timeline_reader > open(const std::string &path) const
Open a file for reading with the most suitable format.
void register_builtin_formats()
Register the formats bundled with the library.
const detector_event_timeline_file_read_format * get_most_suitable_format(const image_file_probe &probe) const
Get the format that would open a file, without opening it.
static const std::shared_ptr< detector_event_timeline_file_read_format_selector > & get_shared()
Get the selector every use may share.
bool register_format(std::unique_ptr< detector_event_timeline_file_read_format > format)
Register a new format.
detector_event_timeline_file_read_format_selector()
Construct a selector with no formats.
The ability of one file format of detector events to be read.
Definition detector_event_timeline_file_read_format.hpp:26
Inmutable brief representation of a file.
Definition image_file_probe.hpp:28