apt: apt-pkg/edsp/edspindexfile.h Source File

apt 2.7.6 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
15class OpProgress;
16class pkgCacheGenerator;
17
18 class APT_HIDDEN edspLikeIndex : public pkgDebianIndexRealFile
19{
20protected:
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
25public:
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{
35protected:
36 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
37 virtual std::string GetComponent() const APT_OVERRIDE;
38
39public:
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{
48protected:
49 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
50 virtual std::string GetComponent() const APT_OVERRIDE;
51
52public:
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:41
OpProgress
Definition progress.h:30
edspIndex
Definition edspindexfile.h:34
edspLikeIndex
Definition edspindexfile.h:19
eippIndex
Definition edspindexfile.h:47
pkgCacheGenerator
Definition pkgcachegen.h:43
pkgCacheListParser
Definition pkgcachegen.h:178
pkgDebianIndexRealFile
Definition indexfile.h:197
pkgIndexFile::Type
Definition indexfile.h:111