Global Namespaces
namespace qi::version
Classes (namespace qi::version)
class qi::version::Version
Functions (class qi::version::Version)
Functions (namespace qi::version)
Version
()Version
(const Version& other)Version
(const std::string& version)Version
(const char* version)~Version
()operator=
(const Version& rhs)string&
() constoperator<
(const Version& pi) constoperator>
(const Version& pi) constoperator==
(const Version& pi) constoperator!=
(const Version& pi) constoperator<=
(const Version& pi) constoperator>=
(const Version& pi) constCompare version strings Simple class that allow comparing two version number.
qi::version::Version::
Version
()¶These constructors are implicit by design.
qi::version::Version::
Version
(const Version& other)¶Copy constructor.
qi::version::Version::
Version
(const std::string& version)¶Constructor converting a string.
qi::version::Version::
Version
(const char* version)¶Constructor converting a char*.
qi::version::Version::
~Version
()¶Destructor.
qi::version::Version::
operator=
(const Version& rhs)¶Assignation opertator.
qi::version::Version::
operator
const std::string&() const
¶Converting the Version to a String.
qi::version::Version::
operator<
(const Version& pi) const
¶Brief: operator <
Parameters: |
|
---|---|
Returns: | true if pi is superior |
qi::version::Version::
operator>
(const Version& pi) const
¶Brief: operator >
Parameters: |
|
---|---|
Returns: | true if pi is inferior |
qi::version::Version::
operator==
(const Version& pi) const
¶Brief: operator ==
Parameters: |
|
---|---|
Returns: | true if pi is equal |
qi::version::Version::
operator!=
(const Version& pi) const
¶Brief: operator !=
Parameters: |
|
---|---|
Returns: | true if pi is different |
qi::version::Version::
operator<=
(const Version& pi) const
¶Brief: operator <=
Parameters: |
|
---|---|
Returns: | true if pi is superior or equal |
qi::version::Version::
operator>=
(const Version& pi) const
¶Brief: operator >=
Parameters: |
|
---|---|
Returns: | true if pi is inferior or equal |
Name | Brief |
---|---|
qi::version::Version |
Compare version strings Simple class that allow comparing two version number. |
Name | Brief |
---|---|
qi::version::explode |
Explode a version string to an array of strings. |
qi::version::compare |
Compare version numbers. |
qi::version::extract |
Extract version number from string. |
Version numbering API. qi/version.hpp .
qi::version::
explode
(const std::string& version)¶Brief: Explode a version string to an array of strings.
Parameters: |
|
---|---|
Returns: | An array of strings (including ”.”). |
for example “1.2.3” become { “1”, “2”, “3” }
qi::version::
compare
(const std::string& versionA, const std::string& versionB)¶Brief: Compare version numbers.
Parameters: |
|
---|---|
Returns: | like strcmp, 0 if equal, -1 if a < b, 1 if a > b |
qi::version::
extract
(const std::string& version)¶Brief: Extract version number from string.
Parameters: |
|
---|---|
Returns: | The version number, if any. |