IOLink  IOL_v1.2.0_release
iolink::Versioning Class Reference

Versioning tool to check library infos. More...

#include <iolink/Versioning.h>

Static Public Member Functions

static VersionInfo version ()
 Return the version of the currently loaded IOLink library.
 
static std::string versionString ()
 Return a description string of the currently loaded IOLink library.
 
static bool checkCompatibility (const VersionInfo &version)
 Check if the loaded library'version is compatible with the given one. More...
 
static bool checkCompatibility ()
 Check if the loaded library is compatible with the one defined in the header.
 

Detailed Description

Versioning tool to check library infos.

Member Function Documentation

◆ checkCompatibility()

static bool iolink::Versioning::checkCompatibility ( const VersionInfo version)
static

Check if the loaded library'version is compatible with the given one.

A version is compatible if:

  • The major version is the same
  • The library minor version is greater than the given one.
Parameters
versionThe version to check compatibility for.

The documentation for this class was generated from the following file: