SourceXtractorPlusPlus
0.19
SourceXtractor++, the next generation SExtractor
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEFramework
SEFramework
Source
SourceWithOnDemandPropertiesFactory.h
Go to the documentation of this file.
1
17
/*
18
* SourceWithOnDemandPropertiesFactory.h
19
*
20
* Created on: Aug 8, 2016
21
* Author: mschefer
22
*/
23
24
#ifndef _SEFRAMEWORK_SOURCE_SOURCEWITHONDEMANDPROPERTIESFACTORY_H_
25
#define _SEFRAMEWORK_SOURCE_SOURCEWITHONDEMANDPROPERTIESFACTORY_H_
26
27
#include "
SEFramework/Source/SourceFactory.h
"
28
#include "
SEFramework/Source/SourceWithOnDemandProperties.h
"
29
#include <
AlexandriaKernel/memory_tools.h
>
30
31
namespace
SourceXtractor {
32
38
class
SourceWithOnDemandPropertiesFactory
:
public
SourceFactory
{
39
public
:
40
explicit
SourceWithOnDemandPropertiesFactory
(
std::shared_ptr<TaskProvider>
task_provider) :
41
m_task_provider
(task_provider) {}
42
43
std::unique_ptr<SourceInterface>
createSource
()
const override
{
44
return
Euclid::make_unique<SourceWithOnDemandProperties>(
m_task_provider
);
45
}
46
47
private
:
48
std::shared_ptr<TaskProvider>
m_task_provider
;
49
};
50
51
}
52
53
54
#endif
/* _SEFRAMEWORK_SOURCE_SOURCEWITHONDEMANDPROPERTIESFACTORY_H_ */
std::shared_ptr< TaskProvider >
SourceXtractor::SourceWithOnDemandPropertiesFactory::createSource
std::unique_ptr< SourceInterface > createSource() const override
Definition:
SourceWithOnDemandPropertiesFactory.h:43
SourceXtractor::SourceFactory
A factory interface to create SourceInterface instances.
Definition:
SourceFactory.h:39
SourceXtractor::SourceWithOnDemandPropertiesFactory
A SourceFactory implementation that produces a SourceWithOnDemandProperties.
Definition:
SourceWithOnDemandPropertiesFactory.h:38
SourceXtractor::SourceWithOnDemandPropertiesFactory::m_task_provider
std::shared_ptr< TaskProvider > m_task_provider
Definition:
SourceWithOnDemandPropertiesFactory.h:48
SourceWithOnDemandProperties.h
SourceXtractor::SourceWithOnDemandPropertiesFactory::SourceWithOnDemandPropertiesFactory
SourceWithOnDemandPropertiesFactory(std::shared_ptr< TaskProvider > task_provider)
Definition:
SourceWithOnDemandPropertiesFactory.h:40
memory_tools.h
std::unique_ptr
STL class.
SourceFactory.h
Generated by
1.8.5