27 #ifndef PKGLIB_SOURCELIST_H
28 #define PKGLIB_SOURCELIST_H
35 #ifndef APT_8_CLEANER_HEADERS
36 #include <apt-pkg/metaindex.h>
55 static Type **GlobalList;
56 static unsigned long GlobalListLen;
57 static Type *GetType(
const char *
Type);
62 bool FixupURI(std::string &
URI)
const;
63 virtual bool ParseLine(std::vector<metaIndex *> &List,
65 unsigned long const &CurLine,std::string
const &File)
const;
66 virtual bool CreateItem(std::vector<metaIndex *> &List,std::string
const &URI,
67 std::string
const &Dist,std::string
const &Section,
68 std::map<std::string, std::string>
const &Options)
const = 0;
73 typedef std::vector<metaIndex *>::const_iterator const_iterator;
77 std::vector<metaIndex *> SrcList;
82 bool Read(std::string File);
86 bool ReadAppend(std::string File);
87 bool ReadSourceDir(std::string Dir);
90 inline const_iterator begin()
const {
return SrcList.begin();};
91 inline const_iterator end()
const {
return SrcList.end();};
92 inline unsigned int size()
const {
return SrcList.size();};
93 inline bool empty()
const {
return SrcList.empty();};
97 bool GetIndexes(
pkgAcquire *Owner,
bool GetAll=
false)
const;
100 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:45
Definition: sourcelist.h:50
Definition: cacheiterators.h:352