SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <ProgressReporterFactory.h>
Public Member Functions | |
virtual | ~ProgressReporterFactory ()=default |
ProgressReporterFactory () | |
void | addOptions (boost::program_options::options_description &options) const |
void | configure (const std::map< std::string, boost::program_options::variable_value > &args) |
std::shared_ptr< ProgressMediator > | createProgressMediator (void) const |
Private Attributes | |
std::chrono::steady_clock::duration | m_min_interval |
bool | m_disable_progress_bar |
Abstracts away the creation of concrete ProgressReporters
Definition at line 41 of file ProgressReporterFactory.h.
|
virtualdefault |
SourceXtractor::ProgressReporterFactory::ProgressReporterFactory | ( | ) |
Definition at line 28 of file ProgressReporterFactory.cpp.
void SourceXtractor::ProgressReporterFactory::addOptions | ( | boost::program_options::options_description & | options | ) | const |
Definition at line 31 of file ProgressReporterFactory.cpp.
References std::string::c_str(), SourceXtractor::PROGRESS_BAR_DISABLED, and SourceXtractor::PROGRESS_MIN_INTERVAL.
void SourceXtractor::ProgressReporterFactory::configure | ( | const std::map< std::string, boost::program_options::variable_value > & | args | ) |
Definition at line 38 of file ProgressReporterFactory.cpp.
References std::map< K, T >::at(), m_disable_progress_bar, m_min_interval, SourceXtractor::PROGRESS_BAR_DISABLED, and SourceXtractor::PROGRESS_MIN_INTERVAL.
std::shared_ptr< ProgressMediator > SourceXtractor::ProgressReporterFactory::createProgressMediator | ( | void | ) | const |
Definition at line 47 of file ProgressReporterFactory.cpp.
References SourceXtractor::ProgressNCurses::isTerminalCapable(), SourceXtractor::logger, m_disable_progress_bar, and m_min_interval.
|
private |
Definition at line 55 of file ProgressReporterFactory.h.
Referenced by configure(), and createProgressMediator().
|
private |
Definition at line 54 of file ProgressReporterFactory.h.
Referenced by configure(), and createProgressMediator().