CVB++ 15.0
Loading...
Searching...
No Matches
version.hpp
1#pragma once
2
3#include "../global.hpp"
4#include "../string.hpp"
5
6#include "../utilities/system_info.hpp"
7
8#include "../_cexports/c_utilities.h"
9
10namespace Cvb
11{
12
13 CVB_BEGIN_INLINE_NS
14
15 namespace Utilities
16 {
17
18 namespace SystemInfo
19 {
20
22
26 inline String HeaderVersion() noexcept
27 {
28 return CVB_LIT("v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUBMINOR}.build-${CURRENT_BUILD_NUMBER}");
29 }
30
32
38 inline String VersionMin() noexcept
39 {
40 return CVB_LIT("v13.0");
41 }
42
44
51 inline String VersionBuild() noexcept
52 {
53 return CVB_LIT("v${CVB_VERSION}");
54 }
55
57
61 inline String Version()
62 {
63 std::vector<char> buffer(32);
64 if (!CExports::GetCVBVersion(&buffer[0], buffer.size()))
65 ThrowLastError();
66
67 return String(CVB_LIT("v")) + String(buffer.begin(), buffer.end() - 1);
68 }
69
70 } // namespace SystemInfo
71
76
77 } // namespace Utilities
78
80 using Utilities::Version;
83
84 CVB_END_INLINE_NS
85
86} // namespace Cvb
Namespace for helper functions related to system or CVB installation information.
Definition version.hpp:19
String VersionMin() noexcept
Gets the minimum CVB required for these headers.
Definition version.hpp:38
String HeaderVersion() noexcept
Returns the version of these headers.
Definition version.hpp:26
String Version()
Full version of the currently installed CVB.
Definition version.hpp:61
String VersionBuild() noexcept
Gets the CVB version this header set was build/validated with.
Definition version.hpp:51
Namespace for helpers and utilities, which are not directly related to image processing.
Definition version.hpp:16
String VersionMin() noexcept
Gets the minimum CVB required for these headers.
Definition version.hpp:38
String HeaderVersion() noexcept
Returns the version of these headers.
Definition version.hpp:26
String VersionBuild() noexcept
Gets the CVB version this header set was build/validated with.
Definition version.hpp:51
Root namespace for the Image Manager interface.
Definition version.hpp:11
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49