24 #ifndef _TPIE_PROGRESS_INDICATOR_TERMINAL_H
25 #define _TPIE_PROGRESS_INDICATOR_TERMINAL_H
119 m_os << title << std::endl;
129 m_os <<
'\r' <<
m_title <<
' ';
171 #endif // _PROGRESS_INDICATOR_TERMINAL
void done()
Advance the indicator to the end and print an (optional) message that is followed by a newline...
The base class for indicating the progress of some task.
stream_size_type m_current
The current progress count [m_minRange...m_maxRange].
This file contains a few deprecated definitions for legacy code.
virtual void refresh()
Display the indicator.
void set_title(const std::string &title)
Set the title of a new task to be monitored.
stream_size_type m_range
The upper bound of the counting range.
A class that indicates the progress by a simple counter that is printed to the terminal.
virtual ~progress_indicator_terminal()
The destructor.
std::string m_title
A string holding the description of the title.
void display_percentage()
Compute and print the percentage or step count.
progress_indicator_terminal(const char *title, stream_size_type range, std::ostream &os=std::cout)
Initializes the indicator.