| 
    GammaCombo
    Rev:Unversioneddirectory
    
   | 
 
Class showing a progress bar. More...
#include <ProgressBar.h>

Public Member Functions | |
| void | progress () | 
| Call this from inside the loop.  More... | |
| ProgressBar (OptParser *arg, unsigned int n) | |
| void | skipSteps (unsigned int n) | 
| Increase the internal count by n steps.  More... | |
| ~ProgressBar () | |
Private Member Functions | |
| void | progressBar () | 
| Display the progress as a bar: 100% [==================================================].  More... | |
| void | progressPercentage () | 
| Display the progress as percentage without flushing, so that the logfiles of batch jobs look good.  More... | |
Private Attributes | |
| OptParser * | _arg | 
| command line arguments  More... | |
| bool | _batch | 
| display progress in a log-file compatible way  More... | |
| unsigned int | _n | 
| maximum number of steps, "100%"  More... | |
| int | _resolution | 
| update the display this many times  More... | |
| int | _width | 
| width of the progress bar  More... | |
| unsigned int | _x | 
| current step, "78%"  More... | |
Class showing a progress bar.
Definition at line 20 of file ProgressBar.h.
| ProgressBar::ProgressBar | ( | OptParser * | arg, | 
| unsigned int | n | ||
| ) | 
Definition at line 3 of file ProgressBar.cpp.
| ProgressBar::~ProgressBar | ( | ) | 
Definition at line 14 of file ProgressBar.cpp.
| void ProgressBar::progress | ( | ) | 
Call this from inside the loop.
Definition at line 20 of file ProgressBar.cpp.
      
  | 
  private | 
Display the progress as a bar: 100% [==================================================].
Definition at line 32 of file ProgressBar.cpp.
      
  | 
  private | 
Display the progress as percentage without flushing, so that the logfiles of batch jobs look good.
Definition at line 58 of file ProgressBar.cpp.
| void ProgressBar::skipSteps | ( | unsigned int | n | ) | 
Increase the internal count by n steps.
Definition at line 67 of file ProgressBar.cpp.
      
  | 
  private | 
command line arguments
Definition at line 35 of file ProgressBar.h.
      
  | 
  private | 
display progress in a log-file compatible way
Definition at line 40 of file ProgressBar.h.
      
  | 
  private | 
maximum number of steps, "100%"
Definition at line 36 of file ProgressBar.h.
      
  | 
  private | 
update the display this many times
Definition at line 39 of file ProgressBar.h.
      
  | 
  private | 
width of the progress bar
Definition at line 38 of file ProgressBar.h.
      
  | 
  private | 
current step, "78%"
Definition at line 37 of file ProgressBar.h.
 1.8.12