h5cpp
0.5.0
A modern C++ wrapper for the HDF5 C library
version.hpp
Go to the documentation of this file.
1
//
2
// (c) Copyright 2018 DESY,ESS
3
//
4
// This file is part of h5cpp.
5
//
6
// This library is free software; you can redistribute it and/or modify it
7
// under the terms of the GNU Lesser General Public License as published
8
// by the Free Software Foundation; either version 2.1 of the License, or
9
// (at your option) any later version.
10
//
11
// This library is distributed in the hope that it will be useful, but
12
// WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY
13
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14
// License for more details.
15
//
16
// You should have received a copy of the GNU Lesser General Public License
17
// along with this library; if not, write to the
18
// Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
19
// Boston, MA 02110-1301 USA
20
// ===========================================================================
21
//
22
// Author: Eugen Wintersberger <eugen.wintersberger@desy.de>
23
// Created on: Feb 7, 2018
24
//
25
#pragma once
26
27
#include <string>
28
#include <iostream>
29
#include <
h5cpp/core/windows.hpp
>
30
31
namespace
hdf5
{
32
38
class
DLL_EXPORT
Version
39
{
40
public
:
44
using
NumberType
=
unsigned
long;
45
private
:
46
NumberType
major_;
47
NumberType
minor_;
48
NumberType
patch_;
49
public
:
55
Version
() noexcept;
56
63
Version
(
NumberType
major_number,
NumberType
minor_number,
NumberType
patch) noexcept;
64
68
NumberType
major_number() const noexcept;
69
73
NumberType
minor_number() const noexcept;
74
78
NumberType
patch_number() const noexcept;
79
87
static std::
string
to_string(const
Version
&version);
88
};
89
101
DLL_EXPORT
std::ostream &operator<<(std::ostream &stream,const
Version
&version);
102
112
DLL_EXPORT
bool
operator==(const
Version
&lhs,const
Version
&rhs);
113
121
DLL_EXPORT
bool
operator!=(const
Version
&lhs,const
Version
&rhs);
122
129
DLL_EXPORT
bool
operator<=(const
Version
&lhs,const
Version
&rhs);
130
137
DLL_EXPORT
bool
operator<(const
Version
&lhs,const
Version
&rhs);
138
145
DLL_EXPORT
bool
operator>=(const
Version
&lhs,const
Version
&rhs);
146
153
DLL_EXPORT
bool
operator>(const
Version
&lhs,const
Version
&rhs);
154
160
DLL_EXPORT
Version
current_library_version
();
161
162
}
// namespace hdf5
hdf5::current_library_version
Version current_library_version()
returns the current version of the HDF5 library
windows.hpp
hdf5::Version
a 3 number version class
Definition:
version.hpp:38
hdf5::Version::NumberType
unsigned long NumberType
the number type used to represent version numbers
Definition:
version.hpp:44
DLL_EXPORT
#define DLL_EXPORT
Definition:
windows.hpp:29
hdf5
top-level namespace of the entire library
Definition:
attribute.hpp:45
h5cpp
src
h5cpp
core
version.hpp
Generated on Mon May 2 2022 08:20:20 for h5cpp by
1.8.17