Logo
Reference manual - version ored_version
SimpleProgressBar Class Reference

Simple Progress Bar. More...

#include <ored/utilities/progressbar.hpp>

Inheritance diagram for SimpleProgressBar:

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.
void reset () override

Detailed Description

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

Member Function Documentation

◆ updateProgress()

void updateProgress ( const unsigned long progress,
const unsigned long total,
const std::string & detail )
overridevirtual

ProgressIndicator interface.

Implements ProgressIndicator.

◆ reset()

void reset ( )
overridevirtual

Implements ProgressIndicator.