SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <ProgressNCurses.h>
Classes | |
class | Dashboard |
Public Member Functions | |
virtual | ~ProgressNCurses () |
ProgressNCurses () | |
void | handleMessage (const std::list< ProgressInfo > &info) override |
void | handleMessage (const bool &done) override |
![]() | |
virtual | ~ProgressReporter ()=default |
ProgressReporter ()=default | |
![]() | |
virtual | ~Observer ()=default |
virtual void | handleMessage (const T &message)=0 |
Static Public Member Functions | |
static bool | isTerminalCapable () |
Protected Attributes | |
std::unique_ptr< Dashboard > | m_dashboard |
This concrete implementation of ProgressReporter uses a progress bar on the bottom of the terminal to report the progress. std::cerr is used, as std::cout could have been used for the output catalog. It uses a separate thread, and refreshes the content every second. It relies on raw ANSI escape codes, instead of ncurses, to avoid introducing an extra dependency.
Definition at line 40 of file ProgressNCurses.h.
|
virtual |
Definition at line 873 of file ProgressNCurses.cpp.
SourceXtractor::ProgressNCurses::ProgressNCurses | ( | ) |
Definition at line 869 of file ProgressNCurses.cpp.
References m_dashboard.
|
override |
This class intercepts the first call to update to decide on the size of the bottom block, and start the thread.
Definition at line 880 of file ProgressNCurses.cpp.
References m_dashboard.
|
override |
Give the printing thread a chance to exit.
Definition at line 885 of file ProgressNCurses.cpp.
References m_dashboard.
|
static |
Definition at line 876 of file ProgressNCurses.cpp.
Referenced by SourceXtractor::ProgressReporterFactory::createProgressMediator().
|
protected |
Definition at line 63 of file ProgressNCurses.h.
Referenced by handleMessage(), and ProgressNCurses().