Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NoProgressBar Class Reference

#include <ored/utilities/progressbar.hpp>

+ Inheritance diagram for NoProgressBar:
+ Collaboration diagram for NoProgressBar:

Public Member Functions

 NoProgressBar (const std::string &message, const unsigned int messageWidth=40)
 
void updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail) override
 
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
 

Detailed Description

Progress Bar just writes the given message and flushes

Definition at line 120 of file progressbar.hpp.

Constructor & Destructor Documentation

◆ NoProgressBar()

NoProgressBar ( const std::string &  message,
const unsigned int  messageWidth = 40 
)

Definition at line 143 of file progressbar.cpp.

143 {
144 std::cout << std::setw(messageWidth) << message << std::flush;
145}

Member Function Documentation

◆ updateProgress()

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

ProgressIndicator interface

Implements ProgressIndicator.

Definition at line 125 of file progressbar.hpp.

125{}

◆ reset()

void reset ( )
overridevirtual

Implements ProgressIndicator.

Definition at line 126 of file progressbar.hpp.

126{}