]>
git.saurik.com Git - apt-legacy.git/blob - apt-pkg/indexrecords.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: indexrecords.h,v 1.1.2.1 2003/12/24 23:09:17 mdz Exp $
5 #ifndef PKGLIB_INDEXRECORDS_H
6 #define PKGLIB_INDEXRECORDS_H
9 #pragma interface "apt-pkg/indexrecords.h"
11 #include <apt-pkg/pkgcache.h>
12 #include <apt-pkg/fileutl.h>
19 bool parseSumData(const char *&Start
, const char *End
, string
&Name
,
20 string
&Hash
, size_t &Size
);
29 std::map
<string
,checkSum
*> Entries
;
34 indexRecords(const string ExpectedDist
);
37 virtual const checkSum
*Lookup(const string MetaKey
);
38 std::vector
<std::string
> MetaKeys();
40 virtual bool Load(string Filename
);
41 string
GetDist() const;
42 virtual bool CheckDist(const string MaybeDist
) const;
43 string
GetExpectedDist() const;
44 virtual ~indexRecords(){};
47 struct indexRecords::checkSum
49 string MetaKeyFilename
;