NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nah::VersionRange Struct Reference

A version range is a union of comparator sets (OR) More...

#include <semver.hpp>

Public Member Functions

std::optional< Versionmin_version () const
 Get the minimum version from the range.
 
std::string selection_key () const
 Get selection key as "MAJOR.MINOR" from min_version.
 

Public Attributes

std::vector< ComparatorSetsets
 

Detailed Description

A version range is a union of comparator sets (OR)

e.g., ">=1.0.0 <2.0.0 || >=3.0.0" is two sets ORed together

Definition at line 62 of file semver.hpp.

Member Function Documentation

◆ min_version()

std::optional< Version > nah::VersionRange::min_version ( ) const

Get the minimum version from the range.

Examples
/home/runner/work/nah/nah/include/nah/semver.hpp.

◆ selection_key()

std::string nah::VersionRange::selection_key ( ) const

Get selection key as "MAJOR.MINOR" from min_version.

Examples
/home/runner/work/nah/nah/include/nah/semver.hpp.

Member Data Documentation

◆ sets

std::vector<ComparatorSet> nah::VersionRange::sets
Examples
/home/runner/work/nah/nah/include/nah/semver.hpp.

Definition at line 63 of file semver.hpp.


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