edspindexfile.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. The scenario file is designed to work as an intermediate file between
  5. APT and the resolver. Its on propose very similar to a dpkg status file
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef PKGLIB_EDSPINDEXFILE_H
  9. #define PKGLIB_EDSPINDEXFILE_H
  10. #include <apt-pkg/debindexfile.h>
  11. #include <string>
  12. #ifndef APT_8_CLEANER_HEADERS
  13. #include <apt-pkg/indexfile.h>
  14. #endif
  15. class OpProgress;
  16. class pkgCacheGenerator;
  17. class APT_HIDDEN edspLikeIndex : public pkgDebianIndexRealFile
  18. {
  19. protected:
  20. virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE;
  21. virtual uint8_t GetIndexFlags() const APT_OVERRIDE;
  22. virtual std::string GetArchitecture() const APT_OVERRIDE;
  23. public:
  24. virtual bool Exists() const APT_OVERRIDE;
  25. virtual bool HasPackages() const APT_OVERRIDE;
  26. edspLikeIndex(std::string const &File);
  27. virtual ~edspLikeIndex();
  28. };
  29. class APT_HIDDEN edspIndex : public edspLikeIndex
  30. {
  31. protected:
  32. APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
  33. virtual std::string GetComponent() const APT_OVERRIDE;
  34. public:
  35. virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
  36. edspIndex(std::string const &File);
  37. virtual ~edspIndex();
  38. };
  39. class APT_HIDDEN eippIndex : public edspLikeIndex
  40. {
  41. protected:
  42. APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
  43. virtual std::string GetComponent() const APT_OVERRIDE;
  44. public:
  45. virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
  46. eippIndex(std::string const &File);
  47. virtual ~eippIndex();
  48. };
  49. #endif