27 #ifndef PKGLIB_SOURCELIST_H
28 #define PKGLIB_SOURCELIST_H
34 #include <apt-pkg/tagfile.h>
36 #ifndef APT_8_CLEANER_HEADERS
37 #include <apt-pkg/metaindex.h>
56 static Type **GlobalList;
57 static unsigned long GlobalListLen;
58 static Type *GetType(
const char *
Type);
63 bool FixupURI(std::string &
URI)
const;
64 virtual bool ParseStanza(std::vector<metaIndex *> &List,
68 virtual bool ParseLine(std::vector<metaIndex *> &List,
70 unsigned long const &CurLine,std::string
const &File)
const;
71 virtual bool CreateItem(std::vector<metaIndex *> &List,std::string
const &URI,
72 std::string
const &Dist,std::string
const &Section,
73 std::map<std::string, std::string>
const &Options)
const = 0;
78 typedef std::vector<metaIndex *>::const_iterator const_iterator;
82 std::vector<metaIndex *> SrcList;
84 int ParseFileDeb822(std::string File);
85 bool ParseFileOldStyle(std::string File);
90 bool Read(std::string File);
94 bool ReadAppend(std::string File);
95 bool ReadSourceDir(std::string Dir);
98 inline const_iterator begin()
const {
return SrcList.begin();};
99 inline const_iterator end()
const {
return SrcList.end();};
100 inline unsigned int size()
const {
return SrcList.size();};
101 inline bool empty()
const {
return SrcList.empty();};
105 bool GetIndexes(
pkgAcquire *Owner,
bool GetAll=
false)
const;
108 time_t GetLastModifiedTime();
pkgCache - Structure definitions for the cache file
Definition: indexfile.h:40
The core download scheduler. {{{.
Definition: acquire.h:93
Definition: sourcelist.h:46
Definition: sourcelist.h:51
Definition: cacheiterators.h:352