]>
Commit | Line | Data |
---|---|---|
6d38011b DK |
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> | |
453b82a3 DK |
15 | #include <apt-pkg/md5.h> |
16 | #include <apt-pkg/pkgcache.h> | |
17 | ||
18 | #include <string> | |
472ff00e | 19 | |
b9dadc24 DK |
20 | #ifndef APT_8_CLEANER_HEADERS |
21 | #include <apt-pkg/pkgcachegen.h> | |
22 | #include <apt-pkg/indexfile.h> | |
23 | #include <apt-pkg/tagfile.h> | |
24 | #endif | |
25 | ||
472ff00e | 26 | class FileFd; |
188a6fcf | 27 | class edspListParserPrivate; |
6d38011b | 28 | |
dce45dbe | 29 | class APT_HIDDEN edspListParser : public debListParser |
6d38011b | 30 | { |
188a6fcf | 31 | edspListParserPrivate * const d; |
6d38011b | 32 | public: |
3b302846 | 33 | virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE; |
8f3ba4e8 DK |
34 | virtual std::string Description(); |
35 | virtual std::string DescriptionLanguage(); | |
3b302846 DK |
36 | virtual MD5SumValue Description_md5() APT_OVERRIDE; |
37 | virtual unsigned short VersionHash() APT_OVERRIDE; | |
6d38011b | 38 | |
b07aeb1a DK |
39 | bool LoadReleaseInfo(pkgCache::RlsFileIterator &FileI,FileFd &File, |
40 | std::string const §ion); | |
6d38011b | 41 | |
7f8c0eed | 42 | edspListParser(FileFd *File); |
c8a4ce6c | 43 | virtual ~edspListParser(); |
6d38011b DK |
44 | |
45 | protected: | |
3b302846 | 46 | virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE; |
6d38011b DK |
47 | |
48 | }; | |
49 | ||
50 | #endif |