SemanticVersion.hh
Go to the documentation of this file.
Version comparison class based on Semantic Versioning 2.0.0 http://semver.org/ Compares versions and ...
Definition: SemanticVersion.hh:42
SemanticVersion(const unsigned int _major, const unsigned int _minor=0, const unsigned int _patch=0, const std::string &_prerelease="", const std::string &_build="")
Constructor.
SemanticVersion(const SemanticVersion &_copy)
Copy constructor.
bool operator<=(const SemanticVersion &_other) const
Less than or equal comparison operator.
bool operator<(const SemanticVersion &_other) const
Less than comparison operator.
SemanticVersion & operator=(const SemanticVersion &_other)
Assignment operator.
bool operator>(const SemanticVersion &_other) const
Greater than comparison operator.
bool operator==(const SemanticVersion &_other) const
Equality comparison operator.
SemanticVersion()
Default constructor. Use the Parse function to populate an instance with version information.
friend std::ostream & operator<<(std::ostream &_out, const SemanticVersion &_v)
Stream insertion operator.
Definition: SemanticVersion.hh:142
std::string Build() const
Get the build metadata string. Build meta data is not used when determining precedence.
bool operator!=(const SemanticVersion &_other) const
Inequality comparison operator.
bool Parse(const std::string &_versionStr)
Parse a version string and set the major, minor, patch numbers, and prerelease and build strings.
bool operator>=(const SemanticVersion &_other) const
Greater than or equal comparison operator.
Definition: Angle.hh:43