Semver-ish host version.
More...
#include <host_version.hpp>
|
| constexpr | HostVersion ()=default |
| constexpr | HostVersion (int maj, int min=0, int pat=0) |
| constexpr bool | is_at_least (int maj, int min=0, int pat=0) const |
| | True when this version is >= the comparison target.
|
| constexpr bool | is_before (int maj, int min=0, int pat=0) const |
| | True when this version is strictly less than the comparison target.
|
| constexpr bool | is_unknown () const |
| | Returns true if all components are zero (unknown / undetected).
|
Semver-ish host version.
Pulp doesn't try to parse every DAW's idiosyncratic version string — just enough to distinguish major/minor releases for quirk dispatch. patch is best-effort; missing components default to 0.
◆ HostVersion() [1/2]
| pulp::format::HostVersion::HostVersion |
( |
| ) |
|
|
constexprdefault |
◆ HostVersion() [2/2]
| pulp::format::HostVersion::HostVersion |
( |
int | maj, |
|
|
int | min = 0, |
|
|
int | pat = 0 ) |
|
inlineconstexpr |
◆ is_at_least()
| bool pulp::format::HostVersion::is_at_least |
( |
int | maj, |
|
|
int | min = 0, |
|
|
int | pat = 0 ) const |
|
inlineconstexpr |
True when this version is >= the comparison target.
◆ is_before()
| bool pulp::format::HostVersion::is_before |
( |
int | maj, |
|
|
int | min = 0, |
|
|
int | pat = 0 ) const |
|
inlineconstexpr |
True when this version is strictly less than the comparison target.
◆ is_unknown()
| bool pulp::format::HostVersion::is_unknown |
( |
| ) |
const |
|
inlineconstexpr |
Returns true if all components are zero (unknown / undetected).
◆ major
| int pulp::format::HostVersion::major = 0 |
◆ minor
| int pulp::format::HostVersion::minor = 0 |
◆ patch
| int pulp::format::HostVersion::patch = 0 |
The documentation for this struct was generated from the following file: