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
pkgCacheGenerator::ListParser Class Referenceabstract

#include <pkgcachegen.h>

Inheritance diagram for pkgCacheGenerator::ListParser:
Collaboration diagram for pkgCacheGenerator::ListParser:

Public Member Functions

 ListParser ()
 
virtual ~ListParser ()
 
virtual std::string Architecture ()=0
 
virtual bool ArchitectureAll ()=0
 
virtual bool CollectFileProvides (pkgCache &Cache, pkgCache::VerIterator &Ver)
 
virtual std::string Description ()=0
 
virtual MD5SumValue Description_md5 ()=0
 
virtual std::string DescriptionLanguage ()=0
 
bool HasFileDeps ()
 
virtual bool NewVersion (pkgCache::VerIterator &Ver)=0
 
virtual unsigned long Offset ()=0
 
virtual std::string Package ()=0
 
virtual unsigned long Size ()=0
 
virtual bool Step ()=0
 
virtual bool UsePackage (pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver)=0
 
virtual std::string Version ()=0
 
virtual unsigned short VersionHash ()=0
 

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)
 
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)
 

Private Attributes

bool FoundFileDeps
 
map_ptrlocOldDepLast
 
pkgCache::VerIterator OldDepVer
 
pkgCacheGeneratorOwner
 

Friends

class pkgCacheGenerator
 

Constructor & Destructor Documentation

pkgCacheGenerator::ListParser::ListParser ( )
inline
virtual pkgCacheGenerator::ListParser::~ListParser ( )
inlinevirtual

Member Function Documentation

virtual std::string pkgCacheGenerator::ListParser::Architecture ( )
pure virtual

Implemented in debListParser.

virtual bool pkgCacheGenerator::ListParser::ArchitectureAll ( )
pure virtual

Implemented in debListParser.

virtual bool pkgCacheGenerator::ListParser::CollectFileProvides ( pkgCache Cache,
pkgCache::VerIterator Ver 
)
inlinevirtual
virtual std::string pkgCacheGenerator::ListParser::Description ( )
pure virtual

Implemented in debListParser, and edspListParser.

virtual MD5SumValue pkgCacheGenerator::ListParser::Description_md5 ( )
pure virtual

Implemented in debListParser, and edspListParser.

virtual std::string pkgCacheGenerator::ListParser::DescriptionLanguage ( )
pure virtual

Implemented in debListParser, and edspListParser.

bool pkgCacheGenerator::ListParser::HasFileDeps ( )
inline

References FoundFileDeps.

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 
)
protected
bool pkgCacheGenerator::ListParser::NewProvides ( pkgCache::VerIterator Ver,
const std::string &  PkgName,
const std::string &  PkgArch,
const std::string &  Version 
)
protected
virtual bool pkgCacheGenerator::ListParser::NewVersion ( pkgCache::VerIterator Ver)
pure virtual

Implemented in debListParser, and edspListParser.

virtual unsigned long pkgCacheGenerator::ListParser::Offset ( )
pure virtual

Implemented in debListParser.

virtual std::string pkgCacheGenerator::ListParser::Package ( )
pure virtual

Implemented in debListParser.

virtual unsigned long pkgCacheGenerator::ListParser::Size ( )
pure virtual

Implemented in debListParser.

virtual bool pkgCacheGenerator::ListParser::Step ( )
pure virtual

Implemented in debListParser.

virtual bool pkgCacheGenerator::ListParser::UsePackage ( pkgCache::PkgIterator Pkg,
pkgCache::VerIterator Ver 
)
pure virtual

Implemented in debListParser.

virtual std::string pkgCacheGenerator::ListParser::Version ( )
pure virtual

Implemented in debListParser.

virtual unsigned short pkgCacheGenerator::ListParser::VersionHash ( )
pure virtual

Implemented in debListParser, and edspListParser.

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

References Owner, and pkgCacheGenerator::WriteStringInMap().

Here is the call graph for this function:

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

References Owner, and pkgCacheGenerator::WriteStringInMap().

Here is the call graph for this function:

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

References Owner, and pkgCacheGenerator::WriteUniqString().

Here is the call graph for this function:

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

References Owner, and pkgCacheGenerator::WriteUniqString().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class pkgCacheGenerator
friend

Member Data Documentation

bool pkgCacheGenerator::ListParser::FoundFileDeps
private

Referenced by HasFileDeps().

map_ptrloc* pkgCacheGenerator::ListParser::OldDepLast
private
pkgCache::VerIterator pkgCacheGenerator::ListParser::OldDepVer
private
pkgCacheGenerator* pkgCacheGenerator::ListParser::Owner
private

Referenced by WriteString(), and WriteUniqString().


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