|
LMMS
|
Version number parsing and comparison. More...
#include <ProjectVersion.h>
Public Types | |
| enum class | CompareType : int { None = 0 , Major =1 , Minor =2 , Release =3 , Stage =4 , Build =5 , All = std::numeric_limits<int>::max() } |
Public Member Functions | |
| ProjectVersion (QString version, CompareType c=CompareType::All) | |
| ProjectVersion (const char *version, CompareType c=CompareType::All) | |
| const QString & | getVersion () const |
| int | getMajor () const |
| int | getMinor () const |
| int | getPatch () const |
| const QStringList & | getLabels () const |
| CompareType | getCompareType () const |
| ProjectVersion | setCompareType (CompareType compareType) |
Static Public Member Functions | |
| static int | compare (const ProjectVersion &a, const ProjectVersion &b, CompareType c) |
| static int | compare (ProjectVersion v1, ProjectVersion v2) |
Private Attributes | |
| QString | m_version |
| int | m_major = 0 |
| int | m_minor = 0 |
| int | m_patch = 0 |
| QStringList | m_labels |
| CompareType | m_compareType |
Version number parsing and comparison.
Parses and compares version information. i.e. "1.0.3" < "1.0.10"
|
strong |
| lmms::ProjectVersion::ProjectVersion | ( | QString | version, |
| CompareType | c = CompareType::All ) |
| lmms::ProjectVersion::ProjectVersion | ( | const char * | version, |
| CompareType | c = CompareType::All ) |
|
static |
| c | Determines the number of identifiers to check when comparing |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |