SdrVersion.
More...
#include <declare.h>
SdrVersion.
Definition at line 73 of file declare.h.
Create an invalid version.
Create a version with the given major and minor numbers. Numbers must be non-negative, and at least one must be non-zero. On failure generates an error and yields an invalid version.
SDR_API SdrVersion::SdrVersion |
( |
const std::string & |
x | ) |
|
Create a version from a string. On failure generates an error and yields an invalid version.
Return an equal version marked as default. It's permitted to mark an invalid version as the default.
Definition at line 91 of file declare.h.
SDR_API std::size_t SdrVersion::GetHash |
( |
| ) |
const |
|
inline |
Return a hash for the version.
Definition at line 116 of file declare.h.
Return the major version number or zero for an invalid version.
Definition at line 98 of file declare.h.
Return the minor version number or zero for an invalid version.
Definition at line 101 of file declare.h.
SDR_API std::string SdrVersion::GetString |
( |
| ) |
const |
Return the version as a string.
SDR_API std::string SdrVersion::GetStringSuffix |
( |
| ) |
const |
Return the version as a identifier suffix.
SDR_API bool SdrVersion::IsDefault |
( |
| ) |
const |
|
inline |
Return true iff this version is marked as default.
Definition at line 104 of file declare.h.
SDR_API SdrVersion::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Return true iff the version is valid.
Definition at line 124 of file declare.h.
Return true iff the version is invalid.
Definition at line 131 of file declare.h.
Return true iff versions are not equal.
Definition at line 145 of file declare.h.
Return true iff the left side is less than the right side.
Definition at line 152 of file declare.h.
Return true iff the left side is less than or equal to the right side.
Definition at line 160 of file declare.h.
Return true iff versions are equal.
Definition at line 138 of file declare.h.
Return true iff the left side is greater than the right side.
Definition at line 168 of file declare.h.
Return true iff the left side is greater than or equal to the right side.
Definition at line 175 of file declare.h.
The documentation for this class was generated from the following file: