SourceXtractorPlusPlus
0.14
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
std::shared_ptr
SourceXtractor::ProgressReporterFactory::addOptions
void addOptions(boost::program_options::options_description &options) const
Definition:
ProgressReporterFactory.cpp:31
SourceXtractor::ProgressReporterFactory::~ProgressReporterFactory
virtual ~ProgressReporterFactory()=default
std::map
STL class.
ProgressMediator.h
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::m_disable_progress_bar
bool m_disable_progress_bar
Definition:
ProgressReporterFactory.h:55
SourceXtractor::ProgressReporterFactory::configure
void configure(const std::map< std::string, boost::program_options::variable_value > &args)
Definition:
ProgressReporterFactory.cpp:38
SourceXtractor::ProgressReporterFactory
Definition:
ProgressReporterFactory.h:41
SourceXtractor::ProgressReporterFactory::createProgressMediator
std::shared_ptr< ProgressMediator > createProgressMediator(void) const
Definition:
ProgressReporterFactory.cpp:47
Generated by
1.8.5