Simple Progress Bar. More...
#include <ored/utilities/progressbar.hpp>
Public Member Functions | |
SimpleProgressBar (const std::string &message, const QuantLib::Size messageWidth=40, const QuantLib::Size barWidth=40, const QuantLib::Size numberOfScreenUpdates=100) | |
void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail) override |
ProgressIndicator interface. More... | |
void | reset () override |
Public Member Functions inherited from ProgressIndicator | |
ProgressIndicator () | |
virtual | ~ProgressIndicator () |
virtual void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail)=0 |
virtual void | reset ()=0 |
Private Attributes | |
std::string | key_ |
unsigned int | messageWidth_ |
unsigned int | barWidth_ |
unsigned int | numberOfScreenUpdates_ |
unsigned int | updateCounter_ |
bool | finalized_ |
Simple Progress Bar.
Simple Progress Bar that writes a message followed by a status bar to std::cout, no other output should be written to std::cout during the bar from this instance is displayed
Definition at line 85 of file progressbar.hpp.
SimpleProgressBar | ( | const std::string & | message, |
const QuantLib::Size | messageWidth = 40 , |
||
const QuantLib::Size | barWidth = 40 , |
||
const QuantLib::Size | numberOfScreenUpdates = 100 |
||
) |
Definition at line 47 of file progressbar.cpp.
|
overridevirtual |
ProgressIndicator interface.
Implements ProgressIndicator.
Definition at line 55 of file progressbar.cpp.
|
overridevirtual |
Implements ProgressIndicator.
Definition at line 93 of file progressbar.cpp.
|
private |
Definition at line 95 of file progressbar.hpp.
|
private |
Definition at line 96 of file progressbar.hpp.
|
private |
Definition at line 96 of file progressbar.hpp.
|
private |
Definition at line 96 of file progressbar.hpp.
|
private |
Definition at line 96 of file progressbar.hpp.
|
private |
Definition at line 97 of file progressbar.hpp.