]>
git.saurik.com Git - apt.git/blob - apt-pkg/pkgrecords.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: pkgrecords.h,v 1.3 1998/11/13 04:23:35 jgg Exp $
4 /* ######################################################################
6 Package Records - Allows access to complete package description records
7 directly from the file.
9 The package record system abstracts the actual parsing of the
10 package files. This is different than the generators parser in that
11 it is used to access information not generate information. No
12 information touched by the generator should be parable from here as
13 it can always be retreived directly from the cache.
15 ##################################################################### */
17 // Header section: pkglib
18 #ifndef PKGLIB_PKGRECORDS_H
19 #define PKGLIB_PKGRECORDS_H
22 #pragma interface "apt-pkg/pkgrecords.h"
25 #include <apt-pkg/pkgcache.h>
26 #include <apt-pkg/fileutl.h>
37 // List of package files
43 PkgFile() : File(0), Parse(0) {};
51 Parser
&Lookup(pkgCache::VerFileIterator
const &Ver
);
54 pkgRecords(pkgCache
&Cache
);
58 class pkgRecords::Parser
62 virtual bool Jump(pkgCache::VerFileIterator
const &Ver
) = 0;
67 // These refer to the archive file for the Version
68 virtual string
FileName() {return string();};
69 virtual string
MD5Hash() {return string();};
71 // These are some general stats about the package
72 virtual string
Maintainer() {return string();};
73 virtual string
ShortDesc() {return string();};
74 virtual string
LongDesc() {return string();};