apt 2.9.25 commandline package manager

edsplistparser.h
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 EDSP Package List Parser - This implements the abstract parser
6 interface for the APT specific intermediate format which is passed
7 to external resolvers
8
9 ##################################################################### */
10 /*}}}*/
11#ifndef PKGLIB_EDSPLISTPARSER_H
12#define PKGLIB_EDSPLISTPARSER_H
13
14#include <apt-pkg/deblistparser.h>
15#include <apt-pkg/fileutl.h>
16#include <apt-pkg/pkgcache.h>
17
18#include <string>
19
20
21 class APT_HIDDEN edspLikeListParser : public debListParser
22{
23 public:
24 bool NewVersion(pkgCache::VerIterator &Ver) override;
25 std::vector<std::string> AvailableDescriptionLanguages() override;
26 std::string_view Description_md5() override;
27 uint32_t VersionHash() override;
28
29 explicit edspLikeListParser(FileFd *File);
30 ~edspLikeListParser() override;
31};
32
33 class APT_HIDDEN edspListParser : public edspLikeListParser
34{
35 FileFd extendedstates;
36 FileFd preferences;
37
38 protected:
39 bool ParseStatus(pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver) override;
40
41 public:
42 explicit edspListParser(FileFd *File);
43 ~edspListParser() override;
44};
45
46 class APT_HIDDEN eippListParser : public edspLikeListParser
47{
48 protected:
49 bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) override;
50
51 public:
52 explicit eippListParser(FileFd *File);
53 ~eippListParser() override;
54};
55#endif
FileFd
Definition fileutl.h:42
edspListParser::ParseStatus
bool ParseStatus(pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver) override
Definition edsplistparser.cc:86
pkgCache::PkgIterator
Definition cacheiterators.h:147
pkgCache::VerIterator
Definition cacheiterators.h:193
pkgcache.h
pkgCache - Structure definitions for the cache file