SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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_ */
SourceFactory.h
SourceWithOnDemandProperties.h
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::SourceWithOnDemandPropertiesFactory
SourceWithOnDemandPropertiesFactory(std::shared_ptr< TaskProvider > task_provider)
Definition
SourceWithOnDemandPropertiesFactory.h:40
SourceXtractor::SourceWithOnDemandPropertiesFactory::createSource
std::unique_ptr< SourceInterface > createSource() const override
Definition
SourceWithOnDemandPropertiesFactory.h:43
SourceXtractor::SourceWithOnDemandPropertiesFactory::m_task_provider
std::shared_ptr< TaskProvider > m_task_provider
Definition
SourceWithOnDemandPropertiesFactory.h:48
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0