24 #ifndef _TPIE_PROGRESS_INDICATOR_SPIN_H
25 #define _TPIE_PROGRESS_INDICATOR_SPIN_H
59 const std::string& description,
60 stream_size_type minRange,
61 stream_size_type maxRange,
62 stream_size_type stepValue) :
90 progress_indicator_terminal::operator=(other);
126 std::cout <<
"\r" << m_description <<
" " <<
m_symbols[
m_state] << std::flush;
146 #endif // _TPIE_PROGRESS_INDICATOR_SPIN_H
A class that indicates the progress by a spinning cross.
stream_size_type m_current
The current progress count [m_minRange...m_maxRange].
This file contains a few deprecated definitions for legacy code.
progress_indicator_spin(const progress_indicator_spin &other)
Copy-constructor.
A class that indicates the progress by a simple counter that is printed to the terminal.
progress_indicator_spin & operator=(const progress_indicator_spin &other)
Assignment operator.
virtual ~progress_indicator_spin()
The destructor.
unsigned short m_numberOfStates
The number of characters used for the spinning indicator.
virtual void refresh()
Display the indicator.
Indicate progress by a simple counter.
unsigned short m_state
The current character used for the spinning indicator.
char * m_symbols
The characters used for the spinning indicator.
progress_indicator_spin(const std::string &title, const std::string &description, stream_size_type minRange, stream_size_type maxRange, stream_size_type stepValue)
Initializes the indicator.