HIBF 1.0.0-rc.1
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
5#pragma once
6
7#include <cstddef> // for size_t
8#include <cstdint> // for uint8_t
9
16#define HIBF_VERSION_MAJOR 1
18#define HIBF_VERSION_MINOR 0
20#define HIBF_VERSION_PATCH 0
22#define HIBF_RELEASE_CANDIDATE 1
23
25#define HIBF_VERSION (HIBF_VERSION_MAJOR * 10000 + HIBF_VERSION_MINOR * 100 + HIBF_VERSION_PATCH)
26
30#define HIBF_VERSION_CSTRING_HELPER_STR(str) #str
31
33#define HIBF_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH) \
34 HIBF_VERSION_CSTRING_HELPER_STR(MAJOR) \
35 "." HIBF_VERSION_CSTRING_HELPER_STR(MINOR) "." HIBF_VERSION_CSTRING_HELPER_STR(PATCH)
36
37#if (HIBF_RELEASE_CANDIDATE > 0)
39# define HIBF_RELEASE_CANDIDATE_HELPER(RC) "-rc." HIBF_VERSION_CSTRING_HELPER_STR(RC)
40#else
42# define HIBF_RELEASE_CANDIDATE_HELPER(RC) ""
43#endif
44
46#define HIBF_VERSION_CSTRING \
47 HIBF_VERSION_CSTRING_HELPER_FUNC(HIBF_VERSION_MAJOR, HIBF_VERSION_MINOR, HIBF_VERSION_PATCH) \
48 HIBF_RELEASE_CANDIDATE_HELPER(HIBF_RELEASE_CANDIDATE)
49
50namespace seqan::hibf
51{
52
59
62
65
66} // namespace seqan::hibf
67
68#undef HIBF_VERSION_CSTRING_HELPER_STR
69#undef HIBF_VERSION_CSTRING_HELPER_FUNC
70#undef HIBF_RELEASE_CANDIDATE_HELPER
constexpr uint8_t hibf_version_patch
The patch version.
Definition version.hpp:58
constexpr uint8_t hibf_version_major
The major version.
Definition version.hpp:54
#define HIBF_VERSION
The full version as MACRO (number).
Definition version.hpp:25
constexpr char const * hibf_version_cstring
The full version as null terminated string.
Definition version.hpp:64
constexpr std::size_t hibf_version
The full version as std::size_t.
Definition version.hpp:61
constexpr uint8_t hibf_version_minor
The minor version.
Definition version.hpp:56
#define HIBF_VERSION_CSTRING
The full version as null terminated string.
Definition version.hpp:46
#define HIBF_VERSION_MINOR
The minor version as MACRO.
Definition version.hpp:18
#define HIBF_VERSION_PATCH
The patch version as MACRO.
Definition version.hpp:20
#define HIBF_VERSION_MAJOR
The major version as MACRO.
Definition version.hpp:16