#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. | |
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.
| virtual JigdoDesc::ProgressReporter::~ProgressReporter | ( | ) | [inline, virtual] |
| 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.
| 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().
1.5.6