|
h5cpp
0.3.3
A modern C++ wrapper for the HDF5 C library
|
a 3 number version class More...
#include <version.hpp>
Public Types | |
| using | NumberType = unsigned long |
| the number type used to represent version numbers More... | |
Public Member Functions | |
| Version () noexcept | |
| default constructor More... | |
| Version (NumberType major_number, NumberType minor_number, NumberType patch) noexcept | |
| constructor More... | |
| Version (const Version &)=default | |
| copy constructor More... | |
| NumberType | major_number () const noexcept |
| return the major version number More... | |
| NumberType | minor_number () const noexcept |
| return the minor version number More... | |
| NumberType | patch_number () const noexcept |
| return the patch version number More... | |
Static Public Member Functions | |
| static std::string | to_string (const Version &version) |
| convert a Version to a string More... | |
Related Functions | |
(Note that these are not member functions.) | |
| DLL_EXPORT std::ostream & | operator<< (std::ostream &stream, const Version &version) |
| output stream operator More... | |
| DLL_EXPORT bool | operator== (const Version &lhs, const Version &rhs) |
| checks two version for equality More... | |
| DLL_EXPORT bool | operator!= (const Version &lhs, const Version &rhs) |
| checks if two versions are not equal More... | |
| DLL_EXPORT bool | operator< (const Version &lhs, const Version &rhs) |
| checks if the left version is strictly small than the right More... | |
| DLL_EXPORT bool | operator>= (const Version &lhs, const Version &rhs) |
| checks if the left version is bigger or equal than the right More... | |
| DLL_EXPORT bool | operator> (const Version &lhs, const Version &rhs) |
| checks if the left version is strictly bigger than the right More... | |
| DLL_EXPORT Version | current_library_version () |
| returns the current version of the HDF5 library More... | |
Describes a version number.
| using hdf5::Version::NumberType = unsigned long |
|
noexcept |
Set all three version numbers to 0
|
noexcept |
| major | the major version number |
| minor | the minor version number |
| patch | the patch version number |
|
default |
We can use the compiler provided default implementation here as all members are trivially copyable.
|
noexcept |
|
noexcept |
|
noexcept |
|
static |
The result is a string with the format MAJOR.MINOR.PATCH.
| version | reference to a instance of Version |
|
related |
| std::runtime_error | in case of a failure |
|
related |
| lhs | reference to the left hand side version |
| rhs | reference to the right hand side version |
|
related |
| lhs | reference to the left hand side version |
| rhs | reference to the right hand side version |
|
related |
Writes an instance of Version to a std::ostream. The output format is the same as for Version::to_string.
| stream | the stream where to write the version |
| version | reference to the Version to write |
|
related |
Two version are considered equal if all of their parts are equal.
| lhs | reference to the left hand side version |
| rhs | reference to the right hand side version |
|
related |
| lhs | reference to the left hand side version |
| rhs | reference to the right hand side version |
|
related |
| lhs | reference to the left hand side version |
| rhs | reference to the right hand side version |
1.8.13