1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
5 EDSP Package List Parser - This implements the abstract parser
6 interface for the APT specific intermediate format which is passed
9 ##################################################################### */
11 #ifndef PKGLIB_EDSPLISTPARSER_H
12 #define PKGLIB_EDSPLISTPARSER_H
14 #include <apt-pkg/deblistparser.h>
15 #include <apt-pkg/md5.h>
16 #include <apt-pkg/pkgcache.h>
17 #include <apt-pkg/fileutl.h>
21 #ifndef APT_8_CLEANER_HEADERS
22 #include <apt-pkg/pkgcachegen.h>
23 #include <apt-pkg/indexfile.h>
24 #include <apt-pkg/tagfile.h>
27 class APT_HIDDEN edspLikeListParser
: public debListParser
30 virtual bool NewVersion(pkgCache::VerIterator
&Ver
) APT_OVERRIDE
;
31 virtual std::vector
<std::string
> AvailableDescriptionLanguages() APT_OVERRIDE
;
32 virtual MD5SumValue
Description_md5() APT_OVERRIDE
;
33 virtual unsigned short VersionHash() APT_OVERRIDE
;
35 bool LoadReleaseInfo(pkgCache::RlsFileIterator
&FileI
,FileFd
&File
,
36 std::string
const §ion
);
38 edspLikeListParser(FileFd
*File
);
39 virtual ~edspLikeListParser();
42 class APT_HIDDEN edspListParser
: public edspLikeListParser
44 FileFd extendedstates
;
48 virtual bool ParseStatus(pkgCache::PkgIterator
&Pkg
,pkgCache::VerIterator
&Ver
) APT_OVERRIDE
;
51 edspListParser(FileFd
*File
);
52 virtual ~edspListParser();
55 class APT_HIDDEN eippListParser
: public edspLikeListParser
58 virtual bool ParseStatus(pkgCache::PkgIterator
&Pkg
,pkgCache::VerIterator
&Ver
) APT_OVERRIDE
;
61 eippListParser(FileFd
*File
);
62 virtual ~eippListParser();