0.2.0
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
13
14#pragma once
15
16#include <string>
17
19constexpr unsigned int PROJECT_VER_MAJOR = 0;
21constexpr unsigned int PROJECT_VER_MINOR = 2;
23constexpr unsigned int PROJECT_VER_PATCH = 0;
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}
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