vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_writer_provider.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6
7#include <memory>
8#include <string>
9
10namespace vitrio
11{
12
13class image_writer;
14
25{
26public:
27 image_writer_provider() noexcept;
30 virtual ~image_writer_provider();
31
33 operator=(const image_writer_provider &other) = delete;
35 operator=(image_writer_provider &&other) = delete;
36
51 virtual std::shared_ptr<image_writer>
52 acquire(const std::string &key) = 0;
53};
54
55} // namespace vitrio
Interface to serve image_writer given a key.
Definition image_writer_provider.hpp:25
virtual std::shared_ptr< image_writer > acquire(const std::string &key)=0
Get the writer a key names.
A view of a contiguous sequence of elements.
Definition span.hpp:29