Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Version.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <fsdk/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 && lhs.minor == rhs.minor && lhs.patch == rhs.patch;
52  }
53 
60  inline bool operator!=(Version lhs, Version rhs) noexcept {
61  return !(lhs == rhs);
62  }
63 
68  FSDK_API Version getVersion() noexcept;
69 
74  FSDK_API const char* getVersionHash() noexcept;
75 
80  FSDK_API const char* getVersionString() noexcept;
81 
87  FSDK_API const char* getBuildInfo() noexcept;
88  // end of VersionGroup
90 } // namespace fsdk
#define FSDK_API
Dummy.
Definition: Def.h:27
uint8_t major
Major version number.
Definition: Version.h:25
FSDK_API const char * getVersionString() noexcept
Get FaceEngine version string.
Definition: Version.h:24
bool operator==(Version lhs, Version rhs) noexcept
Check if versions are equal.
Definition: Version.h:50
uint8_t minor
Minor version number.
Definition: Version.h:26
Common SDK definitions.
bool operator<(Version lhs, Version rhs) noexcept
Check if one version is less than another.
Definition: Version.h:36
FSDK_API const char * getVersionHash() noexcept
Get FaceEngine commit hash.
bool operator!=(Version lhs, Version rhs) noexcept
Check if versions are not equal.
Definition: Version.h:60
uint16_t patch
Revision number.
Definition: Version.h:27
FSDK_API const char * getBuildInfo() noexcept
Get FaceEngine build description. The descripton contains used flags and compler settings.
FSDK_API Version getVersion() noexcept
Get FaceEngine version.