]> git.saurik.com Git - apt.git/blob - apt-pkg/edsp/edspindexfile.h
VersionHash: Do not skip too long dependency lines
[apt.git] / apt-pkg / edsp / edspindexfile.h
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
11 #include <apt-pkg/debindexfile.h>
12 #include <string>
13
14 #ifndef APT_8_CLEANER_HEADERS
15 #include <apt-pkg/indexfile.h>
16 #endif
17
18 class OpProgress;
19 class pkgCacheGenerator;
20
21 class APT_HIDDEN edspLikeIndex : public pkgDebianIndexRealFile
22 {
23 protected:
24 virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE;
25 virtual uint8_t GetIndexFlags() const APT_OVERRIDE;
26 virtual std::string GetArchitecture() const APT_OVERRIDE;
27
28 public:
29 virtual bool Exists() const APT_OVERRIDE;
30 virtual bool HasPackages() const APT_OVERRIDE;
31
32 edspLikeIndex(std::string const &File);
33 virtual ~edspLikeIndex();
34 };
35
36 class APT_HIDDEN edspIndex : public edspLikeIndex
37 {
38 protected:
39 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
40 virtual std::string GetComponent() const APT_OVERRIDE;
41
42 public:
43 virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
44
45 edspIndex(std::string const &File);
46 virtual ~edspIndex();
47 };
48
49 class APT_HIDDEN eippIndex : public edspLikeIndex
50 {
51 protected:
52 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
53 virtual std::string GetComponent() const APT_OVERRIDE;
54
55 public:
56 virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
57
58 eippIndex(std::string const &File);
59 virtual ~eippIndex();
60 };
61
62 #endif