FifeGUI 0.2.0
A C++ GUI library designed for games.
version.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// SPDX-FileCopyrightText: 2024 Jens A. Koch.
3// SPDX-FileCopyrightText: 2024 Fifengine contributors
4// This file is part of fifengine/fifechan.
5
6// AUTOGENERATED FILE, DO NOT EDIT
7
8#ifndef INCLUDE_FIFECHAN_VERSION_HPP_
9#define INCLUDE_FIFECHAN_VERSION_HPP_
10
24
25#include <string>
26#include <string_view>
27
31namespace fcn
32{
37 {
38 public:
39 // clang-format off
43 int major = 0;
44
48 int minor = 2;
49
53 int patch = 0;
54 // clang-format on
55 };
56
61 {
62 public:
63 // clang-format off
67 static constexpr std::string_view nice_name = "fifechan";
68
72 static constexpr std::string_view name = "fifechan";
73
77 static constexpr std::string_view version = "0.2.0";
78
82 static constexpr std::string_view license = "LGPL-2.1-or-later";
83
87 static constexpr std::string_view description = "FifeGUI is a C++ GUI library designed for games.";
88
92 static constexpr std::string_view homepage = "https://github.com/fifengine/fifechan";
93
97 static constexpr std::string_view copyright = "Copyright (c) Fifengine contributors, 2012-2026.";
101 static constexpr semantic_version semver{
102 .major = 0,
103 .minor = 2,
104 .patch = 0,
105 };
106
110 static constexpr int version_id = (0 * 10000) + (2 * 100) + 0;
111 // clang-format on
112
116
117 static constexpr char const * get_name()
118 {
119 return name.data();
120 }
121
125 static constexpr char const * get_nice_name()
126 {
127 return nice_name.data();
128 }
129
133 static constexpr char const * get_license()
134 {
135 return license.data();
136 }
137
141 static constexpr char const * get_description()
142 {
143 return description.data();
144 }
145
149 static constexpr char const * get_version()
150 {
151 return version.data();
152 }
153
157 static constexpr char const * get_homepage()
158 {
159 return homepage.data();
160 }
161
165 static constexpr char const * get_copyright()
166 {
167 return copyright.data();
168 }
169
173 static constexpr int const * get_version_num()
174 {
175 return &version_id;
176 }
177 };
178
179} // namespace fcn
180
181#endif // INCLUDE_FIFECHAN_VERSION_HPP_
Static application version and metadata.
Definition version.hpp:61
static constexpr char const * get_license()
Get the license string for the project.
Definition version.hpp:133
static constexpr std::string_view description
Short descriptive text for the project.
Definition version.hpp:87
static constexpr int const * get_version_num()
Get pointer to numeric version id.
Definition version.hpp:173
static constexpr std::string_view version
Version string suitable for display.
Definition version.hpp:77
static constexpr std::string_view license
SPDX or textual license identifier.
Definition version.hpp:82
static constexpr std::string_view homepage
Project homepage URL.
Definition version.hpp:92
static constexpr char const * get_version()
Get the textual project version.
Definition version.hpp:149
static constexpr semantic_version semver
Semantic version instance for compile-time access.
Definition version.hpp:101
static constexpr char const * get_description()
Short description of the project.
Definition version.hpp:141
static constexpr char const * get_homepage()
Project homepage URL.
Definition version.hpp:157
static constexpr char const * get_nice_name()
Name suitable for display.
Definition version.hpp:125
static constexpr int version_id
Numeric version id computed from major/minor/patch.
Definition version.hpp:110
static constexpr char const * get_copyright()
Copyright text for the project.
Definition version.hpp:165
static constexpr std::string_view copyright
Copyright notice text.
Definition version.hpp:97
static constexpr std::string_view nice_name
User facing short product name.
Definition version.hpp:67
static constexpr char const * get_name()
Getters - c_str() types.
Definition version.hpp:117
static constexpr std::string_view name
Machine friendly package name.
Definition version.hpp:72
Simple semantic version container.
Definition version.hpp:37
int patch
Patch version number.
Definition version.hpp:53
int major
Major version number.
Definition version.hpp:43
int minor
Minor version number.
Definition version.hpp:48
Used replacement tokens by configure_file():