jigdo API

MkTemplate::ProgressReporter Class Reference

Class allowing MkTemplate to convey information back to the creator of a MkTemplate object. More...

#include <mktemplate.hh>

Inheritance diagram for MkTemplate::ProgressReporter:

AnyReporter

List of all members.


Public Member Functions

virtual ~ProgressReporter ()
virtual void error (const string &message)
 General-purpose error reporting.
virtual void scanningImage (uint64 offset)
 Called during second pass, when the image file is scanned.
virtual void matchFound (const FilePart *file, uint64 offInImage)
 Called during second pass, when MkTemplate has found an area in the image whose MD5Sum matches that of a file.
virtual void finished (uint64 imageSize)
 The MkTemplate operation has finished.

Detailed Description

Class allowing MkTemplate to convey information back to the creator of a MkTemplate object.

The default versions of the methods do nothing at all (except for error(), which prints the error to cerr) - you need to supply an object of a derived class to MkTemplate() to get called back.


Constructor & Destructor Documentation

virtual MkTemplate::ProgressReporter::~ProgressReporter (  )  [inline, virtual]


Member Function Documentation

void MkTemplate::ProgressReporter::error ( const string &  message  )  [virtual]

General-purpose error reporting.

Reimplemented in AnyReporter.

void MkTemplate::ProgressReporter::scanningImage ( uint64  offset  )  [virtual]

Called during second pass, when the image file is scanned.

Parameters:
offset Offset in image file

void MkTemplate::ProgressReporter::matchFound ( const FilePart file,
uint64  offInImage 
) [virtual]

Called during second pass, when MkTemplate has found an area in the image whose MD5Sum matches that of a file.

Parameters:
file The file that matches
offInImage Offset of the match from start of image

void MkTemplate::ProgressReporter::finished ( uint64  imageSize  )  [virtual]

The MkTemplate operation has finished.

Parameters:
imageSize Length of the image file


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

Generated on Tue Sep 23 14:27:43 2008 for jigdo by  doxygen 1.5.6