+
+ unsigned long WriteUniqString(const char *S,unsigned int Size);
+ inline unsigned long WriteUniqString(const string &S) {return WriteUniqString(S.c_str(),S.length());};
+
+ void DropProgress() {Progress = 0;};
+ bool SelectFile(const string &File,const string &Site,pkgIndexFile const &Index,
+ unsigned long Flags = 0);
+ bool MergeList(ListParser &List,pkgCache::VerIterator *Ver = 0);
+ inline pkgCache &GetCache() {return Cache;};
+ inline pkgCache::PkgFileIterator GetCurFile()
+ {return pkgCache::PkgFileIterator(Cache,CurrentFile);};
+
+ bool HasFileDeps() {return FoundFileDeps;};
+ bool MergeFileProvides(ListParser &List);
+ bool FinishCache(OpProgress &Progress);
+
+ pkgCacheGenerator(DynamicMMap *Map,OpProgress *Progress);
+ ~pkgCacheGenerator();
+};
+ /*}}}*/
+// This is the abstract package list parser class. /*{{{*/
+class pkgCacheGenerator::ListParser
+{
+ pkgCacheGenerator *Owner;
+ friend class pkgCacheGenerator;