vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
file_image_reader_provider.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6#include <vitrio/image_reader_provider.hpp>
7#include <vitrio/platform.hpp>
8
9#include <memory>
10#include <string>
11
12namespace vitrio
13{
14
17
33class VITRIO_API file_image_reader_provider final
34 : public image_reader_provider
35{
36public:
46 std::shared_ptr<const image_file_read_format_selector> formats,
47 std::shared_ptr<const file_transfer_pool> transfers
48 );
49
51
52 std::shared_ptr<const image_reader>
53 acquire(const std::string &key) override;
54
55private:
56 VITRIO_STD_MEMBER_INTERFACE
57 std::shared_ptr<const image_file_read_format_selector> m_formats;
58
59 VITRIO_STD_MEMBER_INTERFACE
60 std::shared_ptr<const file_transfer_pool> m_transfers;
61};
62
63} // namespace vitrio
std::shared_ptr< const image_reader > acquire(const std::string &key) override
Get the reader a key names.
file_image_reader_provider(std::shared_ptr< const image_file_read_format_selector > formats, std::shared_ptr< const file_transfer_pool > transfers)
Construct a provider opening through a format selector.
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
Holds the image formats that can be read, selects the most suitable of them for a file,...
Definition image_file_read_format_selector.hpp:34