libxcks  0.1.0.1
libxcks::ChecksumCalculatorProgress Class Referenceabstract

Handles the progression of the process of computing of a checksum. More...

#include <ckcalculator.hpp>

Inheritance diagram for libxcks::ChecksumCalculatorProgress:

Public Member Functions

 ChecksumCalculatorProgress ()=default
 Default constructor. More...
 
 ChecksumCalculatorProgress (const ChecksumCalculatorProgress &)=delete
 Deleted copy constructor. More...
 
ChecksumCalculatorProgressoperator= (const ChecksumCalculatorProgress &)=delete
 Deleted assignment operator. More...
 
virtual ~ChecksumCalculatorProgress ()=default
 Destructor. More...
 
virtual void update (size_t read, bool &cancelled)=0
 Updates the progress of the computing of a checksum. More...
 

Detailed Description

Handles the progression of the process of computing of a checksum.

Definition at line 45 of file ckcalculator.hpp.

Constructor & Destructor Documentation

◆ ChecksumCalculatorProgress() [1/2]

libxcks::ChecksumCalculatorProgress::ChecksumCalculatorProgress ( )
default

Default constructor.

◆ ChecksumCalculatorProgress() [2/2]

libxcks::ChecksumCalculatorProgress::ChecksumCalculatorProgress ( const ChecksumCalculatorProgress )
delete

Deleted copy constructor.

◆ ~ChecksumCalculatorProgress()

virtual libxcks::ChecksumCalculatorProgress::~ChecksumCalculatorProgress ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=()

ChecksumCalculatorProgress& libxcks::ChecksumCalculatorProgress::operator= ( const ChecksumCalculatorProgress )
delete

Deleted assignment operator.

◆ update()

virtual void libxcks::ChecksumCalculatorProgress::update ( size_t  read,
bool &  cancelled 
)
pure virtual

Updates the progress of the computing of a checksum.

Parameters
readNumber of bytes read.
cancelledSet it to true if the user want to cancel the calculation. The caller should call it with its value set to false.

Implemented in libxcks::DefaultChecksumCalculatorProgress.


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