Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
ADDON::CAddonVersion Class Reference

#include <AddonVersion.h>

Public Member Functions

 CAddonVersion (const char *version=nullptr)
 
 CAddonVersion (const std::string &version)
 
 CAddonVersion (const CAddonVersion &other)=default
 
 CAddonVersion (CAddonVersion &&other)=default
 
CAddonVersionoperator= (const CAddonVersion &other)=default
 
CAddonVersionoperator= (CAddonVersion &&other)=default
 
virtual ~CAddonVersion ()=default
 
int Epoch () const
 
const std::string & Upstream () const
 
const std::string & Revision () const
 
bool operator< (const CAddonVersion &other) const
 
bool operator> (const CAddonVersion &other) const
 
bool operator<= (const CAddonVersion &other) const
 
bool operator>= (const CAddonVersion &other) const
 
bool operator== (const CAddonVersion &other) const
 
bool operator!= (const CAddonVersion &other) const
 
std::string asString () const
 
bool empty () const
 

Static Public Member Functions

static bool SplitFileName (std::string &ID, std::string &version, const std::string &filename)
 

Static Protected Member Functions

static int CompareComponent (const char *a, const char *b)
 

Protected Attributes

int mEpoch
 
std::string mUpstream
 
std::string mRevision
 

Constructor & Destructor Documentation

◆ CAddonVersion() [1/4]

ADDON::CAddonVersion::CAddonVersion ( const char * version = nullptr)
explicit

◆ CAddonVersion() [2/4]

ADDON::CAddonVersion::CAddonVersion ( const std::string & version)
explicit

◆ CAddonVersion() [3/4]

ADDON::CAddonVersion::CAddonVersion ( const CAddonVersion & other)
default

◆ CAddonVersion() [4/4]

ADDON::CAddonVersion::CAddonVersion ( CAddonVersion && other)
default

◆ ~CAddonVersion()

virtual ADDON::CAddonVersion::~CAddonVersion ( )
virtualdefault

Member Function Documentation

◆ asString()

std::string ADDON::CAddonVersion::asString ( ) const

◆ CompareComponent()

int ADDON::CAddonVersion::CompareComponent ( const char * a,
const char * b )
staticprotected

Compare two components of a Debian-style version. Return -1, 0, or 1 if a is less than, equal to, or greater than b, respectively.

◆ empty()

bool ADDON::CAddonVersion::empty ( ) const

◆ Epoch()

int ADDON::CAddonVersion::Epoch ( ) const
inline

◆ operator!=()

bool ADDON::CAddonVersion::operator!= ( const CAddonVersion & other) const

◆ operator<()

bool ADDON::CAddonVersion::operator< ( const CAddonVersion & other) const

◆ operator<=()

bool ADDON::CAddonVersion::operator<= ( const CAddonVersion & other) const

◆ operator=() [1/2]

CAddonVersion & ADDON::CAddonVersion::operator= ( CAddonVersion && other)
default

◆ operator=() [2/2]

CAddonVersion & ADDON::CAddonVersion::operator= ( const CAddonVersion & other)
default

◆ operator==()

bool ADDON::CAddonVersion::operator== ( const CAddonVersion & other) const

◆ operator>()

bool ADDON::CAddonVersion::operator> ( const CAddonVersion & other) const

◆ operator>=()

bool ADDON::CAddonVersion::operator>= ( const CAddonVersion & other) const

◆ Revision()

const std::string & ADDON::CAddonVersion::Revision ( ) const
inline

◆ SplitFileName()

bool ADDON::CAddonVersion::SplitFileName ( std::string & ID,
std::string & version,
const std::string & filename )
static

◆ Upstream()

const std::string & ADDON::CAddonVersion::Upstream ( ) const
inline

Member Data Documentation

◆ mEpoch

int ADDON::CAddonVersion::mEpoch
protected

◆ mRevision

std::string ADDON::CAddonVersion::mRevision
protected

◆ mUpstream

std::string ADDON::CAddonVersion::mUpstream
protected

The documentation for this class was generated from the following files: