edspindexfile.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #endif