edsplistparser.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef APT_8_CLEANER_HEADERS
  13. #include <apt-pkg/pkgcachegen.h>
  14. #include <apt-pkg/indexfile.h>
  15. #include <apt-pkg/tagfile.h>
  16. #endif
  17. class FileFd;
  18. class edspListParser : public debListParser
  19. {
  20. public:
  21. virtual bool NewVersion(pkgCache::VerIterator &Ver);
  22. virtual std::string Description();
  23. virtual std::string DescriptionLanguage();
  24. virtual MD5SumValue Description_md5();
  25. virtual unsigned short VersionHash();
  26. bool LoadReleaseInfo(pkgCache::PkgFileIterator &FileI,FileFd &File,
  27. std::string section);
  28. edspListParser(FileFd *File, std::string const &Arch = "");
  29. protected:
  30. virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver);
  31. };
  32. #endif