edsplistparser.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 edspListParser : public debListParser
  22. {
  23. public:
  24. virtual bool NewVersion(pkgCache::VerIterator &Ver);
  25. virtual std::string Description();
  26. virtual std::string DescriptionLanguage();
  27. virtual MD5SumValue Description_md5();
  28. virtual unsigned short VersionHash();
  29. bool LoadReleaseInfo(pkgCache::PkgFileIterator &FileI,FileFd &File,
  30. std::string section);
  31. edspListParser(FileFd *File, std::string const &Arch = "");
  32. protected:
  33. virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver);
  34. };
  35. #endif