1 #ifndef GW_XTERMPROGRESSBAR_H
2 #define GW_XTERMPROGRESSBAR_H
51 virtual void SetRange(Double_t min, Double_t max)
53 fMin = min; fMax = max;
60 virtual void Start() ;
69 virtual bool IsFinished()
const {
return (fCurrent > fMax); }
73 { fCurrent++;
if ( fMaxSize*(fCurrent-fMin)/(fMax-fMin) > fCurrentSize+1 ) { fCurrentSize++;
UpdateCurrentStatus();}
return *
this; }
77 { fCurrent++;
if ( fMaxSize*(fCurrent-fMin)/(fMax-fMin) > fCurrentSize+1 ) { fCurrentSize++;
UpdateCurrentStatus();}
return *
this; }
81 { fCurrent+=i;
if ( fMaxSize*(fCurrent-fMin)/(fMax-fMin) > fCurrentSize+1 ) { fCurrentSize++;
UpdateCurrentStatus();}
return *
this; }
virtual XtermProgressBar operator+=(int i)
Add one event and change the display if needed.
virtual Double_t GetCurrentPosition() const
to get the current event number
virtual bool IsFinished() const
to get the current event number
virtual XtermProgressBar operator++()
Add one event and change the display if needed.
virtual XtermProgressBar operator++(int)
Add one event and change the display if needed.
virtual ~XtermProgressBar()
Class to display a progress bar on the command line.
virtual void SetRange(Double_t min, Double_t max)
virtual void UpdateCurrentStatus()
Display current status on the standard output.
virtual void Start()
Re-initialised the counters.
XtermProgressBar(Double_t min, Double_t max)
Defines a ProgressBar that counts events from min to max.