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>
20 #ifndef APT_8_CLEANER_HEADERS
21 #include <apt-pkg/pkgcachegen.h>
22 #include <apt-pkg/indexfile.h>
23 #include <apt-pkg/tagfile.h>
27 class edspListParserPrivate
;
29 class APT_HIDDEN edspListParser
: public debListParser
31 edspListParserPrivate
* const d
;
33 virtual bool NewVersion(pkgCache::VerIterator
&Ver
) APT_OVERRIDE
;
34 virtual std::vector
<std::string
> AvailableDescriptionLanguages() APT_OVERRIDE
;
35 virtual MD5SumValue
Description_md5() APT_OVERRIDE
;
36 virtual unsigned short VersionHash() APT_OVERRIDE
;
38 bool LoadReleaseInfo(pkgCache::RlsFileIterator
&FileI
,FileFd
&File
,
39 std::string
const §ion
);
41 edspListParser(FileFd
*File
);
42 virtual ~edspListParser();
45 virtual bool ParseStatus(pkgCache::PkgIterator
&Pkg
,pkgCache::VerIterator
&Ver
) APT_OVERRIDE
;