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
39 inline String VersionBuild() noexcept
40 {
41 return CVB_LIT("v${CVB_VERSION}");
42 }
43
45
50 {
51 std::vector<char> buffer(32);
52 if (!CExports::GetCVBVersion(&buffer[0], buffer.size()))
53 ThrowLastError();
54
55 return String(CVB_LIT("v")) + String(buffer.begin(), buffer.end() - 1);
56 }
57
58 } // namespace SystemInfo
59
63
64 } // namespace Utilities
65
69
70 CVB_END_INLINE_NS
71
72} // namespace Cvb
Namespace for helper functions related to system or CVB installation information.
Definition version.hpp:19
String HeaderVersion() noexcept
Returns the version of these headers.
Definition version.hpp:26
String VersionCVB()
Full version of the currently installed CVB.
Definition version.hpp:49
String VersionBuild() noexcept
Gets the CVB version this header set was build/validated with.
Definition version.hpp:39
Namespace for helpers and utilities, which are not directly related to image processing.
Definition version.hpp:16
String HeaderVersion() noexcept
Returns the version of these headers.
Definition version.hpp:26
String VersionCVB()
Full version of the currently installed CVB.
Definition version.hpp:49
String VersionBuild() noexcept
Gets the CVB version this header set was build/validated with.
Definition version.hpp:39
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