apt 2.9.14 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 virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE;
25 virtual std::vector<std::string> AvailableDescriptionLanguages() APT_OVERRIDE;
26 virtual std::string_view Description_md5() APT_OVERRIDE;
27 virtual uint32_t VersionHash() APT_OVERRIDE;
28
29 explicit edspLikeListParser(FileFd *File);
30 virtual ~edspLikeListParser();
31};
32
33 class APT_HIDDEN edspListParser : public edspLikeListParser
34{
35 FileFd extendedstates;
36 FileFd preferences;
37
38 protected:
39 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE;
40
41 public:
42 explicit edspListParser(FileFd *File);
43 virtual ~edspListParser();
44};
45
46 class APT_HIDDEN eippListParser : public edspLikeListParser
47{
48 protected:
49 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE;
50
51 public:
52 explicit eippListParser(FileFd *File);
53 virtual ~eippListParser();
54};
55#endif
FileFd
Definition fileutl.h:42
debListParser
Definition deblistparser.h:28
edspLikeListParser
Definition edsplistparser.h:22
edspListParser
Definition edsplistparser.h:34
eippListParser
Definition edsplistparser.h:47
pkgCache::PkgIterator
Definition cacheiterators.h:147
pkgCache::VerIterator
Definition cacheiterators.h:193
pkgcache.h
pkgCache - Structure definitions for the cache file