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

apt 3.1.4 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
22 class 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
34 class 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
47 class 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
FileFd
Definition fileutl.h:43
edspListParser::ParseStatus
bool ParseStatus(pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver) override
Definition edsplistparser.cc:91
pkgCache::PkgIterator
Definition cacheiterators.h:147
pkgCache::VerIterator
Definition cacheiterators.h:218
pkgcache.h
pkgCache - Structure definitions for the cache file