23 #ifndef __ccxx_Version_hxx 24 #define __ccxx_Version_hxx 97 bool satisfies(
const Version& requested)
const;
108 bool satisfiedBy(
const Version& available)
const;
112 {
return(_current); }
116 {
return(_revision); }
123 void interfacesAdded();
126 void interfacesRemoved();
132 void interfacesChanged();
135 void implementationChanged();
141 String toCRAString()
const;
144 void fromString(
const String& version);
151 {
return(!
operator==(other)); }
158 {
return(
operator<(other) ||
operator==(other)); }
165 {
return(
operator>(other) ||
operator==(other)); }
182 return(stream << cstr_v.
data());
187 #endif // __ccxx_Version_hxx A class representing an interface version number.
Definition: Version.h++:57
bool operator>=(const Version &other) const
Determine if this Version is newer than or equal to another version.
Definition: Version.h++:164
const char * data() const
Get a pointer to the character array.
Definition: CString.h++:58
bool operator!=(const Version &other) const
Inequality operator.
Definition: Version.h++:150
bool operator==(const Blob &b1, const Blob &b2)
Definition: Blob.h++:344
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
bool operator<=(const Version &other) const
Determine if this Version is older than or equal to another version.
Definition: Version.h++:157
uint_t getRevision() const
Get the revision component of the version.
Definition: Version.h++:115
uint_t getAge() const
Get the age component of the version.
Definition: Version.h++:119
std::ostream & operator<<(std::ostream &stream, const BitSet &bs)
Definition: BitSet.h++:383
String toString() const
Get a String representation of the version, in C-A.A.R form.
Definition: Version.c++:166
uint_t getCurrent() const
Get the current component of the version.
Definition: Version.h++:111
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
An implicitly shared, reference-counted container for an immutable, NUL-terminated C string...
Definition: CString.h++:39
bool operator<(const Blob &b1, const Blob &b2)
Definition: Blob.h++:350
CString toUTF8() const
Return the contents of the string as an immutable C string.
Definition: String.c++:1143
Definition: AllocationMap.c++:25
bool operator>(const Blob &b1, const Blob &b2)
Definition: Blob.h++:353