karazeh
A cross-platform software updating library.
kzh::hasher Class Referenceabstract

#include <hasher.hpp>

+ Inheritance diagram for kzh::hasher:

Classes

struct  digest_rc
 

Public Member Functions

 hasher (string_t const &name)
 
virtual ~hasher ()
 
virtual digest_rc hex_digest (string_t const &data) const =0
 
virtual digest_rc hex_digest (std::ifstream &src) const =0
 
virtual digest_rc hex_digest (path_t const &path) const =0
 
string_t const & name () const
 

Protected Attributes

string_t name_
 

Constructor & Destructor Documentation

kzh::hasher::hasher ( string_t const &  name)
inline
virtual kzh::hasher::~hasher ( )
inlinevirtual

Member Function Documentation

virtual digest_rc kzh::hasher::hex_digest ( std::ifstream &  src) const
pure virtual

digests can be calculated off data in a valid file stream

Implemented in kzh::md5_hasher.

virtual digest_rc kzh::hasher::hex_digest ( path_t const &  path) const
pure virtual

Implemented in kzh::md5_hasher.

string_t const& kzh::hasher::name ( ) const
inline

Member Data Documentation

string_t kzh::hasher::name_
protected

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