Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
serialbox::Version Struct Reference

Utility to deal with Serialbox versions. More...

#include <Version.h>

Static Public Member Functions

static std::string toString (int version)
 Convert to string.
 
static std::string toString (int major, int minor, int patch)
 
static bool match (int version) noexcept
 Check if the given version matches the current library version. More...
 
static bool isCompatible (int version) noexcept
 Check if the given version is compatible with the current library version (i.e. is older) More...
 

Detailed Description

Utility to deal with Serialbox versions.

Definition at line 27 of file Version.h.

Member Function Documentation

◆ isCompatible()

static bool serialbox::Version::isCompatible ( int  version)
inlinestaticnoexcept

Check if the given version is compatible with the current library version (i.e. is older)

Returns
Return true if the versions is compatible

Definition at line 61 of file Version.h.

◆ match()

static bool serialbox::Version::match ( int  version)
inlinestaticnoexcept

Check if the given version matches the current library version.

Returns
Return true if the versions match

Definition at line 53 of file Version.h.


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