Checksum Class Reference

Computes a checksum from a byte stream. More...

#include <checksum.hpp>

Inheritance diagram for Checksum:

MD5 List of all members.

Public Member Functions

virtual void reset ()=0
 Resets the checksum to initial value.
virtual wxString getValue (const bool hexInUpperCase=false) const =0
 Returns the checksum value in a string.
virtual void update (const wxByte *buf, unsigned int len)=0
 Updates the checksum with specified array of bytes.

Detailed Description

Computes a checksum from a byte stream.

Using this class in very simple:
Use the update method to provide to the class the bytes for computing the checksum.

The checksum value can be gotten by the const getValue method which puts the checksum value in a string.

The checksum computing can be reseted by the reset method.


Member Function Documentation

virtual wxString Checksum.getValue const bool  hexInUpperCase = false  )  const [pure virtual]
 

Returns the checksum value in a string.

Parameters:
hexInUpperCase If true the hexadecimal letters will be in uppercase.
Returns:
The current checksum value.

Implemented in MD5.

virtual void Checksum.update const wxByte *  buf,
unsigned int  len
[pure virtual]
 

Updates the checksum with specified array of bytes.

Parameters:
buf The byte array to update the checksum with.
len The number of bytes to use for the update.

Implemented in MD5.


The documentation for this class was generated from the following file:
Generated on Mon Feb 20 11:06:41 2006 for wxFlickr by  doxygen 1.4.6-NO