]>
git.saurik.com Git - apt.git/blob - apt-pkg/deb/deblistparser.h
30eb869adbbe6891ebdbef7218fdf779521646b8
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: deblistparser.h,v 1.1 1998/07/04 05:58:08 jgg Exp $
4 /* ######################################################################
6 Debian Package List Parser - This implements the abstract parser
7 interface for Debian package files
9 ##################################################################### */
11 // Header section: pkglib
12 #ifndef PKGLIB_DEBLISTPARSER_H
13 #define PKGLIB_DEBLISTPARSER_H
15 #include <pkglib/pkgcachegen.h>
16 #include <pkglib/tagfile.h>
18 class debListParser
: public pkgCacheGenerator::ListParser
21 pkgTagSection Section
;
30 string
FindTag(const char *Tag
);
31 unsigned long UniqFindTagWrite(const char *Tag
);
32 bool HandleFlag(const char *Tag
,unsigned long &Flags
,unsigned long Flag
);
33 bool ParseStatus(pkgCache::PkgIterator Pkg
,pkgCache::VerIterator Ver
);
34 bool GrabWord(string Word
,WordList
*List
,int Count
,unsigned char &Out
);
38 // These all operate against the current section
39 virtual string
Package();
40 virtual string
Version();
41 virtual bool NewVersion(pkgCache::VerIterator Ver
);
42 virtual bool NewPackage(pkgCache::PkgIterator Pkg
);
43 virtual bool UsePackage(pkgCache::PkgIterator Pkg
,
44 pkgCache::VerIterator Ver
);
48 debListParser(File
&File
);