apt: apt-pkg/edsp/edsplistparser.h Source File

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