apt 2.9.14 commandline package manager

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
15 class OpProgress;
16 class pkgCacheGenerator;
17
18 class APT_HIDDEN edspLikeIndex : public pkgDebianIndexRealFile
19{
20 protected:
21 virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE;
22 virtual uint8_t GetIndexFlags() const APT_OVERRIDE;
23 virtual std::string GetArchitecture() const APT_OVERRIDE;
24
25 public:
26 virtual bool Exists() const APT_OVERRIDE;
27 virtual bool HasPackages() const APT_OVERRIDE;
28
29 explicit edspLikeIndex(std::string const &File);
30 virtual ~edspLikeIndex();
31};
32
33 class APT_HIDDEN edspIndex : public edspLikeIndex
34{
35 protected:
36 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
37 virtual std::string GetComponent() const APT_OVERRIDE;
38
39 public:
40 virtual const Type *GetType() const APT_OVERRIDE APT_PURE;
41
42 explicit edspIndex(std::string const &File);
43 virtual ~edspIndex();
44};
45
46 class APT_HIDDEN eippIndex : public edspLikeIndex
47{
48 protected:
49 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
50 virtual std::string GetComponent() const APT_OVERRIDE;
51
52 public:
53 virtual const Type *GetType() const APT_OVERRIDE APT_PURE;
54
55 explicit eippIndex(std::string const &File);
56 virtual ~eippIndex();
57};
58
59#endif
FileFd
Definition fileutl.h:42
OpProgress
Definition progress.h:30
edspIndex
Definition edspindexfile.h:34
edspLikeIndex
Definition edspindexfile.h:19
eippIndex
Definition edspindexfile.h:47
pkgCacheGenerator
Definition pkgcachegen.h:42
pkgCacheListParser
Definition pkgcachegen.h:177
pkgDebianIndexRealFile
Definition indexfile.h:197
pkgIndexFile::Type
Definition indexfile.h:111