| IOFormat 1.8.0

Loading...
Searching...
No Matches
Versioning.h
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6#include <ioformat/IOFormatAPI.h>
7#include <ioformat/Version.h>
8
9 namespace ioformat
10{
11
15 class IOFORMAT_API Versioning
16{
17 public:
21 static VersionInfo version();
22
26 static std::string versionString();
27
31 static std::string sha();
32
42 static bool checkCompatibility(const VersionInfo& version);
43
47 static inline bool checkCompatibility() { return checkCompatibility(IOFORMAT_VERSION); }
48};
49
50} // end namespace ioformat
ioformat::Versioning
Definition Versioning.h:16
ioformat::Versioning::checkCompatibility
static bool checkCompatibility(const VersionInfo &version)
ioformat::Versioning::checkCompatibility
static bool checkCompatibility()
Definition Versioning.h:47
ioformat::Versioning::versionString
static std::string versionString()
ioformat::Versioning::version
static VersionInfo version()
ioformat::Versioning::sha
static std::string sha()
Return the SHA of the commit used to build this version of IOFormat.
ioformat
Global namespace which contains all methods to encode/decode data from/into different resources (file...
Definition Error.h:6