* doc/external-dependency-solver-protocol.txt:
[ntk/apt.git] / 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/pkgcachegen.h>
16 #include <apt-pkg/indexfile.h>
17 #include <apt-pkg/tagfile.h>
18
19 class edspListParser : public debListParser
20 {
21 public:
22 virtual bool NewVersion(pkgCache::VerIterator &Ver);
23 virtual string Description();
24 virtual string DescriptionLanguage();
25 virtual MD5SumValue Description_md5();
26 virtual unsigned short VersionHash();
27
28 bool LoadReleaseInfo(pkgCache::PkgFileIterator &FileI,FileFd &File,
29 string section);
30
31 edspListParser(FileFd *File, string const &Arch = "");
32
33 protected:
34 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver);
35
36 };
37
38 #endif