Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Checksum Class Reference

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

#include <checksum.hpp>

Inheritance diagram for Checksum:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual wxString getValue (const bool hexInUpperCase=false) const =0
 Returns the checksum value in a string.

virtual void reset ()=0
 Resets the checksum to initial value.

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:<BR> Use the update method to provide to the class the bytes for computing the checksum.

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

The checksum computing can be reseted by the reset method.

Definition at line 56 of file checksum.hpp.


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 CRC32, and MD5.

virtual void Checksum::reset  )  [pure virtual]
 

Resets the checksum to initial value.

Implemented in CRC32, and 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 CRC32, and MD5.


The documentation for this class was generated from the following file:
Generated on Sun May 30 13:38:02 2004 for wxChecksums by doxygen 1.3.7