#include <Progress.hh>
Public Member Functions | |
Progress (long skip=0, long max_count=0) | |
Create progress object. | |
void | set_file (FILE *file) |
Set the FILE stream for printing the report. | |
void | set_report_string (std::string str) |
Set the report string shown before numerical report. | |
void | reset_timer () |
Reset timer for estimating time left. | |
void | step (long steps=1) |
Increase progress counter. | |
void | show_report () |
Show the progress report. | |
void | finish () |
Finish report by printing newline and stopping timer. | |
Private Attributes | |
FILE * | m_file |
FILE stream for printing the report. | |
std::string | m_report_str |
Prefix string for the report (empty if not used). | |
long | m_count |
Current progress count. | |
long | m_skip_count |
Decreasing counter for next report. | |
long | m_skip |
Number of counts to skip between showing the report string (0 = report every time). | |
long | m_max_count |
Counter value when the job should be finished. | |
Timer | m_timer |
Timer used for estimating time left (used only if m_max_count is positive). |
|
Create progress object.
|
|
Finish report by printing newline and stopping timer.
|
|
Reset timer for estimating time left.
|
|
Set the FILE stream for printing the report.
|
|
Set the report string shown before numerical report.
|
|
Show the progress report.
|
|
Increase progress counter.
|
|
Current progress count.
|
|
FILE stream for printing the report.
|
|
Counter value when the job should be finished. Zero if not used. |
|
Prefix string for the report (empty if not used).
|
|
Number of counts to skip between showing the report string (0 = report every time).
|
|
Decreasing counter for next report.
|
|
Timer used for estimating time left (used only if
|