|
Joutsen
v0.4.1
|
A base class for writing progress to the console. More...
Public Member Functions | |
| ConsoleProgressPainter (ushort maxWritesPerSecond=5) | |
| Creates a new instance with a certain maximum of console updates a second. More... | |
| virtual void | ProgressUpdate (double completed, double total, double progress) |
| Writes the updated progress to the console. More... | |
| virtual void | DescriptionUpdate (String description) |
| Writes the updated description to the console. More... | |
| void | Paint () |
| Updates the console output. More... | |
| virtual void | Clear () |
| Resets the painter in order to restart updates to the console. More... | |
Protected Member Functions | |
| abstract void | Paint (double completed, double total, double progress, string description) |
| In a derived class handles the actual writing to the console. More... | |
Protected Attributes | |
| String | description |
| The description to write. More... | |
| double | progress |
| The progress value to write. More... | |
| double | completed |
| double | total |
A base class for writing progress to the console.
| Joutsen.System.ConsoleProgressPainter.ConsoleProgressPainter | ( | ushort | maxWritesPerSecond = 5 | ) |
Creates a new instance with a certain maximum of console updates a second.
| maxWritesPerSecond | the maximum number of writes to the console per second, default is 5 |
|
virtual |
Resets the painter in order to restart updates to the console.
Reimplemented in Joutsen.System.ConsoleProgressListPainter.
|
virtual |
Writes the updated description to the console.
| void Joutsen.System.ConsoleProgressPainter.Paint | ( | ) |
Updates the console output.
|
protectedpure virtual |
In a derived class handles the actual writing to the console.
Implemented in Joutsen.System.ConsoleColoredProgressBarPainter, Joutsen.System.ConsoleProgressBarPainter, and Joutsen.System.ConsoleProgressListPainter.
|
virtual |
Writes the updated progress to the console.
Reimplemented in Joutsen.System.ConsoleProgressListPainter.
|
protected |
|
protected |
The description to write.
|
protected |
The progress value to write.
|
protected |
1.8.13