vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_file_format_suitability.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <limits>
6#include <ostream>
7
8namespace vitrio
9{
10
17enum class image_file_format_suitability
18{
20 unsupported = std::numeric_limits<int>::min(),
22 fallback = -1024,
24 normal = 0,
26 optimal = 1024,
27};
28
29constexpr bool operator<(
30 image_file_format_suitability lhs,
31 image_file_format_suitability rhs
32) noexcept;
33
34constexpr bool operator<=(
35 image_file_format_suitability lhs,
36 image_file_format_suitability rhs
37) noexcept;
38
39constexpr bool operator>(
40 image_file_format_suitability lhs,
41 image_file_format_suitability rhs
42) noexcept;
43
44constexpr bool operator>=(
45 image_file_format_suitability lhs,
46 image_file_format_suitability rhs
47) noexcept;
48
56constexpr const char*
57to_string(image_file_format_suitability suitability) noexcept;
58
68template <typename T>
69std::basic_ostream<T>& operator<<(
70 std::basic_ostream<T> &os,
71 image_file_format_suitability suitability
72);
73
74} // namespace vitrio
75
76#include "image_file_format_suitability.inl"