libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
indexRecords Class Reference

#include <indexrecords.h>

Collaboration diagram for indexRecords:

Classes

struct  checkSum
 

Public Member Functions

 indexRecords ()
 
 indexRecords (const std::string ExpectedDist)
 
virtual ~indexRecords ()
 
virtual bool CheckDist (const std::string MaybeDist) const
 
bool Exists (std::string const &MetaKey) const
 tests if a checksum for this file is available More...
 
std::string GetDist () const
 
std::string GetExpectedDist () const
 
time_t GetValidUntil () const
 
virtual bool Load (std::string Filename)
 
virtual const checkSumLookup (const std::string MetaKey)
 
std::vector< std::string > MetaKeys ()
 

Public Attributes

std::string ErrorText
 

Protected Attributes

std::string Dist
 
std::map< std::string, checkSum * > Entries
 
std::string ExpectedDist
 
std::string Suite
 
time_t ValidUntil
 

Private Member Functions

bool parseSumData (const char *&Start, const char *End, std::string &Name, std::string &Hash, unsigned long long &Size)
 

Constructor & Destructor Documentation

indexRecords::indexRecords ( )
indexRecords::indexRecords ( const std::string  ExpectedDist)
virtual indexRecords::~indexRecords ( )
inlinevirtual

Member Function Documentation

virtual bool indexRecords::CheckDist ( const std::string  MaybeDist) const
virtual
bool indexRecords::Exists ( std::string const &  MetaKey) const

tests if a checksum for this file is available

std::string indexRecords::GetDist ( ) const
std::string indexRecords::GetExpectedDist ( ) const
time_t indexRecords::GetValidUntil ( ) const
virtual bool indexRecords::Load ( std::string  Filename)
virtual
virtual const checkSum* indexRecords::Lookup ( const std::string  MetaKey)
virtual
std::vector<std::string> indexRecords::MetaKeys ( )
bool indexRecords::parseSumData ( const char *&  Start,
const char *  End,
std::string &  Name,
std::string &  Hash,
unsigned long long &  Size 
)
private

Member Data Documentation

std::string indexRecords::Dist
protected
std::map<std::string,checkSum *> indexRecords::Entries
protected
std::string indexRecords::ErrorText
std::string indexRecords::ExpectedDist
protected
std::string indexRecords::Suite
protected
time_t indexRecords::ValidUntil
protected

The documentation for this class was generated from the following file: