apt 3.0.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;
17
18class 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
33class 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
46class 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
Definition fileutl.h:43
Definition progress.h:30
Definition edspindexfile.h:34
Definition edspindexfile.h:19
Definition edspindexfile.h:47
Definition pkgcachegen.h:43
Definition pkgcachegen.h:178
Definition indexfile.h:197
Definition indexfile.h:111