vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_writer.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6#include <vitrio/image_transfer_plan.hpp>
7
8namespace vitrio
9{
10
11class const_array_ref;
12
13class image_descriptor;
14
26{
27public:
28 image_writer() noexcept;
29 image_writer(const image_writer &other) = delete;
31 virtual ~image_writer();
32
33 image_writer& operator=(const image_writer &other) = delete;
34 image_writer& operator=(image_writer &&other) = delete;
35
48
85 virtual void write(
88 ) = 0;
89
101 virtual void flush() = 0;
102};
103
104} // namespace vitrio
A read-only reference to a multidimensional array that does not keep it alive.
Definition const_array_ref.hpp:29
The shape and data type of the values an image file holds.
Definition image_descriptor.hpp:28
The regions to transfer between one file and one array.
Definition image_transfer_plan.hpp:34
Abstract writable view of one image file.
Definition image_writer.hpp:26
virtual const image_descriptor & get_descriptor() const noexcept=0
Get the shape and data type of the file.
A view of a contiguous sequence of elements.
Definition span.hpp:29