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)  

pkgSystem Class Referenceabstract

#include <pkgsystem.h>

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

Public Member Functions

virtual bool Lock (OpProgress *const Progress=nullptr)=0
 
virtual bool UnLock (bool NoErrors=false)=0
 
virtual pkgPackageManagerCreatePM (pkgDepCache *Cache) const =0
 
virtual bool Initialize (Configuration &)
 
virtual bool ArchiveSupported (const char *Type)=0
 
virtual bool AddStatusFiles (std::vector< pkgIndexFile * > &List)=0
 
virtual bool FindIndex (pkgCache::PkgFileIterator File, pkgIndexFile *&Found) const =0
 
virtual signed Score (Configuration const &)
 
virtual bool MultiArchSupported () const =0
 
virtual std::vector< std::string > ArchitecturesSupported () const =0
 
APT_HIDDEN void SetVersionMapping (map_id_t const in, map_id_t const out)
 
APT_HIDDEN map_id_t GetVersionMapping (map_id_t const in) const
 
 pkgSystem (char const *const Label, pkgVersioningSystem *const VS)
 
virtual ~pkgSystem ()
 
virtual bool LockInner (OpProgress *const Progress=0, int timeOutSec=0)=0
 
virtual bool UnLockInner (bool NoErrors=false)=0
 
virtual bool IsLocked ()=0
 checks if the system is currently locked More...
 

Static Public Member Functions

static pkgSystemGetSystem (const char *Label)
 

Public Attributes

const char *const Label
 
pkgVersioningSystem *const VS
 

Static Public Attributes

static pkgSystem ** GlobalList = SysList
 
static unsigned long GlobalListLen = 0
 

Private Attributes

pkgSystemPrivate *const d
 

Detailed Description

Definition at line 52 of file pkgsystem.h.

Constructor & Destructor Documentation

◆ pkgSystem()

pkgSystem ( char const *const  Label,
pkgVersioningSystem *const  VS 
)

Definition at line 40 of file pkgsystem.cc.

References GlobalListLen, and SysList.

◆ ~pkgSystem()

~pkgSystem ( )
virtual

Definition at line 72 of file pkgsystem.cc.

Member Function Documentation

◆ AddStatusFiles()

virtual bool AddStatusFiles ( std::vector< pkgIndexFile * > &  List)
pure virtual

◆ ArchitecturesSupported()

virtual std::vector<std::string> ArchitecturesSupported ( ) const
pure virtual

architectures supported by this system

A MultiArch capable system might be configured to use this capability.

Returns
a list of all architectures (native + foreign) configured for on this system (aka: which can be installed without force)

Implemented in debSystem, and edspLikeSystem.

◆ ArchiveSupported()

virtual bool ArchiveSupported ( const char *  Type)
pure virtual

Implemented in debSystem, and edspLikeSystem.

◆ CreatePM()

virtual pkgPackageManager* CreatePM ( pkgDepCache Cache) const
pure virtual

Implemented in debSystem, and edspLikeSystem.

Referenced by InstallPackages().

◆ FindIndex()

virtual bool FindIndex ( pkgCache::PkgFileIterator  File,
pkgIndexFile *&  Found 
) const
pure virtual

Implemented in debSystem, and edspLikeSystem.

Referenced by DisplayRecordV2(), and Policy().

◆ GetSystem()

APT_PURE pkgSystem * GetSystem ( const char *  Label)
static

Definition at line 51 of file pkgsystem.cc.

References GlobalListLen, I, Label, and SysList.

Referenced by pkgInitSystem().

◆ GetVersionMapping()

map_id_t GetVersionMapping ( map_id_t const  in) const

Definition at line 66 of file pkgsystem.cc.

References d, and pkgSystemPrivate::idmap.

Referenced by EDSP::WriteSolutionStanza().

◆ Initialize()

virtual bool Initialize ( Configuration )
inlinevirtual

Reimplemented in debSystem, edspLikeSystem, and edspSystem.

Definition at line 75 of file pkgsystem.h.

Referenced by pkgInitSystem().

◆ IsLocked()

virtual bool IsLocked ( )
pure virtual

checks if the system is currently locked

Implemented in debSystem, and edspLikeSystem.

Referenced by debSystem::ExecDpkg(), pkgDPkgPM::Go(), RunScripts(), and pkgDPkgPM::RunScriptsWithPkgs().

◆ Lock()

virtual bool Lock ( OpProgress *const  Progress = nullptr)
pure virtual

Implemented in debSystem, and edspLikeSystem.

Referenced by pkgCacheFile::BuildCaches().

◆ LockInner()

virtual bool LockInner ( OpProgress *const  Progress = 0,
int  timeOutSec = 0 
)
pure virtual

Implemented in debSystem, and edspLikeSystem.

Referenced by InstallPackages().

◆ MultiArchSupported()

virtual bool MultiArchSupported ( ) const
pure virtual

does this system has support for MultiArch?

Systems supporting only single arch (not systems which are single arch) are considered legacy systems and support for it will likely degrade over time.

The default implementation returns always true.

Returns
true if the system supports MultiArch, false if not.

Implemented in debSystem, and edspLikeSystem.

Referenced by pkgDPkgPM::Go(), and StateChanges::Save().

◆ Score()

virtual signed Score ( Configuration const &  )
inlinevirtual

Reimplemented in debSystem, and edspLikeSystem.

Definition at line 89 of file pkgsystem.h.

Referenced by pkgInitSystem(), and ShowHelp().

◆ SetVersionMapping()

void SetVersionMapping ( map_id_t const  in,
map_id_t const  out 
)

Definition at line 60 of file pkgsystem.cc.

References d, and pkgSystemPrivate::idmap.

Referenced by edspLikeListParser::NewVersion().

◆ UnLock()

virtual bool UnLock ( bool  NoErrors = false)
pure virtual

◆ UnLockInner()

virtual bool UnLockInner ( bool  NoErrors = false)
pure virtual

Implemented in debSystem, and edspLikeSystem.

Referenced by InstallPackages().

Member Data Documentation

◆ d

pkgSystemPrivate* const d
private

Definition at line 133 of file pkgsystem.h.

Referenced by GetVersionMapping(), and SetVersionMapping().

◆ GlobalList

pkgSystem ** GlobalList = SysList
static

Definition at line 57 of file pkgsystem.h.

Referenced by pkgInitSystem(), and ShowHelp().

◆ GlobalListLen

unsigned long GlobalListLen = 0
static

Definition at line 58 of file pkgsystem.h.

Referenced by GetSystem(), pkgInitSystem(), pkgSystem(), and ShowHelp().

◆ Label

const char* const Label

Definition at line 61 of file pkgsystem.h.

Referenced by GetSystem(), and ShowHelp().

◆ VS

Definition at line 62 of file pkgsystem.h.

Referenced by ShowHelp(), and pkgCacheGenerator::Start().


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