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

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