|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
#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 |
| Public Member Functions inherited from SourceXtractor::ProgressReporter | |
| virtual | ~ProgressReporter ()=default |
| ProgressReporter ()=default | |
| virtual void | handleMessage (const std::list< ProgressInfo > &message)=0 |
| virtual void | handleMessage (const bool &message)=0 |
| Public Member Functions inherited from SourceXtractor::Observer< std::list< ProgressInfo > > | |
| virtual | ~Observer ()=default |
| Public Member Functions inherited from SourceXtractor::Observer< bool > | |
| virtual | ~Observer ()=default |
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.
|
virtualdefault |
| SourceXtractor::ProgressNCurses::ProgressNCurses | ( | ) |
Definition at line 887 of file ProgressNCurses.cpp.
References m_dashboard, and SourceXtractor::make_unique().

|
overridevirtual |
Give the printing thread a chance to exit.
Implements SourceXtractor::Observer< bool >.
Definition at line 902 of file ProgressNCurses.cpp.
References m_dashboard.
|
overridevirtual |
This class intercepts the first call to update to decide on the size of the bottom block, and start the thread.
Implements SourceXtractor::Observer< std::list< ProgressInfo > >.
Definition at line 897 of file ProgressNCurses.cpp.
References m_dashboard.
|
static |
Definition at line 893 of file ProgressNCurses.cpp.
Referenced by SourceXtractor::ProgressReporterFactory::createProgressMediator().
|
protected |
Definition at line 64 of file ProgressNCurses.h.
Referenced by handleMessage(), handleMessage(), and ProgressNCurses().