]> git.saurik.com Git - apt.git/blame - apt-pkg/edsp/edspindexfile.h
eipp: enable xz-compressed scenario logging
[apt.git] / apt-pkg / edsp / edspindexfile.h
CommitLineData
6d38011b
DK
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
e0a78caa 4 The scenario file is designed to work as an intermediate file between
6d38011b
DK
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
6d38011b 11#include <apt-pkg/debindexfile.h>
453b82a3 12#include <string>
6d38011b 13
b9dadc24
DK
14#ifndef APT_8_CLEANER_HEADERS
15#include <apt-pkg/indexfile.h>
16#endif
17
453b82a3
DK
18class OpProgress;
19class pkgCacheGenerator;
20
d59671c9 21class APT_HIDDEN edspLikeIndex : public pkgDebianIndexRealFile
6d38011b 22{
c9443c01 23protected:
c9443c01
DK
24 virtual bool OpenListFile(FileFd &Pkg, std::string const &File) APT_OVERRIDE;
25 virtual uint8_t GetIndexFlags() const APT_OVERRIDE;
c9443c01 26 virtual std::string GetArchitecture() const APT_OVERRIDE;
6d38011b 27
d59671c9 28public:
c9443c01
DK
29 virtual bool Exists() const APT_OVERRIDE;
30 virtual bool HasPackages() const APT_OVERRIDE;
6d38011b 31
d59671c9
DK
32 edspLikeIndex(std::string const &File);
33 virtual ~edspLikeIndex();
34};
35
36class APT_HIDDEN edspIndex : public edspLikeIndex
37{
38protected:
39 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
40 virtual std::string GetComponent() const APT_OVERRIDE;
41
42public:
43 virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
44
c9443c01 45 edspIndex(std::string const &File);
c8a4ce6c 46 virtual ~edspIndex();
6d38011b
DK
47};
48
f74d99c6
DK
49class APT_HIDDEN eippIndex : public edspLikeIndex
50{
51protected:
52 APT_HIDDEN virtual pkgCacheListParser * CreateListParser(FileFd &Pkg) APT_OVERRIDE;
53 virtual std::string GetComponent() const APT_OVERRIDE;
54
55public:
56 virtual const Type *GetType() const APT_OVERRIDE APT_CONST;
57
58 eippIndex(std::string const &File);
59 virtual ~eippIndex();
60};
61
6d38011b 62#endif