OGLplus  (0.59.0) a C++ wrapper for rendering APIs

git_info.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_GIT_INFO_HPP
10 #define EAGINE_GIT_INFO_HPP
11 
12 #include "string_span.hpp"
13 #include "valid_if/nonnegative.hpp"
14 #include "valid_if/not_empty.hpp"
15 #include <tuple>
16 
17 namespace eagine {
18 
25 
31 
36 
43 
52 
59 auto config_git_version_major() noexcept -> valid_if_nonnegative<int>;
60 
67 auto config_git_version_minor() noexcept -> valid_if_nonnegative<int>;
68 
75 auto config_git_version_patch() noexcept -> valid_if_nonnegative<int>;
76 
83 auto config_git_version_commit() noexcept -> valid_if_nonnegative<int>;
84 
91 auto config_git_version_tuple() noexcept -> std::tuple<int, int, int, int>;
92 
93 } // namespace eagine
94 
95 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
96 #include <eagine/git_info.inl>
97 #endif
98 
99 #endif // EAGINE_GIT_INFO_HPP
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
auto config_git_version_major() noexcept -> valid_if_nonnegative< int >
Returns major version number.
Common code is placed in this namespace.
Definition: eagine.hpp:21
auto config_git_version_patch() noexcept -> valid_if_nonnegative< int >
Returns patch version number.
auto config_git_version_commit() noexcept -> valid_if_nonnegative< int >
Returns commit version number.
auto config_git_date() noexcept -> valid_if_not_empty< string_view >
Returns the date of the commit from which the executable is built.
auto config_git_version_tuple() noexcept -> std::tuple< int, int, int, int >
Returns the complete version number as a tuple (major, minor, patch, commit).
auto config_git_version() noexcept -> valid_if_not_empty< string_view >
Returns the version number as string.
auto config_git_hash_id() noexcept -> valid_if_not_empty< string_view >
Returns the hash of the commit from which the executable is built.
valid_if< T, valid_if_nonneg_policy< T > > valid_if_nonnegative
Specialization of valid_if, for values valid if non-negative.
Definition: nonnegative.hpp:44
auto config_git_version_minor() noexcept -> valid_if_nonnegative< int >
Returns minor version number.
valid_if< T, valid_if_not_empty_policy< T > > valid_if_not_empty
Specialization of valid_if, for values valid if not empty.
Definition: not_empty.hpp:42
auto config_git_describe() noexcept -> valid_if_not_empty< string_view >
Returns the description of the commit from which the executable is built.
auto config_git_branch() noexcept -> valid_if_not_empty< string_view >
Returns the name of the git branch from which the executable is built.

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).