vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_saver.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
9namespace vitrio
10{
11
12class completion;
13class const_array;
14
17
30class VITRIO_API image_saver
31{
32public:
33 image_saver() noexcept;
34 image_saver(const image_saver &other) = delete;
35 image_saver(image_saver &&other) = delete;
36 virtual ~image_saver();
37
38 image_saver& operator=(const image_saver &other) = delete;
39 image_saver& operator=(image_saver &&other) = delete;
40
58 virtual std::shared_ptr<completion> save(
59 const_array source,
60 const image_transaction_plan &plan,
61 std::shared_ptr<const image_transfer_sanitizer> sanitizer
62 ) const = 0;
63};
64
65} // namespace vitrio
A query-only view of whether one or more units of work have finished.
Definition completion.hpp:18
A multidimensional array of numbers that cannot be written through.
Definition const_array.hpp:29
virtual std::shared_ptr< completion > save(const_array source, const image_transaction_plan &plan, std::shared_ptr< const image_transfer_sanitizer > sanitizer) const =0
Save every region a transaction plan names.
List of regions to transfer between many files and one array.
Definition image_transaction_plan.hpp:33
Decides what becomes of the regions of a plan that do not fit the file or the array they join.
Definition image_transfer_sanitizer.hpp:30