winIDEA SDK
|
This class contains a winIDEA version number.
It is not intended to be instantiated by clients; use isys::CIDEController::getWinIDEAVersion() or isys::ConnectionMgr::getWinIDEAVersion() to obtain an instance.
#include <CWinIDEAVersion.h>
Public Member Functions | |
int | compare (const CWinIDEAVersion &other) |
Returns -1 if this version is smaller than other, 0 if equal, and 1 if greater. | |
CWinIDEAVersion (const std::string &version) | |
uint16_t | getBuild () |
Returns the winIDEA build number. | |
uint8_t | getBuildDay () |
Returns winIDEA build day in range [1..31]. More... | |
uint8_t | getBuildMonth () |
Returns winIDEA build month in range [1..12]. More... | |
uint16_t | getBuildYear () |
Returns winIDEA build year. More... | |
uint8_t | getMajor () |
Returns the major winIDEA version. | |
uint8_t | getMinor () |
Returns the minor winIDEA version. | |
uint32_t | getSccRevision () |
Returns the winIDEA source control revision number. More... | |
uint16_t | getSubbuild () |
Returns the winIDEA sub-build number. More... | |
std::string | toString () const |
Returns version number as string. More... | |
isys::CWinIDEAVersion::CWinIDEAVersion | ( | const std::string & | version | ) |
version | must be in <major>.<minor>.<build>[.<subbuild>] format, for example: 9.12.209, or 9.12.209.4302 |
|
inline |
Returns winIDEA build day in range [1..31].
Returns 0 if build day was not set.
|
inline |
Returns winIDEA build month in range [1..12].
Returns 0 if build month was not set.
|
inline |
Returns winIDEA build year.
Returns 0 if build year was not set.
|
inline |
Returns the winIDEA source control revision number.
Returns 0xffff'ffff if this version was not set.
|
inline |
Returns the winIDEA sub-build number.
Returns 0xffff if sub-build version was not set.
std::string isys::CWinIDEAVersion::toString | ( | ) | const |
Returns version number as string.
Format: <major>.<minor>.<build>. If sub-build number was also set, the return string is <major>.<minor>.<build>.<sub-build>. Example: 9.10.115