edsplistparser.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. EDSP Package List Parser - This implements the abstract parser
  5. interface for the APT specific intermediate format which is passed
  6. to external resolvers
  7. ##################################################################### */
  8. /*}}}*/
  9. #ifndef PKGLIB_EDSPLISTPARSER_H
  10. #define PKGLIB_EDSPLISTPARSER_H
  11. #include <apt-pkg/deblistparser.h>
  12. #include <apt-pkg/md5.h>
  13. #include <apt-pkg/pkgcache.h>
  14. #include <string>
  15. #ifndef APT_8_CLEANER_HEADERS
  16. #include <apt-pkg/pkgcachegen.h>
  17. #include <apt-pkg/indexfile.h>
  18. #include <apt-pkg/tagfile.h>
  19. #endif
  20. class FileFd;
  21. class edspListParserPrivate;
  22. class APT_HIDDEN edspListParser : public debListParser
  23. {
  24. edspListParserPrivate * const d;
  25. public:
  26. virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE;
  27. virtual std::string Description();
  28. virtual std::string DescriptionLanguage();
  29. virtual MD5SumValue Description_md5() APT_OVERRIDE;
  30. virtual unsigned short VersionHash() APT_OVERRIDE;
  31. bool LoadReleaseInfo(pkgCache::RlsFileIterator &FileI,FileFd &File,
  32. std::string const &section);
  33. edspListParser(FileFd *File);
  34. virtual ~edspListParser();
  35. protected:
  36. virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE;
  37. };
  38. #endif