itom  4.1.0
ito::SemVerVersion Class Reference

provides version string parsing and comparison based on semantic versioning More...

Public Member Functions

 SemVerVersion (int major, int minor, int patch=0)
 
QString toString () const
 
int toInt () const
 
bool operator== (const SemVerVersion &other) const
 
bool isCompatible (const SemVerVersion &other) const
 
bool isValid () const
 
bool operator>= (const SemVerVersion &other) const
 
bool operator> (const SemVerVersion &other) const
 
bool operator<= (const SemVerVersion &other) const
 
bool operator< (const SemVerVersion &other) const
 
int major () const
 
int minor () const
 
int patch () const
 
int svMajor () const
 
int svMinor () const
 
int svPatch () const
 

Static Public Member Functions

static SemVerVersion fromString (const QString &versionString, bool *ok=NULL)
 
static SemVerVersion fromInt (int versionNumber)
 

Private Attributes

int m_major
 
int m_minor
 
int m_patch
 

Detailed Description

provides version string parsing and comparison based on semantic versioning

Member Function Documentation

int ito::SemVerVersion::major ( ) const

deprecated. Do not use this method anymore. Use svMinor() instead, since this method will be removed (due to a conflict with a define with the same name under linux)

< deprecated. Do not use this method anymore. Use svMajor() instead, since this method will be removed (due to a conflict with a define with the same name under linux)

int ito::SemVerVersion::minor ( ) const

deprecated. Do not use this method anymore. Use svPatch() instead, since this method will be removed (due to a conflict with a define with the same name under linux)

< deprecated. Do not use this method anymore. Use svMinor() instead, since this method will be removed (due to a conflict with a define with the same name under linux)

bool ito::SemVerVersion::operator< ( const SemVerVersion other) const

deprecated. Do not use this method anymore. Use svMajor() instead, since this method will be removed (due to a conflict with a define with the same name under linux)

int ito::SemVerVersion::patch ( ) const

< deprecated. Do not use this method anymore. Use svPatch() instead, since this method will be removed (due to a conflict with a define with the same name under linux)


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