DBLSQD Qt SDK
Public Member Functions | List of all members
dblsqd::SemVer Class Reference

SemVer encapsulates a version according to Semantic Versioning 2.0. More...

Public Member Functions

 SemVer (QString version)
 Constructs a new SemVer object from a string.
 
bool operator< (const SemVer &other)
 Compares two SemVer objects. More...
 
bool isValid () const
 Returns true if this version is valid according to the SemVer specification. Otherwise returns false.
 
QString toString ()
 

Detailed Description

SemVer encapsulates a version according to Semantic Versioning 2.0.

Member Function Documentation

◆ operator<()

bool dblsqd::SemVer::operator< ( const SemVer other)

Compares two SemVer objects.

Returns true if the left-hand SemVer object represents a lower version according to the SemVer 2.0 specification. Otherweise returns false. Returns false if one of the SemVer objects does not represent a valid SemVer.

See also
isValid()

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