edspindexfile.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 edspIndex : public pkgDebianIndexRealFile
  18. {
  19. /** \brief dpointer placeholder (for later in case we need it) */
  20. void * const d;
  21. protected:
  22. APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
  23. virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE;
  24. virtual uint8_t GetIndexFlags() const APT_OVERRIDE;
  25. virtual std::string GetComponent() const APT_OVERRIDE;
  26. virtual std::string GetArchitecture() const APT_OVERRIDE;
  27. public:
  28. virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
  29. virtual bool Exists() const APT_OVERRIDE;
  30. virtual bool HasPackages() const APT_OVERRIDE;
  31. edspIndex(std::string const &File);
  32. virtual ~edspIndex();
  33. };
  34. #endif