apt
3.0.3
commandline package manager
apt-pkg
edsp
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
39
protected
:
40
bool
ParseStatus(pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver)
override
;
41
42
public
:
43
explicit
edspListParser
(
FileFd
*File);
44
~edspListParser
()
override
;
45
};
46
47
class
APT_HIDDEN
eippListParser
:
public
edspLikeListParser
48
{
49
protected
:
50
bool
ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver)
override
;
51
52
public
:
53
explicit
eippListParser
(
FileFd
*File);
54
~eippListParser
()
override
;
55
};
56
#endif
FileFd
Definition
fileutl.h:43
debListParser
Definition
deblistparser.h:29
edspLikeListParser
Definition
edsplistparser.h:23
edspListParser
Definition
edsplistparser.h:35
eippListParser
Definition
edsplistparser.h:48
pkgcache.h
pkgCache - Structure definitions for the cache file
Generated by
1.9.8