SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
src
lib
Plugin
PixelBoundaries
PixelBoundariesTaskFactory.cpp
Go to the documentation of this file.
1
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
std::shared_ptr
STL class.
PixelBoundaries.h
SourceXtractor
Definition:
Aperture.h:30
PixelBoundariesTaskFactory.h
PixelBoundariesTask.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::PixelBoundariesTaskFactory::createTask
virtual 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
Generated by
1.8.15