edsplistparser.h 1.3 KB

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