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
HashString Class Reference

#include <hashes.h>

Collaboration diagram for HashString:

Public Member Functions

 HashString (std::string Type, std::string Hash)
 
 HashString (std::string StringedHashString)
 
 HashString ()
 
bool empty () const
 
std::string HashType ()
 
std::string toStr () const
 
bool VerifyFile (std::string filename) const
 

Static Public Member Functions

static const char ** SupportedHashes ()
 

Protected Attributes

std::string Hash
 
std::string Type
 

Static Protected Attributes

static const char * _SupportedHashes [10]
 

Constructor & Destructor Documentation

HashString::HashString ( std::string  Type,
std::string  Hash 
)
HashString::HashString ( std::string  StringedHashString)
HashString::HashString ( )

Member Function Documentation

bool HashString::empty ( ) const
std::string HashString::HashType ( )
inline

References Type.

static const char** HashString::SupportedHashes ( )
static
std::string HashString::toStr ( ) const

Referenced by pkgAcqIndex::HashSum(), pkgAcqArchive::HashSum(), and pkgAcqFile::HashSum().

Here is the caller graph for this function:

bool HashString::VerifyFile ( std::string  filename) const

Member Data Documentation

const char* HashString::_SupportedHashes[10]
staticprotected
std::string HashString::Hash
protected
std::string HashString::Type
protected

Referenced by HashType().


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