jigdo API
JigdoDesc::ProgressReporter Class Reference
Class allowing JigdoDesc to convey information back to the caller. More...
#include <mkimage.hh>

Public Member Functions | |
virtual | ~ProgressReporter () |
virtual void | error (const string &message) |
General-purpose error reporting. | |
virtual void | info (const string &message) |
Like error(), but for purely informational messages. | |
virtual void | writingImage (uint64 written, uint64 totalToWrite, uint64 imgOff, uint64 imgSize) |
Called when the output image (or a temporary file) is being written to. |
Detailed Description
Class allowing JigdoDesc to convey information back to the caller.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 functions to get called back.
Constructor & Destructor Documentation
virtual JigdoDesc::ProgressReporter::~ProgressReporter | ( | ) | [inline, virtual] |
Member Function Documentation
void JigdoDesc::ProgressReporter::error | ( | const string & | message | ) | [virtual] |
General-purpose error reporting.
Reimplemented in AnyReporter.
Referenced by error_CouldntRename(), fileToImage(), JigdoDesc::makeImage(), writeAll(), and writeMerge().
void JigdoDesc::ProgressReporter::info | ( | const string & | message | ) | [virtual] |
Like error(), but for purely informational messages.
Reimplemented in AnyReporter.
Referenced by info_NeedMoreFiles(), JigdoDesc::listMissing(), and JigdoDesc::makeImage().
void JigdoDesc::ProgressReporter::writingImage | ( | uint64 | written, | |
uint64 | totalToWrite, | |||
uint64 | imgOff, | |||
uint64 | imgSize | |||
) | [virtual] |
Called when the output image (or a temporary file) is being written to.
It holds that written==imgOff and totalToWrite==imgSize, *except* when additional files are merged into an already existing temporary file.
- Parameters:
-
written Number of bytes written so far totalToWrite Value of 'written' at end of write operation imgOff Current offset in image imgSize Total size of output image
Referenced by reportBytesWritten().
The documentation for this class was generated from the following files:
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
