TagLib  2.0.1
TagLib::VersionNumber Class Reference

Version number with major, minor and patch segments. More...

#include <tversionnumber.h>

Public Member Functions

constexpr VersionNumber (unsigned int major, unsigned int minor, unsigned int patch=0)
 
constexpr unsigned int combinedVersion () const
 
constexpr unsigned int majorVersion () const
 
constexpr unsigned int minorVersion () const
 
constexpr unsigned int patchVersion () const
 
constexpr bool operator== (const VersionNumber &rhs) const
 
constexpr bool operator!= (const VersionNumber &rhs) const
 
constexpr bool operator< (const VersionNumber &rhs) const
 
constexpr bool operator> (const VersionNumber &rhs) const
 
constexpr bool operator<= (const VersionNumber &rhs) const
 
constexpr bool operator>= (const VersionNumber &rhs) const
 
String toString () const
 

Related Symbols

(Note that these are not member symbols.)

TAGLIB_EXPORT VersionNumber runtimeVersion ()
 

Detailed Description

Version number with major, minor and patch segments.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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.

Friends And Related Symbol Documentation

◆ runtimeVersion()

TAGLIB_EXPORT VersionNumber runtimeVersion ( )
related

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: