edsplistparser.h 1.1 KB

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