apt 3.0.3
commandline package manager
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
debListParser Class Reference
Inheritance diagram for debListParser:
[legend]
Collaboration diagram for debListParser:
[legend]

Classes

struct  WordList
 

Public Member Functions

std::string Package () override
 
bool ArchitectureAll () override
 
std::string_view Architecture () override
 
std::string_view Version () override
 
bool NewVersion (pkgCache::VerIterator &Ver) override
 
std::vector< std::string > AvailableDescriptionLanguages () override
 
std::string_view Description_md5 () override
 
uint32_t VersionHash () override
 
bool SameVersion (uint32_t Hash, pkgCache::VerIterator const &Ver) override
 
bool UsePackage (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver) override
 
map_filesize_t Offset () override
 
map_filesize_t Size () override
 
bool Step () override
 
 debListParser (FileFd *File)
 
- Public Member Functions inherited from pkgCacheListParser
virtual bool CollectFileProvides (pkgCache &, pkgCache::VerIterator &)
 

Static Public Member Functions

static APT_PUBLIC unsigned char GetPrio (std::string Str)
 
static APT_PUBLIC const char * ParseDepends (const char *Start, const char *Stop, std::string &Package, std::string &Ver, unsigned int &Op, bool const &ParseArchFlags=false, bool const &StripMultiArch=true, bool const &ParseRestrictionsList=false, std::string const &Arch="")
 
static APT_PUBLIC const char * ParseDepends (const char *Start, const char *Stop, std::string_view &Package, std::string_view &Ver, unsigned int &Op, bool ParseArchFlags=false, bool StripMultiArch=true, bool ParseRestrictionsList=false, std::string Arch="")
 
static APT_PUBLIC const char * ConvertRelation (const char *I, unsigned int &Op)
 

Protected Member Functions

virtual bool ParseStatus (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver)
 
bool ParseDepends (pkgCache::VerIterator &Ver, pkgTagSection::Key Key, unsigned int Type)
 
bool ParseProvides (pkgCache::VerIterator &Ver)
 
APT_HIDDEN unsigned char ParseMultiArch (bool const showErrors)
 
- Protected Member Functions inherited from pkgCacheListParser
bool NewGroup (pkgCache::GrpIterator &Grp, std::string_view Name)
 
map_stringitem_t StoreString (pkgCacheGenerator::StringType const type, const char *S, unsigned int Size)
 
map_stringitem_t StoreString (pkgCacheGenerator::StringType const type, std::string_view S)
 
map_stringitem_t WriteString (std::string_view S)
 
map_stringitem_t WriteString (const char *S, unsigned int Size)
 
bool NewDepends (pkgCache::VerIterator &Ver, std::string_view Package, std::string_view Arch, std::string_view Version, uint8_t const Op, uint8_t const Type)
 
bool NewProvides (pkgCache::VerIterator &Ver, std::string_view PkgName, std::string_view PkgArch, std::string_view Version, uint8_t const Flags)
 
bool NewProvidesAllArch (pkgCache::VerIterator &Ver, std::string_view Package, std::string_view Version, uint8_t const Flags)
 

Static Protected Member Functions

static APT_HIDDEN bool GrabWord (std::string_view Word, const WordList *List, unsigned char &Out)
 

Protected Attributes

pkgTagFile Tags
 
pkgTagSection Section
 
map_filesize_t iOffset
 

Member Function Documentation

◆ Architecture()

std::string_view Architecture ( )
overridevirtual

Implements pkgCacheListParser.

◆ ArchitectureAll()

bool ArchitectureAll ( )
overridevirtual

Implements pkgCacheListParser.

◆ AvailableDescriptionLanguages()

std::vector< std::string > AvailableDescriptionLanguages ( )
overridevirtual

Implements pkgCacheListParser.

◆ Description_md5()

std::string_view Description_md5 ( )
overridevirtual

Implements pkgCacheListParser.

◆ NewVersion()

bool NewVersion ( pkgCache::VerIterator &  Ver)
overridevirtual

Implements pkgCacheListParser.

◆ Offset()

map_filesize_t Offset ( )
inlineoverridevirtual

Implements pkgCacheListParser.

◆ Package()

string Package ( )
overridevirtual

Implements pkgCacheListParser.

◆ ParseStatus()

bool ParseStatus ( pkgCache::PkgIterator &  Pkg,
pkgCache::VerIterator &  Ver 
)
protectedvirtual

Reimplemented in edspListParser.

◆ SameVersion()

bool SameVersion ( uint32_t  Hash,
pkgCache::VerIterator const &  Ver 
)
overridevirtual

compare currently parsed version with given version

Parameters
Hashof the currently parsed version
Verto compare with

Reimplemented from pkgCacheListParser.

References pkgCacheListParser::SameVersion().

◆ Size()

map_filesize_t Size ( )
inlineoverridevirtual

Implements pkgCacheListParser.

◆ Step()

bool Step ( )
overridevirtual

Implements pkgCacheListParser.

◆ UsePackage()

bool UsePackage ( pkgCache::PkgIterator &  Pkg,
pkgCache::VerIterator &  Ver 
)
overridevirtual

Implements pkgCacheListParser.

◆ Version()

std::string_view Version ( )
overridevirtual

Implements pkgCacheListParser.

◆ VersionHash()

uint32_t VersionHash ( )
overridevirtual

Implements pkgCacheListParser.


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