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)  

pkgRecords Class Referenceabstract

#include <pkgrecords.h>

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

Public Member Functions

ParserLookup (pkgCache::VerFileIterator const &Ver)
 
ParserLookup (pkgCache::DescFileIterator const &Desc)
 
 pkgRecords (pkgCache &Cache)
 
virtual ~pkgRecords ()
 
virtual std::string FileName ()
 
virtual std::string SourcePkg ()
 
virtual std::string SourceVer ()
 
virtual HashStringList Hashes () const
 
virtual std::string Maintainer ()
 
virtual std::string ShortDesc (std::string const &)
 
virtual std::string LongDesc (std::string const &)
 
std::string ShortDesc ()
 
std::string LongDesc ()
 
virtual std::string Name ()
 
virtual std::string Homepage ()
 
virtual std::string RecordField (const char *)
 
virtual void GetRec (const char *&Start, const char *&Stop)
 
 Parser ()
 
virtual ~Parser ()
 

Protected Member Functions

virtual bool Jump (pkgCache::VerFileIterator const &Ver)=0
 
virtual bool Jump (pkgCache::DescFileIterator const &Desc)=0
 

Private Member Functions

APT_HIDDEN std::string GetHashFromHashes (char const *const type) const
 

Private Attributes

void *const d
 dpointer placeholder (for later in case we need it) More...
 
pkgCacheCache
 
std::vector< Parser * > Files
 

Friends

class pkgRecords
 

Detailed Description

Definition at line 26 of file pkgrecords.h.

Constructor & Destructor Documentation

◆ pkgRecords()

◆ ~pkgRecords()

~pkgRecords ( )
virtual

Definition at line 49 of file pkgrecords.cc.

References Files.

◆ ~Parser()

virtual ~Parser ( )
virtual

Member Function Documentation

◆ FileName()

virtual std::string FileName ( )
inlinevirtual

Definition at line 59 of file pkgrecords.h.

◆ GetHashFromHashes()

APT_HIDDEN std::string GetHashFromHashes ( char const *const  type) const
inlineprivate

Definition at line 103 of file pkgrecords.h.

References HashStringList::find(), Hashes(), and HashString::HashValue().

◆ GetRec()

virtual void GetRec ( const char *&  Start,
const char *&  Stop 
)
inlinevirtual

Definition at line 96 of file pkgrecords.h.

◆ Hashes()

virtual HashStringList Hashes ( ) const
inlinevirtual

return all known hashes in this record.

For authentication proposes packages come with hashsums which this method is supposed to parse and return so that clients can choose the hash to be used.

Definition at line 69 of file pkgrecords.h.

Referenced by GetHashFromHashes().

◆ Homepage()

virtual std::string Homepage ( )
inlinevirtual

Definition at line 90 of file pkgrecords.h.

◆ Jump() [1/2]

virtual bool Jump ( pkgCache::DescFileIterator const &  Desc)
protectedpure virtual

◆ Jump() [2/2]

virtual bool Jump ( pkgCache::VerFileIterator const &  Ver)
protectedpure virtual

◆ LongDesc() [1/2]

std::string LongDesc ( )
inline

Definition at line 87 of file pkgrecords.h.

References LongDesc().

Referenced by LongDesc().

◆ LongDesc() [2/2]

virtual std::string LongDesc ( std::string const &  )
inlinevirtual

return long description in language from record.

If lang is empty the "best" available language will be returned as determined by the APT::Languages configuration. If a (requested) language can't be found in this record an empty string will be returned.

Definition at line 85 of file pkgrecords.h.

◆ Lookup() [1/2]

pkgRecords::Parser & Lookup ( pkgCache::DescFileIterator const &  Desc)

Definition at line 71 of file pkgrecords.cc.

References Files.

◆ Lookup() [2/2]

◆ Maintainer()

virtual std::string Maintainer ( )
inlinevirtual

Definition at line 72 of file pkgrecords.h.

◆ Name()

virtual std::string Name ( )
inlinevirtual

Definition at line 89 of file pkgrecords.h.

◆ Parser()

◆ RecordField()

virtual std::string RecordField ( const char *  )
inlinevirtual

Definition at line 93 of file pkgrecords.h.

◆ ShortDesc() [1/2]

std::string ShortDesc ( )
inline

Definition at line 86 of file pkgrecords.h.

References ShortDesc().

Referenced by ShortDesc().

◆ ShortDesc() [2/2]

virtual std::string ShortDesc ( std::string const &  )
inlinevirtual

return short description in language from record.

See also
LongDesc

Definition at line 77 of file pkgrecords.h.

◆ SourcePkg()

virtual std::string SourcePkg ( )
inlinevirtual

Definition at line 60 of file pkgrecords.h.

◆ SourceVer()

virtual std::string SourceVer ( )
inlinevirtual

Definition at line 61 of file pkgrecords.h.

Friends And Related Function Documentation

◆ pkgRecords

friend class pkgRecords
friend

Definition at line 56 of file pkgrecords.h.

Member Data Documentation

◆ Cache

pkgCache& Cache
private

Definition at line 35 of file pkgrecords.h.

Referenced by pkgRecords().

◆ d

void *const d
private

dpointer placeholder (for later in case we need it)

Definition at line 33 of file pkgrecords.h.

◆ Files

std::vector<Parser *> Files
private

Definition at line 36 of file pkgrecords.h.

Referenced by Lookup(), pkgRecords(), and ~pkgRecords().


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