IOLink  IOL_v1.1.0_release
Versioning.h
1 #pragma once
2 
3 #include <cstdint>
4 #include <string>
5 
6 #include <iolink/IOLinkAPI.h>
7 #include <iolink/Version.h>
8 
9 namespace iolink
10 {
11 
15 class IOLINK_API Versioning
16 {
17 public:
21  static VersionInfo version();
22 
26  static std::string versionString();
27 
37  static bool checkCompatibility(const VersionInfo& version);
38 
42  static inline bool checkCompatibility() { return checkCompatibility(IOLINK_VERSION); }
43 };
44 
45 } // end namespace iolink