PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
version.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_VERSION_VERSION_HPP_
13 #define PLSSVM_VERSION_VERSION_HPP_
14 #pragma once
15 
16 #include <optional> // std::optional
17 #include <string> // std::string
18 #include <string_view> // std::string_view
19 
20 namespace plssvm::version {
21 
26 constexpr std::string_view name = "PLSSVM - Parallel Least Squares Support Vector Machine";
27 
32 constexpr std::string_view version = "2.0.0";
33 
38 constexpr int major = 2;
39 
44 constexpr int minor = 0;
45 
50 constexpr int patch = 0;
51 
52 namespace detail {
53 
58 constexpr std::string_view target_platforms = "cpu";
59 
63 constexpr std::string_view copyright_notice = "Copyright(C) 2018-today The PLSSVM project - All Rights Reserved\n"
64  "This is free software distributed under the MIT license; see the source for more information.";
65 
71 [[nodiscard]] std::optional<std::string> get_git_info();
72 
81 [[nodiscard]] std::string get_version_info(std::string_view executable_name, bool with_backend_info = true);
82 
83 } // namespace detail
84 
85 } // namespace plssvm::version
86 
87 #endif // PLSSVM_VERSION_VERSION_HPP_
Namespace containing versioning information.
Definition: core.hpp:39
constexpr int minor
The current minor version of the library.
Definition: version.hpp:44
constexpr int patch
The current patch version of the library.
Definition: version.hpp:50
constexpr std::string_view version
The current version of the library in the form: "major.minor.patch".
Definition: version.hpp:32
constexpr std::string_view name
The name of the library.
Definition: version.hpp:26
constexpr int major
The current major version of the library.
Definition: version.hpp:38
constexpr std::string_view target_platforms
The provided target platforms to use.
Definition: version.hpp:58
constexpr std::string_view copyright_notice
The copyright notice of the PLSSVM library.
Definition: version.hpp:63
std::optional< std::string > get_git_info()
Special git information used in the --version message.
std::string get_version_info(std::string_view executable_name, bool with_backend_info=true)
The full content used for the --version message.