X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b2e465d6d32d2dc884f58b94acb7e35f671a87fe..7eeafa70521be0a201f65b1ac0c4f9bfc30bf3e4:/ftparchive/writer.h diff --git a/ftparchive/writer.h b/ftparchive/writer.h index a5fb6f52b..854d3424b 100644 --- a/ftparchive/writer.h +++ b/ftparchive/writer.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: writer.h,v 1.2 2001/02/20 07:03:18 jgg Exp $ +// $Id: writer.h,v 1.4 2001/06/26 02:50:27 jgg Exp $ /* ###################################################################### Writer @@ -19,10 +19,16 @@ #include #include +#include +#include #include "cachedb.h" #include "override.h" #include "apt-ftparchive.h" + +using std::string; +using std::cout; +using std::endl; class FTWScanner { @@ -85,9 +91,11 @@ class PackagesWriter : public FTWScanner struct CacheDB::Stats &Stats; inline bool ReadOverride(string File) {return Over.ReadOverride(File);}; + inline bool ReadExtraOverride(string File) + {return Over.ReadExtraOverride(File);}; virtual bool DoPackage(string FileName); - PackagesWriter(string DB,string Overrides); + PackagesWriter(string DB,string Overrides,string ExtOverrides=string()); virtual ~PackagesWriter() {}; }; @@ -133,11 +141,10 @@ class SourcesWriter : public FTWScanner FILE *Output; struct CacheDB::Stats Stats; -/* inline bool ReadBinOverride(string File) {return BOver.ReadOverride(File);}; - bool ReadSrcOverride(string File); // {return BOver.ReadOverride(File);};*/ virtual bool DoPackage(string FileName); - SourcesWriter(string BOverrides,string SOverrides); + SourcesWriter(string BOverrides,string SOverrides, + string ExtOverrides=string()); virtual ~SourcesWriter() {free(Buffer);}; };