Audacity 3.2.0
|
A class, that supports base manipulation with version number. More...
#include <VersionId.h>
Public Member Functions | |
VersionId ()=default | |
Creates an zero version object. More... | |
VersionId (int version, int release, int revision, int patch=0) | |
wxString | GetString () const |
Make string with version by MakeString() from instance values. More... | |
bool | operator== (const VersionId &other) |
bool | operator!= (const VersionId &other) |
bool | operator< (const VersionId &other) |
bool | operator> (const VersionId &other) |
Static Public Member Functions | |
static wxString | MakeString (int version, int release, int revision, int patch) |
Creates version string like "1.2.3" by parameters. More... | |
static VersionId | ParseFromString (wxString &versionString) |
Parse and return version object from version string like "1.2.3". More... | |
Private Attributes | |
int | mVersion { 0 } |
int | mRelease { 0 } |
int | mRevision { 0 } |
int | mPatch { 0 } |
A class, that supports base manipulation with version number.
By default initialized by zero version number (Version = 0, Release = 0, Revision = 0, Patch = 0), that not allow us to update.
Definition at line 18 of file VersionId.h.
|
default |
Creates an zero version object.
VersionId::VersionId | ( | int | version, |
int | release, | ||
int | revision, | ||
int | patch = 0 |
||
) |
wxString VersionId::GetString | ( | ) | const |
Make string with version by MakeString() from instance values.
Definition at line 60 of file VersionId.cpp.
References MakeString(), mPatch, mRelease, mRevision, and mVersion.
Referenced by UpdatePopupDialog::AddHtmlContent().
|
static |
Creates version string like "1.2.3" by parameters.
Definition at line 18 of file VersionId.cpp.
Referenced by GetString().
bool VersionId::operator!= | ( | const VersionId & | other | ) |
Definition at line 71 of file VersionId.cpp.
bool VersionId::operator< | ( | const VersionId & | other | ) |
bool VersionId::operator== | ( | const VersionId & | other | ) |
bool VersionId::operator> | ( | const VersionId & | other | ) |
Definition at line 82 of file VersionId.cpp.
|
static |
Parse and return version object from version string like "1.2.3".
Definition at line 31 of file VersionId.cpp.
References mPatch, mRelease, mRevision, mVersion, and size.
Referenced by UpdateDataParser::HandleXMLContent().
|
private |
Definition at line 43 of file VersionId.h.
Referenced by GetString(), operator<(), operator==(), and ParseFromString().
|
private |
Definition at line 41 of file VersionId.h.
Referenced by GetString(), operator<(), operator==(), and ParseFromString().
|
private |
Definition at line 42 of file VersionId.h.
Referenced by GetString(), operator<(), operator==(), and ParseFromString().
|
private |
Definition at line 40 of file VersionId.h.
Referenced by GetString(), operator<(), operator==(), and ParseFromString().