1
#ifndef TeSTDIOPROGRESS_H
2
#define TeSTDIOPROGRESS_H
4
#include "TeProgressBase.h"
7
class TeStdIOProgress : public TeProgressBase
21
//! Sets the total number of steps to n
22
void setTotalSteps(int n) { totsteps = n; }
24
//! Sets the current amount of progress made to n
25
void setProgress(int n)
29
int aux = (int)((n*100)/totsteps);
33
cout << curstep << "% ";
39
//! Resets the progress interface
40
void reset() { totsteps = nsteps = 0; curstep = -1; }
42
//! Resets the progress dialog
45
//! Sets the label's text
46
void setMessage(const string& text) { cout << endl << text << endl;}
48
//! Returns true whether the process was cancelled
49
bool wasCancelled() { return false; }
51
//! Sets the caption associated to the progress interface
52
void setCaption(const string& /*cap*/) {};