apt: pkgRecords Class Reference

apt 2.7.5 commandline package manager

Public Member Functions | Protected Member Functions | List of all members
pkgRecords Class Referenceabstract
Inheritance diagram for pkgRecords:

## Public Member Functions
Parser & | Lookup (pkgCache::VerFileIterator const &Ver)
Parser & | Lookup (pkgCache::DescFileIterator const &Desc)
| pkgRecords (pkgCache &Cache)
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 ()

## Protected Member Functions
virtual bool | Jump (pkgCache::VerFileIterator const &Ver)=0
virtual bool | Jump (pkgCache::DescFileIterator const &Desc)=0

## Member Function Documentation

## ◆ 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.

## ◆ LongDesc()

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.

## ◆ ShortDesc()

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

return short description in language from record.

See also
  LongDesc

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

- apt-pkg/pkgrecords.h
- apt-pkg/pkgrecords.cc