apt: debRecordParserBase Class Reference

apt 3.3.1 commandline package manager

Public Member Functions | Protected Attributes | List of all members
debRecordParserBase Class Reference
Inheritance diagram for debRecordParserBase:

## Public Member Functions
std::string | FileName () override
std::string | SourcePkg () override
std::string | SourceVer () override
HashStringList | Hashes () const override
std::string | Maintainer () override
std::string | ShortDesc (std::string const &lang) override
std::string | LongDesc (std::string const &lang) override
std::string | Name () override
std::string | Homepage () override
std::string | RecordField (const char *fieldName) override
void | GetRec (const char *&Start, const char *&Stop) override
Public Member Functions inherited from pkgRecords::Parser
std::string | ShortDesc ()
std::string | LongDesc ()

## Protected Attributes
pkgTagSection | Section

## Additional Inherited Members
Protected Member Functions inherited from pkgRecords::Parser
virtual bool | Jump (pkgCache::VerFileIterator const &Ver)=0
virtual bool | Jump (pkgCache::DescFileIterator const &Desc)=0

## Member Function Documentation

## ◆ FileName()

string FileName | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ GetRec()

void GetRec | ( | const char *& | Start,
|  | const char *& | Stop )
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ Hashes()

HashStringList Hashes | ( |  | ) | const
| nodiscardoverridevirtual

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.

Reimplemented from pkgRecords::Parser.

References HashStringList::FileSize(), and HashStringList::push_back().

## ◆ Homepage()

string Homepage | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ LongDesc()

string LongDesc | ( | std::string const & |  | ) |
| overridevirtual

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.

Reimplemented from pkgRecords::Parser.

Referenced by ShortDesc().

## ◆ Maintainer()

string Maintainer | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ Name()

string Name | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ RecordField()

string RecordField | ( | const char * | fieldName | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ ShortDesc()

string ShortDesc | ( | std::string const & |  | ) |
| overridevirtual

return short description in language from record.

See also
  LongDesc

Reimplemented from pkgRecords::Parser.

References LongDesc().

## ◆ SourcePkg()

string SourcePkg | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

## ◆ SourceVer()

string SourceVer | ( |  | ) |
| overridevirtual

Reimplemented from pkgRecords::Parser.

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

- apt-pkg/deb/debrecords.h
- apt-pkg/deb/debrecords.cc