edsplistparser.h 1.0 KB

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