Public Member Functions | Protected Attributes

CheckSum Class Reference

Generates and validates checksums. More...

#include <CheckSum.h>

List of all members.

Public Member Functions

 CheckSum ()
 Default constructor.
void Clear ()
void Add (unsigned int w)
void Add (unsigned short w)
void Add (unsigned char *b, unsigned int length)
void Add (unsigned char b)
unsigned int Get ()

Protected Attributes

unsigned short r
unsigned short c1
unsigned short c2
unsigned int sum

Detailed Description

Generates and validates checksums.

Definition at line 12 of file CheckSum.h.


Constructor & Destructor Documentation

CheckSum::CheckSum (  )  [inline]

Default constructor.

Definition at line 19 of file CheckSum.h.

Here is the call graph for this function:


Member Function Documentation

void CheckSum::Add ( unsigned int  w  ) 

Definition at line 18 of file CheckSum.cpp.

Here is the caller graph for this function:

void CheckSum::Add ( unsigned char *  b,
unsigned int  length 
)

Definition at line 91 of file CheckSum.cpp.

Here is the call graph for this function:

void CheckSum::Add ( unsigned char  b  ) 

Definition at line 72 of file CheckSum.cpp.

void CheckSum::Add ( unsigned short  w  ) 

Definition at line 45 of file CheckSum.cpp.

Here is the call graph for this function:

void CheckSum::Clear ( void   )  [inline]

Definition at line 24 of file CheckSum.h.

Here is the caller graph for this function:

unsigned int CheckSum::Get (  )  [inline]

Definition at line 41 of file CheckSum.h.

Here is the caller graph for this function:


Member Data Documentation

unsigned short CheckSum::c1 [protected]

Definition at line 48 of file CheckSum.h.

unsigned short CheckSum::c2 [protected]

Definition at line 49 of file CheckSum.h.

unsigned short CheckSum::r [protected]

Definition at line 47 of file CheckSum.h.

unsigned int CheckSum::sum [protected]

Definition at line 50 of file CheckSum.h.


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