5 #ifndef PKGLIB_INDEXRECORDS_H
6 #define PKGLIB_INDEXRECORDS_H
10 #include <apt-pkg/hashes.h>
16 #ifndef APT_8_CLEANER_HEADERS
17 #include <apt-pkg/fileutl.h>
22 bool parseSumData(
const char *&Start,
const char *End, std::string &Name,
23 std::string &Hash,
unsigned long long &Size);
26 std::string ErrorText;
31 std::string ExpectedDist;
34 std::map<std::string,checkSum *> Entries;
42 virtual const checkSum *Lookup(
const std::string MetaKey);
44 bool Exists(std::string
const &MetaKey)
const;
45 std::vector<std::string> MetaKeys();
47 virtual bool Load(std::string Filename);
48 std::string GetDist()
const;
49 time_t GetValidUntil()
const;
50 virtual bool CheckDist(
const std::string MaybeDist)
const;
51 std::string GetExpectedDist()
const;
57 std::string MetaKeyFilename;
59 unsigned long long Size;
pkgCache - Structure definitions for the cache file
bool Exists(std::string const &MetaKey) const
tests if a checksum for this file is available
Definition: indexrecords.cc:54
Definition: indexrecords.h:20
Definition: indexrecords.h:55