0.4.1
Loading...
Searching...
No Matches
Version.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9/// @file Version.hpp
10/// @brief Provides the version of the project
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2020-03-10
13
14#pragma once
15
16#include <string>
17
18/// Major Version of the Project (maximum 2 digits)
19constexpr unsigned int PROJECT_VER_MAJOR = 0;
20/// Minor Version of the Project (maximum 2 digits)
21constexpr unsigned int PROJECT_VER_MINOR = 4;
22/// Patch Version of the Project (maximum 2 digits)
23constexpr unsigned int PROJECT_VER_PATCH = 1;
24/// Project Version Integer
25constexpr unsigned int PROJECT_VERSION()
26{
27 constexpr unsigned int MAJOR_FACTOR = 10000;
28 constexpr unsigned int MINOR_FACTOR = 100;
29 return PROJECT_VER_MAJOR * MAJOR_FACTOR + PROJECT_VER_MINOR * MINOR_FACTOR + PROJECT_VER_PATCH;
30}
31/// Project Version String in the form "major.minor.patch"
32#define PROJECT_VERSION_STRING std::to_string(PROJECT_VER_MAJOR) + std::string(".") + std::to_string(PROJECT_VER_MINOR) + std::string(".") + std::to_string(PROJECT_VER_PATCH)
constexpr unsigned int PROJECT_VER_MAJOR
Major Version of the Project (maximum 2 digits)
Definition Version.hpp:19
constexpr unsigned int PROJECT_VER_MINOR
Minor Version of the Project (maximum 2 digits)
Definition Version.hpp:21
constexpr unsigned int PROJECT_VERSION()
Project Version Integer.
Definition Version.hpp:25
constexpr unsigned int PROJECT_VER_PATCH
Patch Version of the Project (maximum 2 digits)
Definition Version.hpp:23