Version number with major, minor and patch segments.
More...
#include <tversionnumber.h>
Version number with major, minor and patch segments.
◆ VersionNumber()
TagLib::VersionNumber::VersionNumber |
( |
unsigned int | major, |
|
|
unsigned int | minor, |
|
|
unsigned int | patch = 0 ) |
|
inlineconstexpr |
Constructs a version number from major, minor and patch segments.
◆ combinedVersion()
unsigned int TagLib::VersionNumber::combinedVersion |
( |
| ) |
const |
|
inlineconstexpr |
Returns the version as an unsigned integer in the form (major version << 16) | (minor version << 8) | (patch version), e.g. 0x020100 for version 2.1.0.
◆ majorVersion()
unsigned int TagLib::VersionNumber::majorVersion |
( |
| ) |
const |
|
inlineconstexpr |
Returns the major version, e.g. 2
◆ minorVersion()
unsigned int TagLib::VersionNumber::minorVersion |
( |
| ) |
const |
|
inlineconstexpr |
Returns the minor version, e.g. 1
◆ operator!=()
bool TagLib::VersionNumber::operator!= |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is not equal to rhs.
◆ operator<()
bool TagLib::VersionNumber::operator< |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is less than rhs.
◆ operator<=()
bool TagLib::VersionNumber::operator<= |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is less or equal than rhs.
◆ operator==()
bool TagLib::VersionNumber::operator== |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is equal to rhs.
◆ operator>()
bool TagLib::VersionNumber::operator> |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is greater than rhs.
◆ operator>=()
bool TagLib::VersionNumber::operator>= |
( |
const VersionNumber & | rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this version is greater or equal than rhs.
◆ patchVersion()
unsigned int TagLib::VersionNumber::patchVersion |
( |
| ) |
const |
|
inlineconstexpr |
Returns the patch version, e.g. 0
◆ toString()
String TagLib::VersionNumber::toString |
( |
| ) |
const |
Returns a string with major, minor, and patch versions separated by periods.
◆ runtimeVersion()
Returns the version number of TagLib in use at runtime. This does not need not be the version the application was compiled with.
The documentation for this class was generated from the following file: