libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
debListParser Class Reference

#include <deblistparser.h>

Inheritance diagram for debListParser:
Collaboration diagram for debListParser:

Classes

struct  WordList
 

Public Member Functions

 debListParser (FileFd *File, std::string const &Arch="")
 
virtual ~debListParser ()
 
virtual std::string Architecture ()
 
virtual bool ArchitectureAll ()
 
virtual bool CollectFileProvides (pkgCache &Cache, pkgCache::VerIterator &Ver)
 
virtual std::string Description ()
 
virtual MD5SumValue Description_md5 ()
 
virtual std::string DescriptionLanguage ()
 
bool HasFileDeps ()
 
bool LoadReleaseInfo (pkgCache::PkgFileIterator &FileI, FileFd &File, std::string section)
 
virtual bool NewVersion (pkgCache::VerIterator &Ver)
 
virtual unsigned long Offset ()
 
virtual std::string Package ()
 
virtual unsigned long Size ()
 
virtual bool Step ()
 
virtual bool UsePackage (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver)
 
virtual std::string Version ()
 
virtual unsigned short VersionHash ()
 

Static Public Member Functions

static const char * ConvertRelation (const char *I, unsigned int &Op)
 
static unsigned char GetPrio (std::string Str)
 
static 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)
 

Protected Member Functions

bool NewDepends (pkgCache::VerIterator &Ver, const std::string &Package, const std::string &Arch, const std::string &Version, unsigned int Op, unsigned int Type)
 
bool NewProvides (pkgCache::VerIterator &Ver, const std::string &PkgName, const std::string &PkgArch, const std::string &Version)
 
bool NewProvidesAllArch (pkgCache::VerIterator &Ver, std::string const &Package, std::string const &Version)
 
bool ParseDepends (pkgCache::VerIterator &Ver, const char *Tag, unsigned int Type)
 
bool ParseProvides (pkgCache::VerIterator &Ver)
 
virtual bool ParseStatus (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver)
 
unsigned long UniqFindTagWrite (const char *Tag)
 
unsigned long WriteString (const std::string &S)
 
unsigned long WriteString (const char *S, unsigned int Size)
 
unsigned long WriteUniqString (std::string S)
 
unsigned long WriteUniqString (const char *S, unsigned int Size)
 

Static Protected Member Functions

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

Protected Attributes

std::string Arch
 
std::vector< std::string > Architectures
 
unsigned long iOffset
 
bool MultiArchEnabled
 
pkgTagSection Section
 
pkgTagFile Tags
 

Private Attributes

void * d
 dpointer placeholder (for later in case we need it) More...
 

Constructor & Destructor Documentation

debListParser::debListParser ( FileFd File,
std::string const &  Arch = "" 
)
virtual debListParser::~debListParser ( )
inlinevirtual

Member Function Documentation

virtual std::string debListParser::Architecture ( )
virtual
virtual bool debListParser::ArchitectureAll ( )
virtual
virtual bool pkgCacheGenerator::ListParser::CollectFileProvides ( pkgCache Cache,
pkgCache::VerIterator Ver 
)
inlinevirtualinherited
static const char* debListParser::ConvertRelation ( const char *  I,
unsigned int &  Op 
)
static
virtual std::string debListParser::Description ( )
virtual

Implements pkgCacheGenerator::ListParser.

Reimplemented in edspListParser.

virtual MD5SumValue debListParser::Description_md5 ( )
virtual

Implements pkgCacheGenerator::ListParser.

Reimplemented in edspListParser.

virtual std::string debListParser::DescriptionLanguage ( )
virtual

Implements pkgCacheGenerator::ListParser.

Reimplemented in edspListParser.

static unsigned char debListParser::GetPrio ( std::string  Str)
static
static bool debListParser::GrabWord ( std::string  Word,
WordList List,
unsigned char &  Out 
)
staticprotected
bool pkgCacheGenerator::ListParser::HasFileDeps ( )
inlineinherited
bool debListParser::LoadReleaseInfo ( pkgCache::PkgFileIterator FileI,
FileFd File,
std::string  section 
)
bool pkgCacheGenerator::ListParser::NewDepends ( pkgCache::VerIterator Ver,
const std::string &  Package,
const std::string &  Arch,
const std::string &  Version,
unsigned int  Op,
unsigned int  Type 
)
protectedinherited
bool pkgCacheGenerator::ListParser::NewProvides ( pkgCache::VerIterator Ver,
const std::string &  PkgName,
const std::string &  PkgArch,
const std::string &  Version 
)
protectedinherited
bool debListParser::NewProvidesAllArch ( pkgCache::VerIterator Ver,
std::string const &  Package,
std::string const &  Version 
)
protected
virtual bool debListParser::NewVersion ( pkgCache::VerIterator Ver)
virtual

Implements pkgCacheGenerator::ListParser.

Reimplemented in edspListParser.

virtual unsigned long debListParser::Offset ( )
inlinevirtual

Implements pkgCacheGenerator::ListParser.

References iOffset.

virtual std::string debListParser::Package ( )
virtual
bool debListParser::ParseDepends ( pkgCache::VerIterator Ver,
const char *  Tag,
unsigned int  Type 
)
protected
static const char* debListParser::ParseDepends ( const char *  Start,
const char *  Stop,
std::string &  Package,
std::string &  Ver,
unsigned int &  Op,
bool const &  ParseArchFlags = false,
bool const &  StripMultiArch = true 
)
static
bool debListParser::ParseProvides ( pkgCache::VerIterator Ver)
protected
virtual bool debListParser::ParseStatus ( pkgCache::PkgIterator Pkg,
pkgCache::VerIterator Ver 
)
protectedvirtual

Reimplemented in edspListParser.

virtual unsigned long debListParser::Size ( )
inlinevirtual

Implements pkgCacheGenerator::ListParser.

References Section, and pkgTagSection::size().

Here is the call graph for this function:

virtual bool debListParser::Step ( )
virtual
unsigned long debListParser::UniqFindTagWrite ( const char *  Tag)
protected
virtual bool debListParser::UsePackage ( pkgCache::PkgIterator Pkg,
pkgCache::VerIterator Ver 
)
virtual
virtual std::string debListParser::Version ( )
virtual
virtual unsigned short debListParser::VersionHash ( )
virtual

Implements pkgCacheGenerator::ListParser.

Reimplemented in edspListParser.

unsigned long pkgCacheGenerator::ListParser::WriteString ( const std::string &  S)
inlineprotectedinherited

References pkgCacheGenerator::ListParser::Owner, and pkgCacheGenerator::WriteStringInMap().

Here is the call graph for this function:

unsigned long pkgCacheGenerator::ListParser::WriteString ( const char *  S,
unsigned int  Size 
)
inlineprotectedinherited

References pkgCacheGenerator::ListParser::Owner, and pkgCacheGenerator::WriteStringInMap().

Here is the call graph for this function:

unsigned long pkgCacheGenerator::ListParser::WriteUniqString ( std::string  S)
inlineprotectedinherited

References pkgCacheGenerator::ListParser::Owner, and pkgCacheGenerator::WriteUniqString().

Here is the call graph for this function:

unsigned long pkgCacheGenerator::ListParser::WriteUniqString ( const char *  S,
unsigned int  Size 
)
inlineprotectedinherited

References pkgCacheGenerator::ListParser::Owner, and pkgCacheGenerator::WriteUniqString().

Here is the call graph for this function:

Member Data Documentation

std::string debListParser::Arch
protected
std::vector<std::string> debListParser::Architectures
protected
void* debListParser::d
private

dpointer placeholder (for later in case we need it)

unsigned long debListParser::iOffset
protected

Referenced by Offset().

bool debListParser::MultiArchEnabled
protected
pkgTagSection debListParser::Section
protected

Referenced by Size().

pkgTagFile debListParser::Tags
protected

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