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