SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
WorldCentroid
WorldCentroidTaskFactory.cpp
Go to the documentation of this file.
1
17
/*
18
* WorldCentroidTaskFactory.cpp
19
*
20
* Created on: Nov 21, 2016
21
* Author: mschefer
22
*/
23
24
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroid.h
"
25
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroidTask.h
"
26
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroidTaskFactory.h
"
27
28
namespace
SourceXtractor
{
29
30
std::shared_ptr<Task>
WorldCentroidTaskFactory::createTask
(
const
PropertyId
& property_id)
const
{
31
if
(property_id ==
PropertyId::create<WorldCentroid>
()) {
32
return
std::make_shared<WorldCentroidTask>
();
33
}
else
{
34
return
nullptr
;
35
}
36
}
37
38
}
39
WorldCentroidTaskFactory.h
WorldCentroidTask.h
WorldCentroid.h
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
SourceXtractor::WorldCentroidTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition
WorldCentroidTaskFactory.cpp:30
std::make_shared
T make_shared(T... args)
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
Generated by
1.14.0