1 #ifndef __libquark_util_Version_hxx 2 #define __libquark_util_Version_hxx 45 Version(
const QString &version);
90 {
return(_revision); }
93 inline uint
age()
const 126 {
return(!
operator==(other)); }
133 {
return(
operator<(other) ||
operator==(other)); }
140 {
return(
operator>(other) ||
operator==(other)); }
150 mutable QString _str;
151 mutable QString _vstr;
155 {
return(stream << qPrintable(v.
toString())); }
160 #endif // __libquark_util_Version_hxx void interfacesChanged()
Adjusts the version to reflect non-backward-compatible changes to the interfaces. ...
void interfacesAdded()
Adjusts the version to reflect the addition of new interfaces.
std::ostream & operator<<(std::ostream &stream, const Version &v)
Definition: Version.h++:154
bool operator!=(const Version &other) const
Inequality operator.
Definition: Version.h++:125
bool operator<(const Version &other) const
Determines if this Version is older than another version.
uint revision() const
Returns the revision component of the version.
Definition: Version.h++:89
Definition: BarChartView.h++:6
QString toString() const
Returns a string representation of the version, in C-A.A.R form.
QString toCRAString() const
Returns a string representation of the version, in C:R:A form.
bool fromString(const QString &version)
Parses the verison from a string.
uint current() const
Returns the current component of the version.
Definition: Version.h++:85
bool satisfiedBy(const Version &available) const
Determines if a requested interface with this version is satisfied by a specific available version (i...
bool satisfies(const Version &requested) const
Determines if an interface with this version satisfies a request for an interface with a specific req...
bool operator==(const Version &other) const
Equality operator.
bool operator<=(const Version &other) const
Determines if this Version is older than or equal to another version.
Definition: Version.h++:132
Version(const QString &version)
Constructs a new Version from the specified string representation.
bool operator>=(const Version &other) const
Determines if this Version is newer than or equal to another version.
Definition: Version.h++:139
void interfacesRemoved()
Adjusts the version to reflect the removal of existing interfaces.
bool operator>(const Version &other) const
Determines if this Version is newer than another version.
uint age() const
Returns the age component of the version.
Definition: Version.h++:93
void implementationChanged()
Adjusts the version to reflect internal implementation changes.
A class representing an interface version number.
Definition: Version.h++:35
Version & operator=(const Version &other)
Assignment operator.