|
Joutsen v0.5.0+12-g5dd5f7e
|
A class that can be used to write a progress value and a progressbar to the console. More...
Public Member Functions | |
| ConsoleProgressBarPainter (int progressBarWidth, String format="{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}") | |
| Creates a new instance of the painter with a defined width for the progress bar. More... | |
| ConsoleProgressBarPainter (int progressBarWidth, int descriptionWidth, String format="{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}", ushort maxWritesPerSecond=5) | |
| Creates a new instance of the painter with a defined width for the progress bar and description. More... | |
| ConsoleProgressBarPainter (String format="{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}") | |
| Creates a new instance of the painter with a defined format. More... | |
Public Member Functions inherited from Joutsen.ConsoleProgressPainter | |
| 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 | |
| override void | Paint (double completed, double total, double progress, string description) |
| In a derived class handles the actual writing to the console. More... | |
| 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 | |
| int | descriptionWidth |
| The width in number of characters that the description text is allowed to use. More... | |
| int | progressBarWidth |
| The width in number of characters that the progress bar is allowed to use. More... | |
| int | progressTotalWidth |
| String | format |
| The format of the output. More... | |
| String | layout |
Protected Attributes inherited from Joutsen.ConsoleProgressPainter | |
| String | description |
| The description to write. More... | |
| double | progress |
| The progress value to write. More... | |
| double | completed |
| double | total |
A class that can be used to write a progress value and a progressbar to the console.
| Joutsen.ConsoleProgressBarPainter.ConsoleProgressBarPainter | ( | int | progressBarWidth, |
| String | format = "{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}" |
||
| ) |
Creates a new instance of the painter with a defined width for the progress bar.
| progressBarWidth | the width in characters that the progress bar is allowed to use |
| format | a format string defining the output |
| Joutsen.ConsoleProgressBarPainter.ConsoleProgressBarPainter | ( | int | progressBarWidth, |
| int | descriptionWidth, | ||
| String | format = "{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}", |
||
| ushort | maxWritesPerSecond = 5 |
||
| ) |
Creates a new instance of the painter with a defined width for the progress bar and description.
| progressBarWidth | the width in characters that the progress bar is allowed to use |
| descriptionWidth | the width in characters that the description is allowed to use |
| format | a format string defining the output |
| maxWritesPerSecond | the maximum number of writes to the console per second, default is 5 |
| Joutsen.ConsoleProgressBarPainter.ConsoleProgressBarPainter | ( | String | format = "{Description} {ProgressTotal} {ProgressBar} {ProgressPercentage}" | ) |
Creates a new instance of the painter with a defined format.
| format | a format string defining the output |
|
protectedvirtual |
In a derived class handles the actual writing to the console.
Implements Joutsen.ConsoleProgressPainter.
|
protected |
The width in number of characters that the description text is allowed to use.
|
protected |
The format of the output.
|
protected |
|
protected |
The width in number of characters that the progress bar is allowed to use.
|
protected |