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