Class Monitor
Defined in File Logging.hpp
Class Documentation
-
class Monitor
A class to monitor progress.
Public Functions
-
Monitor(const LogLevel &level, const std::string &text, const size_t &max, size_t width = 0)
Constructs a new Monitor object.
- Parameters:
level – Loglevel to display the progress
text – Prefix text for progress bar
max – Number of exspected iterations
width – Width of the progress bar. Currently buggy, leave it at default!
-
void operator++()
Increment progress by one.
-
inline ~Monitor()
Destructor.
-
void terminate()
Removes to progress bar from the terminal. Call this function once if the monitor object is still alive and you want to generate log output in a function.
-
Monitor(const LogLevel &level, const std::string &text, const size_t &max, size_t width = 0)