apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pkgVersioningSystem Class Referenceabstract

#include <version.h>

Inheritance diagram for pkgVersioningSystem:
[legend]
Collaboration diagram for pkgVersioningSystem:
[legend]

Public Member Functions

virtual int DoCmpVersion (const char *A, const char *Aend, const char *B, const char *Bend)=0
 
virtual bool CheckDep (const char *PkgVer, int Op, const char *DepVer)=0
 
virtual int DoCmpReleaseVer (const char *A, const char *Aend, const char *B, const char *Bend)=0
 
virtual std::string UpstreamVersion (const char *A)=0
 
virtual bool TestCompatibility (pkgVersioningSystem const &Against)
 
 APT_MKSTRCMP (CmpVersion, DoCmpVersion)
 
 APT_MKSTRCMP (CmpReleaseVer, DoCmpReleaseVer)
 
 pkgVersioningSystem ()
 
virtual ~pkgVersioningSystem ()
 

Static Public Member Functions

static pkgVersioningSystemGetVS (const char *Label) APT_PURE
 

Public Attributes

const char * Label
 

Static Public Attributes

static pkgVersioningSystem ** GlobalList = VSList
 
static unsigned long GlobalListLen = 0
 

Detailed Description

Definition at line 26 of file version.h.

Constructor & Destructor Documentation

◆ pkgVersioningSystem()

Definition at line 25 of file version.cc.

References GlobalListLen, and VSList.

◆ ~pkgVersioningSystem()

~pkgVersioningSystem ( )
virtual

Definition at line 44 of file version.cc.

Member Function Documentation

◆ APT_MKSTRCMP() [1/2]

APT_MKSTRCMP ( CmpReleaseVer  ,
DoCmpReleaseVer   
)

◆ APT_MKSTRCMP() [2/2]

APT_MKSTRCMP ( CmpVersion  ,
DoCmpVersion   
)

◆ CheckDep()

virtual bool CheckDep ( const char *  PkgVer,
int  Op,
const char *  DepVer 
)
pure virtual

◆ DoCmpReleaseVer()

virtual int DoCmpReleaseVer ( const char *  A,
const char *  Aend,
const char *  B,
const char *  Bend 
)
pure virtual

Implemented in debVersioningSystem.

◆ DoCmpVersion()

virtual int DoCmpVersion ( const char *  A,
const char *  Aend,
const char *  B,
const char *  Bend 
)
pure virtual

◆ GetVS()

pkgVersioningSystem * GetVS ( const char *  Label)
static

Definition at line 34 of file version.cc.

References GlobalListLen, I, Label, and VSList.

Referenced by pkgCache< Str, Itr >::ReMap().

◆ TestCompatibility()

virtual bool TestCompatibility ( pkgVersioningSystem const &  Against)
inlinevirtual

Definition at line 46 of file version.h.

Referenced by ShowHelp().

◆ UpstreamVersion()

virtual std::string UpstreamVersion ( const char *  A)
pure virtual

Implemented in debVersioningSystem.

Member Data Documentation

◆ GlobalList

pkgVersioningSystem ** GlobalList = VSList
static

Definition at line 30 of file version.h.

Referenced by ShowHelp().

◆ GlobalListLen

unsigned long GlobalListLen = 0
static

Definition at line 31 of file version.h.

Referenced by GetVS(), pkgVersioningSystem(), and ShowHelp().

◆ Label

const char* Label

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