libimgdoc2
Loading...
Searching...
No Matches
VersionInfo.h
1// SPDX-FileCopyrightText: 2024 Carl Zeiss Microscopy GmbH
2//
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
7#include <cstdint>
8#include <string>
9
10namespace imgdoc2
11{
14 {
15 std::uint32_t major{ 0 };
16 std::uint32_t minor{ 0 };
17 std::uint32_t patch{ 0 };
18
21
22 std::string build_type;
23
25 std::string repository_url;
26
28 std::string repository_branch;
29
31 std::string repository_tag;
32 };
33}
This structure gathers build-time information about the version of the library.
Definition: VersionInfo.h:14
std::string repository_url
The URL of the repository - if available.
Definition: VersionInfo.h:25
std::uint32_t major
The major version number. We use the semantic versioning scheme (https://semver.org/).
Definition: VersionInfo.h:15
std::uint32_t minor
The minor version number. We use the semantic versioning scheme (https://semver.org/).
Definition: VersionInfo.h:16
std::string compiler_identification
The compiler identification. This is a free-form string.
Definition: VersionInfo.h:20
std::uint32_t patch
The patch version number. We use the semantic versioning scheme (https://semver.org/).
Definition: VersionInfo.h:17
std::string repository_tag
The tag or hash of the repository - if available.
Definition: VersionInfo.h:31
std::string repository_branch
The branch - if available.
Definition: VersionInfo.h:28