49 Int version_major = 0;
50 Int version_minor = 0;
51 Int version_patch = 0;
Version information class.
Definition VersionInfo.h:36
static VersionDetails getVersionStruct()
Return the version number of OpenMS.
static std::string getBranch()
Return the branch name from revision control system, e.g. git.
static std::string getTime()
Return the build time of OpenMS.
static std::string getVersion()
Return the version number of OpenMS.
static std::string getRevision()
Return the revision number from revision control system, e.g. git.
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Parsed semver-style version: major.minor.patch with an optional pre-release identifier.
Definition VersionInfo.h:48
bool operator!=(const VersionDetails &rhs) const
Field-wise inequality (the logical negation of operator==).
VersionDetails & operator=(const VersionDetails &other)=default
Copy assignment.
bool operator==(const VersionDetails &rhs) const
Field-wise equality on all four members, including string equality on the pre-release identifier.
static VersionDetails create(const std::string &version)
Parse a semver-style "X.Y[.Z[-PRE]]" string into the struct.
bool operator<(const VersionDetails &rhs) const
Compare two versions lexicographically by (major, minor, patch).
static const VersionDetails EMPTY
Sentinel 0.0.0 version used both as the default-constructed value and as the parse-failure return of ...
Definition VersionInfo.h:119
VersionDetails(const VersionDetails &other)=default
Copy constructor.
bool operator>(const VersionDetails &rhs) const
Equivalent to !(*this < rhs || *this == rhs); inherits the operator< caveat about pre-release ties.
VersionDetails()=default
Default-construct to 0.0.0 with an empty pre-release identifier (equivalent to EMPTY).
std::string pre_release_identifier
Pre-release suffix after a trailing '-' (everything to the end of the string); empty when no '-' is p...
Definition VersionInfo.h:52