Files
terminal_status_line/ProgressInfinite.h

27 lines
545 B
C++

#ifndef PROGRESS_INFINITE_H_
#define PROGRESS_INFINITE_H_
#include "Progress.h"
class ProgressInfinite : public Progress
{
protected:
size_t m_current;
std::string m_message;
public:
Progress(const std::string& message, size_t current = 0);
virtual void set_progress(size_t current);
void set_message(const std::string& message);
virtual void increment_progress(size_t inc = 1);
virtual std::string print_progress();
friend std::ostream& operator<<(std::ostream& os, const Progress& progress);
};
#endif // PROGRESS_INFINITE_H_