]>
Commit | Line | Data |
---|---|---|
6d38011b DK |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | /* ###################################################################### | |
e0a78caa | 4 | The scenario file is designed to work as an intermediate file between |
6d38011b DK |
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 | ||
6d38011b | 11 | #include <apt-pkg/debindexfile.h> |
453b82a3 | 12 | #include <string> |
6d38011b | 13 | |
b9dadc24 DK |
14 | #ifndef APT_8_CLEANER_HEADERS |
15 | #include <apt-pkg/indexfile.h> | |
16 | #endif | |
17 | ||
453b82a3 DK |
18 | class OpProgress; |
19 | class pkgCacheGenerator; | |
20 | ||
c9443c01 | 21 | class APT_HIDDEN edspIndex : public pkgDebianIndexRealFile |
6d38011b | 22 | { |
627e99b0 | 23 | /** \brief dpointer placeholder (for later in case we need it) */ |
6c55f07a | 24 | void * const d; |
627e99b0 | 25 | |
c9443c01 DK |
26 | protected: |
27 | APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE; | |
28 | virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE; | |
29 | virtual uint8_t GetIndexFlags() const APT_OVERRIDE; | |
30 | virtual std::string GetComponent() const APT_OVERRIDE; | |
31 | virtual std::string GetArchitecture() const APT_OVERRIDE; | |
32 | public: | |
6d38011b | 33 | |
6d7122b5 | 34 | virtual const Type *GetType() const APT_OVERRIDE APT_CONST; |
c9443c01 DK |
35 | virtual bool Exists() const APT_OVERRIDE; |
36 | virtual bool HasPackages() const APT_OVERRIDE; | |
6d38011b | 37 | |
c9443c01 | 38 | edspIndex(std::string const &File); |
c8a4ce6c | 39 | virtual ~edspIndex(); |
6d38011b DK |
40 | }; |
41 | ||
42 | #endif |