A Version class matching the Semantic Version specification. More...
#include <version.h>
Collaboration diagram for Mezzanine::SemanticVersion:Public Member Functions | |
| SemanticVersion () | |
| Blank Constructor. | |
| SemanticVersion (const SemanticVersion &Other) | |
| Copy Constructor. More... | |
| SemanticVersion (const String &ToParse) | |
| Parse Constructor. More... | |
| SemanticVersion (const UInt16 VerMajor, const UInt16 VerMinor, const UInt16 VerPatch) | |
| Number Component Constructor. More... | |
| SemanticVersion (const UInt16 VerMajor, const UInt16 VerMinor, const UInt16 VerPatch, const String &VerDesc, const String &VerMetaData) | |
| Descriptive Constructor. More... | |
| Boole | FromString (const String &ToParse) |
| Parses a String expressing a simple version. More... | |
| Boole | operator!= (const SemanticVersion &Other) const |
| Inequality comparison operator. More... | |
| Boole | operator< (const SemanticVersion &Other) const |
| Less than comparison operator. More... | |
| Boole | operator<= (const SemanticVersion &Other) const |
| Less than or equal to comparison operator. More... | |
| void | operator= (const SemanticVersion &Other) |
| Assignment operator. More... | |
| Boole | operator== (const SemanticVersion &Other) const |
| Equality comparison operator. More... | |
| Boole | operator> (const SemanticVersion &Other) const |
| Greater than comparison operator. More... | |
| Boole | operator>= (const SemanticVersion &Other) const |
| Greater than or equal to comparison operator. More... | |
| String | ToString () const |
| Converts this version into a String. More... | |
Public Attributes | |
| UInt16 | Major |
| The Major component of the version to be expressed. | |
| String | MetaData |
| An optional component for build meta data associated with the version. | |
| UInt16 | Minor |
| The Minor component of the version to be expressed. | |
| UInt16 | Patch |
| The Patch component of the version to be expressed. | |
| String | PreRelease |
| An optional pre-release string providing additional context for the version. | |
Protected Member Functions | |
| void | ConvertToUInt16 (const String &ToConvert, UInt16 &Var) |
| Convenience method for converting text to numbers. More... | |
A Version class matching the Semantic Version specification.
|
inline |
Copy Constructor.
| Other | The other SemanticVersion to be copied. |
|
inline |
|
inline |
Descriptive Constructor.
| VerMajor | The Major component of the version to be expressed. |
| VerMinor | The Minor component of the version to be expressed. |
| VerPatch | The Patch component of the version to be expressed. |
| VerDesc | An optional description string providing additional context for the version. |
| VerMetaData | An optional component for build meta data associated with the version. |
|
inlineprotected |
Convenience method for converting text to numbers.
| ToConvert | The String to be converted. |
| Var | The UInt16 to populate from the provided String. |
Parses a String expressing a simple version.
| ToParse | The String to be parsed. |
|
inline |
Inequality comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
Less than comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
Less than or equal to comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
Assignment operator.
| Other | The other SemanticVersion to assign to this. |
|
inline |
Equality comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
Greater than comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
Greater than or equal to comparison operator.
| Other | The other SemanticVersion to be compared to. |
|
inline |
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.