Checksum Class Reference

A base class for checksum generators. More...

#include <Checksum.h++>

Inheritance diagram for Checksum:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Checksum () throw ()
 Destructor.
virtual void update (const byte_t *buf, size_t len)=0 throw ()
 Update the checksum with more data.
uint32_t finish () throw ()
 Finish generating the checksum.
void reset () throw ()
 Reset the object for a new checksum.

Protected Member Functions

 Checksum () throw ()
 Constructor.

Protected Attributes

uint32_t _sum
 The current checksum value.


Detailed Description

A base class for checksum generators.

Author:
Mark Lindner

Constructor & Destructor Documentation

~Checksum (  )  throw () [virtual]

Destructor.

Checksum (  )  throw () [protected]

Constructor.


Member Function Documentation

uint32_t finish (  )  throw ()

Finish generating the checksum.

Returns:
The checksum.

Reimplemented in CRC32Checksum.

void reset (  )  throw ()

Reset the object for a new checksum.

Reimplemented in CRC32Checksum.

virtual void update ( const byte_t buf,
size_t  len 
) throw () [pure virtual]

Update the checksum with more data.

Parameters:
buf A pointer to the data.
len The length of the data.

Implemented in CRC32Checksum.


Member Data Documentation

uint32_t _sum [protected]

The current checksum value.


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

Generated on Sat Apr 17 23:03:08 2010 for libcommonc++ by  doxygen 1.5.9