| Face Engine SDK 4.7.0 A face detection, recognition and tracking engine.

Version.h
Go to the documentation of this file.
1
8 #pragma once
9
10 #include "Def.h"
11 #include <cstdint>
12
13 namespace fsdk {
14
24 struct Version {
25 uint8_t major;
26 uint8_t minor;
27 uint16_t patch;
28 };
29
36 inline bool operator < (Version lhs, Version rhs) noexcept {
37 if (lhs.major < rhs.major)
38 return true;
39 if (lhs.minor < rhs.minor)
40 return true;
41 return lhs.patch < rhs.patch;
42 }
43
50 inline bool operator == (Version lhs, Version rhs) noexcept {
51 return lhs.major == rhs.major &&
52 lhs.minor == rhs.minor &&
53 lhs.patch == rhs.patch;
54 }
55
62 inline bool operator != (Version lhs, Version rhs) noexcept {
63 return !(lhs == rhs);
64 }
65
70 FSDK_API Version getVersion() noexcept;
71
76 FSDK_API const char* getVersionHash() noexcept;
77
82 FSDK_API const char* getVersionString() noexcept;
83
89 FSDK_API const char* getBuildInfo() noexcept;
90 // end of VersionGroup
92 }
FSDK_API
#define FSDK_API
Dummy.
Definition: Def.h:27
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Version::major
uint8_t major
Major version number.
Definition: Version.h:25
fsdk::getVersionString
FSDK_API const char * getVersionString() noexcept
Get FaceEngine version string.
fsdk::Version
Definition: Version.h:24
fsdk::operator==
bool operator==(Version lhs, Version rhs) noexcept
Check if versions are equal.
Definition: Version.h:50
fsdk::Version::minor
uint8_t minor
Minor version number.
Definition: Version.h:26
Def.h
Common SDK definitions.
fsdk::operator<
bool operator<(Version lhs, Version rhs) noexcept
Check if one version is less than another.
Definition: Version.h:36
fsdk::getVersionHash
FSDK_API const char * getVersionHash() noexcept
Get FaceEngine commit hash.
fsdk::operator!=
bool operator!=(Version lhs, Version rhs) noexcept
Check if versions are not equal.
Definition: Version.h:62
fsdk::Version::patch
uint16_t patch
Revision number.
Definition: Version.h:27
fsdk::getBuildInfo
FSDK_API const char * getBuildInfo() noexcept
Get FaceEngine build description. The descripton contains used flags and compler settings.
fsdk::getVersion
FSDK_API Version getVersion() noexcept
Get FaceEngine version.