Base class for a Progress Reporter. More...
#include <ored/utilities/progressbar.hpp>
Public Member Functions | |
ProgressReporter () | |
void | registerProgressIndicator (const QuantLib::ext::shared_ptr< ProgressIndicator > &indicator) |
register a Progress Indicator More... | |
void | unregisterProgressIndicator (const QuantLib::ext::shared_ptr< ProgressIndicator > &indicator) |
unregister a Progress Indicator More... | |
void | unregisterAllProgressIndicators () |
unregister all progress indicators More... | |
void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail="") |
update progress More... | |
void | resetProgress () |
reset More... | |
const std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > & | progressIndicators () const |
return progress indicators More... | |
Private Attributes | |
std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > | indicators_ |
Base class for a Progress Reporter.
Definition at line 52 of file progressbar.hpp.
ProgressReporter | ( | ) |
Definition at line 54 of file progressbar.hpp.
void registerProgressIndicator | ( | const QuantLib::ext::shared_ptr< ProgressIndicator > & | indicator | ) |
register a Progress Indicator
Definition at line 27 of file progressbar.cpp.
void unregisterProgressIndicator | ( | const QuantLib::ext::shared_ptr< ProgressIndicator > & | indicator | ) |
unregister a Progress Indicator
Definition at line 31 of file progressbar.cpp.
void unregisterAllProgressIndicators | ( | ) |
unregister all progress indicators
Definition at line 35 of file progressbar.cpp.
void updateProgress | ( | const unsigned long | progress, |
const unsigned long | total, | ||
const std::string & | detail = "" |
||
) |
update progress
Definition at line 37 of file progressbar.cpp.
void resetProgress | ( | ) |
reset
Definition at line 42 of file progressbar.cpp.
const std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > & progressIndicators | ( | ) | const |
|
private |
Definition at line 75 of file progressbar.hpp.