Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions
Arc::CheckSum Class Reference

Defines interface for variuos checksum manipulations. More...

#include <CheckSum.h>

Inheritance diagram for Arc::CheckSum:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CheckSum (void)
virtual ~CheckSum (void)
virtual void start (void)=0
virtual void add (void *buf, unsigned long long int len)=0
virtual void end (void)=0
virtual void result (unsigned char *&res, unsigned int &len) const =0
virtual int print (char *buf, int len) const
virtual void scan (const char *buf)=0
virtual operator bool (void) const
virtual bool operator! (void) const

Detailed Description

Defines interface for variuos checksum manipulations.

This class is used during data transfers through DataBuffer class

Definition at line 17 of file CheckSum.h.


Constructor & Destructor Documentation

Arc::CheckSum::CheckSum ( void  ) [inline]

Definition at line 19 of file CheckSum.h.

{}
virtual Arc::CheckSum::~CheckSum ( void  ) [inline, virtual]

Definition at line 20 of file CheckSum.h.

{}

Member Function Documentation

virtual void Arc::CheckSum::add ( void *  buf,
unsigned long long int  len 
) [pure virtual]

Implemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Here is the caller graph for this function:

virtual void Arc::CheckSum::end ( void  ) [pure virtual]

Implemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Here is the caller graph for this function:

virtual Arc::CheckSum::operator bool ( void  ) const [inline, virtual]

Reimplemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Definition at line 31 of file CheckSum.h.

                                      {
      return false;
    }
virtual bool Arc::CheckSum::operator! ( void  ) const [inline, virtual]

Reimplemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Definition at line 34 of file CheckSum.h.

                                       {
      return true;
    }
virtual int Arc::CheckSum::print ( char *  buf,
int  len 
) const [inline, virtual]

Reimplemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Definition at line 25 of file CheckSum.h.

                                                {
      if (len > 0)
        buf[0] = 0;
      return 0;
    }

Here is the caller graph for this function:

virtual void Arc::CheckSum::result ( unsigned char *&  res,
unsigned int &  len 
) const [pure virtual]

Implemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Here is the caller graph for this function:

virtual void Arc::CheckSum::scan ( const char *  buf) [pure virtual]

Implemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Here is the caller graph for this function:

virtual void Arc::CheckSum::start ( void  ) [pure virtual]

Implemented in Arc::CheckSumAny, Arc::Adler32Sum, Arc::MD5Sum, and Arc::CRC32Sum.

Here is the caller graph for this function:


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