SourceXtractorPlusPlus
0.14
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
std::shared_ptr
PixelCentroidTaskFactory.h
PixelCentroidTask.h
PixelCentroid.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::PixelCentroidTaskFactory::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:
PixelCentroidTaskFactory.cpp:29
Generated by
1.8.5