// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: tagfile.h,v 1.6 1998/07/19 04:22:07 jgg Exp $
+// $Id: tagfile.h,v 1.9 1998/08/26 04:52:24 jgg Exp $
/* ######################################################################
Fast scanner for RFC-822 type header information
This parser handles Debian package files (and others). Their form is
RFC-822 type header fields in groups seperated by a blank line.
- The parser reads the and provides methods to step linearly
+ The parser reads the file and provides methods to step linearly
over it or to jump to a pre-recorded start point and read that record.
A second class is used to perform pre-parsing of the record. It works
class pkgTagFile
{
- File &Fd;
+ FileFd &Fd;
char *Buffer;
char *Start;
char *End;
bool Step(pkgTagSection &Section);
inline unsigned long Offset() {return iOffset;};
bool Jump(pkgTagSection &Tag,unsigned long Offset);
-
- pkgTagFile(File &F,unsigned long Size = 32*1024);
+
+ pkgTagFile(FileFd &F,unsigned long Size = 32*1024);
};
#endif