+class ReleaseWriter : public FTWScanner
+{
+public:
+ ReleaseWriter(string DB);
+ virtual bool DoPackage(string FileName);
+ void Finish();
+
+ FILE *Output;
+ // General options
+ string PathPrefix;
+ string DirStrip;
+
+protected:
+ struct CheckSum
+ {
+ string MD5;
+ string SHA1;
+ string SHA256;
+ // Limited by FileFd::Size()
+ unsigned long size;
+ ~CheckSum() {};
+ };
+ map<string,struct CheckSum> CheckSums;
+};