App::Meta::Version Struct Reference

A semantic version structure providing comparison operators and conversion to and from std::string. More...

#include <Metadata.h>

Public Member Functions

bool operator!= (const Version &) const
 
bool operator< (const Version &) const
 
bool operator<= (const Version &) const
 
bool operator== (const Version &) const
 
bool operator> (const Version &) const
 
bool operator>= (const Version &) const
 
std::string str () const
 
 Version ()
 
 Version (const std::string &semanticString)
 
 Version (int major, int minor=0, int patch=0, const std::string &suffix=std::string())
 

Public Attributes

int major
 
int minor
 
int patch
 
std::string suffix
 

Detailed Description

A semantic version structure providing comparison operators and conversion to and from std::string.

Constructor & Destructor Documentation

◆ Version() [1/3]

Meta::Version::Version ( )

◆ Version() [2/3]

Meta::Version::Version ( int  major,
int  minor = 0,
int  patch = 0,
const std::string &  suffix = std::string() 
)

◆ Version() [3/3]

Meta::Version::Version ( const std::string &  semanticString)
explicit

References major, minor, patch, and suffix.

Member Function Documentation

◆ operator!=()

bool Meta::Version::operator!= ( const Version rhs) const

References major, minor, patch, and suffix.

◆ operator<()

bool Meta::Version::operator< ( const Version rhs) const

References major, minor, patch, and suffix.

◆ operator<=()

bool Meta::Version::operator<= ( const Version rhs) const

References major, minor, patch, and suffix.

◆ operator==()

bool Meta::Version::operator== ( const Version rhs) const

References major, minor, patch, and suffix.

◆ operator>()

bool Meta::Version::operator> ( const Version rhs) const

References major, minor, patch, and suffix.

◆ operator>=()

bool Meta::Version::operator>= ( const Version rhs) const

References major, minor, patch, and suffix.

◆ str()

std::string Meta::Version::str ( ) const

Member Data Documentation

◆ major

int App::Meta::Version::major

◆ minor

int App::Meta::Version::minor

◆ patch

int App::Meta::Version::patch

◆ suffix

std::string App::Meta::Version::suffix

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