#include <apt-pkg/fileutl.h>
#include <vector>
-class pkgRecords
+class pkgRecords /*{{{*/
{
public:
class Parser;
pkgRecords(pkgCache &Cache);
~pkgRecords();
};
-
-class pkgRecords::Parser
+ /*}}}*/
+class pkgRecords::Parser /*{{{*/
{
protected:
virtual string SourcePkg() {return string();};
virtual string SourceVer() {return string();};
+ virtual bool ShortDesc(const char *&Start,const char *&End) {return false;}
+ virtual bool LongDesc(const char *&Start,const char *&End) {return false;}
+
// These are some general stats about the package
virtual string Maintainer() {return string();};
virtual string ShortDesc() {return string();};
// The record in binary form
virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;};
+ virtual bool Find(const char *Tag,const char *&Start, const char *&End) {Start = End = 0; return false;};
virtual ~Parser() {};
};
-
+ /*}}}*/
#endif