The Sword Project: sword::SWVersion Class Reference |
#include <swversion.h>
Collaboration diagram for sword::SWVersion:
Public Member Functions | |
SWVersion (const char *version="0.0") | |
The constructor. | |
int | compare (const SWVersion &vi) const |
Compare 2 Versions with each other. | |
const char * | getText () const |
| |
operator const char * () const | |
| |
bool | operator> (const SWVersion &vi) const |
bool | operator< (const SWVersion &vi) const |
bool | operator>= (const SWVersion &vi) const |
bool | operator<= (const SWVersion &vi) const |
bool | operator== (const SWVersion &vi) const |
Public Attributes | |
int | major |
The different version subnumbers. | |
int | minor |
int | minor2 |
int | minor3 |
Static Public Attributes | |
static SWVersion | currentVersion |
Current sword library version. |
Definition at line 30 of file swversion.h.
sword::SWVersion::SWVersion | ( | const char * | version = "0.0" |
) |
The constructor.
version | Version string to be parsed. |
int sword::SWVersion::compare | ( | const SWVersion & | vi | ) | const |
Compare 2 Versions with each other.
vi | Version number to compare with. |
Current sword library version.
Use this to check (e.g. at compile time) if the version of the sword lib is recent enough for your program.
Definition at line 60 of file swversion.h.
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |