18 #ifndef GAZEBO_COMMON_SEMANTICVERSION_HH_ 19 #define GAZEBO_COMMON_SEMANTICVERSION_HH_ 30 class SemanticVersionPrivate;
64 const unsigned int _minor = 0,
65 const unsigned int _patch = 0,
66 const std::string &_prerelease =
"",
67 const std::string &_build =
"");
76 public:
bool Parse(
const std::string &_versionStr);
80 public: std::string Version()
const;
84 public:
unsigned int Major()
const;
88 public:
unsigned int Minor()
const;
92 public:
unsigned int Patch()
const;
97 public: std::string Prerelease()
const;
103 public: std::string Build()
const;
147 private: std::unique_ptr<SemanticVersionPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:33
friend std::ostream & operator<<(std::ostream &_out, const SemanticVersion &_v)
Stream insertion operator.
Definition: SemanticVersion.hh:139
std::string Version() const
Returns the version as a string.
Version comparison class based on Semantic Versioning 2.0.0 http://semver.org/ Compares versions and ...
Definition: SemanticVersion.hh:38