userver: userver/utils/userver_info.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
userver_info.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/utils/userver_info.hpp
4/// @brief Information about userver and its build environment
5
6USERVER_NAMESPACE_BEGIN
7
8namespace utils {
9
10/// \returns zero-terminated string with version as "major.minor.patch"
11const char* GetUserverVersion() noexcept;
12
13/// \returns zero-terminated string with GIT short hash of userver repo
14const char* GetUserverVcsRevision() noexcept;
15
16/// \returns zero-terminated string with description of the server as
17/// "userver/{GetUserverVersion()} ({__DATE__}; rv: {GetUserverHash()})"
18const char* GetUserverIdentifier() noexcept;
19
20} // namespace utils
21
22USERVER_NAMESPACE_END