Raptor 3.0.0
A fast and space-efficient pre-filter for querying very large collections of nucleotide sequences
version.hpp
Go to the documentation of this file.
1// --------------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/raptor/blob/main/LICENSE.md
6// --------------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <cstdint>
16
18#define RAPTOR_VERSION_MAJOR 3
20#define RAPTOR_VERSION_MINOR 0
22#define RAPTOR_VERSION_PATCH 0
24#define RAPTOR_RELEASE_CANDIDATE 0
25
27#define RAPTOR_VERSION (RAPTOR_VERSION_MAJOR * 10000 + RAPTOR_VERSION_MINOR * 100 + RAPTOR_VERSION_PATCH)
28
32#define RAPTOR_VERSION_CSTRING_HELPER_STR(str) #str
33
35#define RAPTOR_VERSION_CSTRING_HELPER_FUNC(MAJOR, MINOR, PATCH) \
36 RAPTOR_VERSION_CSTRING_HELPER_STR(MAJOR) \
37 "." RAPTOR_VERSION_CSTRING_HELPER_STR(MINOR) "." RAPTOR_VERSION_CSTRING_HELPER_STR(PATCH)
38
39#if (RAPTOR_RELEASE_CANDIDATE > 0)
41# define RAPTOR_RELEASE_CANDIDATE_HELPER(RC) "-rc." RAPTOR_VERSION_CSTRING_HELPER_STR(RC)
42#else
44# define RAPTOR_RELEASE_CANDIDATE_HELPER(RC) ""
45#endif
46
48#define RAPTOR_VERSION_CSTRING \
49 RAPTOR_VERSION_CSTRING_HELPER_FUNC(RAPTOR_VERSION_MAJOR, RAPTOR_VERSION_MINOR, RAPTOR_VERSION_PATCH) \
50 RAPTOR_RELEASE_CANDIDATE_HELPER(RAPTOR_RELEASE_CANDIDATE)
51
52namespace raptor
53{
54
61
64
67
68} // namespace raptor
69
70#undef RAPTOR_VERSION_CSTRING_HELPER_STR
71#undef RAPTOR_VERSION_CSTRING_HELPER_FUNC
72#undef RAPTOR_RELEASE_CANDIDATE_HELPER
constexpr char const * raptor_version_cstring
The full version as null terminated string.
Definition: version.hpp:66
#define RAPTOR_VERSION_CSTRING
The full version as null terminated string.
Definition: version.hpp:48
#define RAPTOR_VERSION_MINOR
The minor version as MACRO.
Definition: version.hpp:20
constexpr uint8_t raptor_version_patch
The patch version.
Definition: version.hpp:60
#define RAPTOR_VERSION
The full version as MACRO (number).
Definition: version.hpp:27
#define RAPTOR_VERSION_MAJOR
The major version as MACRO.
Definition: version.hpp:18
#define RAPTOR_VERSION_PATCH
The patch version as MACRO.
Definition: version.hpp:22
constexpr uint8_t raptor_version_major
The major version.
Definition: version.hpp:56
constexpr std::size_t raptor_version
The full version as std::size_t.
Definition: version.hpp:63
constexpr uint8_t raptor_version_minor
The minor version.
Definition: version.hpp:58