]>
git.saurik.com Git - apt.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 #include <apt-pkg/pkgcache.h>
10 #include <apt-pkg/fileutl.h>
17 bool parseSumData(const char *&Start
, const char *End
, string
&Name
,
18 string
&Hash
, size_t &Size
);
27 std::map
<string
,checkSum
*> Entries
;
32 indexRecords(const string ExpectedDist
);
35 virtual const checkSum
*Lookup(const string MetaKey
);
36 std::vector
<std::string
> MetaKeys();
38 virtual bool Load(string Filename
);
39 string
GetDist() const;
40 virtual bool CheckDist(const string MaybeDist
) const;
41 string
GetExpectedDist() const;
42 virtual ~indexRecords(){};
45 struct indexRecords::checkSum
47 string MetaKeyFilename
;