SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
PixelCentroid
PixelCentroidTaskFactory.cpp
Go to the documentation of this file.
1
23
#include "
SEImplementation/Plugin/PixelCentroid/PixelCentroid.h
"
24
#include "
SEImplementation/Plugin/PixelCentroid/PixelCentroidTask.h
"
25
#include "
SEImplementation/Plugin/PixelCentroid/PixelCentroidTaskFactory.h
"
26
27
namespace
SourceXtractor
{
28
29
std::shared_ptr<Task>
PixelCentroidTaskFactory::createTask
(
const
PropertyId
&
property_id
)
const
{
30
if
(
property_id
== PropertyId::create<PixelCentroid>()) {
31
return
std::make_shared<PixelCentroidTask>
();
32
}
else
{
33
return
nullptr
;
34
}
35
}
36
37
38
}
39
PixelCentroidTaskFactory.h
PixelCentroidTask.h
PixelCentroid.h
SourceXtractor::PixelCentroidTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition
PixelCentroidTaskFactory.cpp:29
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition
PropertyId.h:40
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0