SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEMain
SEMain
ProgressReporterFactory.h
Go to the documentation of this file.
1
17
/*
18
* ProgressReporterFactory.h
19
*
20
* Created on: Mar 19, 2019
21
* Author: Alejandro Alvarez Ayllon
22
*/
23
24
#ifndef _SEMAIN_PROGRESSPRINTERFACTORY_H
25
#define _SEMAIN_PROGRESSPRINTERFACTORY_H
26
27
#include <chrono>
28
#include <boost/program_options/options_description.hpp>
29
#include <boost/program_options/variables_map.hpp>
30
#include "
SEMain/ProgressMediator.h
"
31
32
namespace
SourceXtractor
{
33
41
class
ProgressReporterFactory
{
42
public
:
43
virtual
~ProgressReporterFactory
() =
default
;
44
45
ProgressReporterFactory
();
46
47
void
addOptions
(boost::program_options::options_description &options)
const
;
48
49
void
configure
(
const
std::map<std::string, boost::program_options::variable_value>
&args);
50
51
std::shared_ptr<ProgressMediator>
createProgressMediator
(
void
)
const
;
52
53
private
:
54
std::chrono::steady_clock::duration
m_min_interval
;
55
bool
m_disable_progress_bar
;
56
};
57
58
}
59
60
#endif
// _SEMAIN_PROGRESSPRINTERFACTORY_H
ProgressMediator.h
SourceXtractor::ProgressReporterFactory
Definition:
ProgressReporterFactory.h:41
SourceXtractor::ProgressReporterFactory::m_disable_progress_bar
bool m_disable_progress_bar
Definition:
ProgressReporterFactory.h:55
SourceXtractor::ProgressReporterFactory::createProgressMediator
std::shared_ptr< ProgressMediator > createProgressMediator(void) const
Definition:
ProgressReporterFactory.cpp:47
SourceXtractor::ProgressReporterFactory::addOptions
void addOptions(boost::program_options::options_description &options) const
Definition:
ProgressReporterFactory.cpp:31
SourceXtractor::ProgressReporterFactory::configure
void configure(const std::map< std::string, boost::program_options::variable_value > &args)
Definition:
ProgressReporterFactory.cpp:38
SourceXtractor::ProgressReporterFactory::m_min_interval
std::chrono::steady_clock::duration m_min_interval
Definition:
ProgressReporterFactory.h:54
SourceXtractor::ProgressReporterFactory::ProgressReporterFactory
ProgressReporterFactory()
Definition:
ProgressReporterFactory.cpp:28
SourceXtractor::ProgressReporterFactory::~ProgressReporterFactory
virtual ~ProgressReporterFactory()=default
std::map
SourceXtractor
Definition:
Aperture.h:30
std::shared_ptr
Generated by
1.9.1