]>
git.saurik.com Git - apt.git/blob - apt-pkg/deb/debmetaindex.h
2 #ifndef PKGLIB_DEBMETAINDEX_H
3 #define PKGLIB_DEBMETAINDEX_H
5 #include <apt-pkg/metaindex.h>
6 #include <apt-pkg/sourcelist.h>
10 class debReleaseIndex
: public metaIndex
{
16 debSectionEntry (string
const &Section
, bool const &IsSrc
);
22 /** \brief dpointer placeholder (for later in case we need it) */
24 std::map
<string
, vector
<debSectionEntry
const*> > ArchEntries
;
28 debReleaseIndex(string
const &URI
, string
const &Dist
);
29 virtual ~debReleaseIndex();
31 virtual string
ArchiveURI(string
const &File
) const {return URI
+ File
;};
32 virtual bool GetIndexes(pkgAcquire
*Owner
, bool const &GetAll
=false) const;
33 vector
<struct IndexTarget
*>* ComputeIndexTargets() const;
34 string
Info(const char *Type
, string
const &Section
, string
const &Arch
="") const;
35 string
MetaIndexInfo(const char *Type
) const;
36 string
MetaIndexFile(const char *Types
) const;
37 string
MetaIndexURI(const char *Type
) const;
38 string
IndexURI(const char *Type
, string
const &Section
, string
const &Arch
="native") const;
39 string
IndexURISuffix(const char *Type
, string
const &Section
, string
const &Arch
="native") const;
40 string
SourceIndexURI(const char *Type
, const string
&Section
) const;
41 string
SourceIndexURISuffix(const char *Type
, const string
&Section
) const;
42 string
TranslationIndexURI(const char *Type
, const string
&Section
) const;
43 string
TranslationIndexURISuffix(const char *Type
, const string
&Section
) const;
44 virtual vector
<pkgIndexFile
*> *GetIndexFiles();
46 virtual bool IsTrusted() const;
48 void PushSectionEntry(vector
<string
> const &Archs
, const debSectionEntry
*Entry
);
49 void PushSectionEntry(string
const &Arch
, const debSectionEntry
*Entry
);
50 void PushSectionEntry(const debSectionEntry
*Entry
);