The SWORD Project
1.9.0.svnversion
|
#include <swversion.h>
Public Member Functions | |
int | compare (const SWVersion &vi) const |
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 |
SWVersion (const char *version="0.0") | |
Public Attributes | |
int | major |
int | minor |
int | minor2 |
int | minor3 |
Static Public Attributes | |
static SWVersion | currentVersion |
A basic tool class to handle program version numbers.
Definition at line 39 of file swversion.h.
SWVersion::SWVersion | ( | const char * | version = "0.0" | ) |
The constructor.
version | Version string to be parsed. |
Definition at line 41 of file swversion.cpp.
Compare 2 Versions with each other.
vi | Version number to compare with. |
Definition at line 73 of file swversion.cpp.
const char * SWVersion::getText | ( | ) | const |
|
inline |
Definition at line 60 of file swversion.h.
Definition at line 62 of file swversion.h.
Definition at line 63 of file swversion.h.
Definition at line 59 of file swversion.h.
Definition at line 61 of file swversion.h.
|
static |
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 69 of file swversion.h.
int SWVersion::major |
The different version subnumbers.
Definition at line 43 of file swversion.h.
int SWVersion::minor |
Definition at line 43 of file swversion.h.
int SWVersion::minor2 |
Definition at line 43 of file swversion.h.
int SWVersion::minor3 |
Definition at line 43 of file swversion.h.