Face Engine SDK  5.17.0
A face detection, recognition and tracking engine.
include/fsdk/Version.h
Go to the documentation of this file.
00001 
00008 #pragma once
00009 
00010 #include <fsdk/Def.h>
00011 #include <cstdint>
00012 
00013 namespace fsdk {
00014 
00024     struct Version {
00025         uint8_t major;      
00026         uint8_t minor;      
00027         uint16_t patch;     
00028     };
00029 
00036     inline bool operator < (Version lhs, Version rhs) noexcept {
00037         if (lhs.major < rhs.major)
00038             return true;
00039         if (lhs.minor < rhs.minor)
00040             return true;
00041         return lhs.patch < rhs.patch;
00042     }
00043 
00050     inline bool operator == (Version lhs, Version rhs) noexcept {
00051         return  lhs.major == rhs.major && 
00052                 lhs.minor == rhs.minor && 
00053                 lhs.patch == rhs.patch;
00054     }
00055 
00062     inline bool operator != (Version lhs, Version rhs) noexcept {
00063         return !(lhs == rhs);
00064     }
00065 
00070     FSDK_API Version getVersion() noexcept;
00071     
00076     FSDK_API const char* getVersionHash() noexcept;
00077 
00082     FSDK_API const char* getVersionString() noexcept;
00083 
00089     FSDK_API const char* getBuildInfo() noexcept;
00090  // end of VersionGroup
00092 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines