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