| IOLink 1.11.0

Loading...
Searching...
No Matches
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
iolink::Versioning
Versioning tool to check library infos.
Definition Versioning.h:16
iolink::Versioning::checkCompatibility
static bool checkCompatibility()
Check if the loaded library is compatible with the one defined in the header.
Definition Versioning.h:42
iolink::Versioning::versionString
static std::string versionString()
Return a description string of the currently loaded IOLink library.
iolink::Versioning::version
static VersionInfo version()
Return the version of the currently loaded IOLink library.
iolink::Versioning::checkCompatibility
static bool checkCompatibility(const VersionInfo &version)
Check if the loaded library'version is compatible with the given one.
iolink
All IOLink symbols are enclosed in this namespace.
Definition ArrayX.h:8