SourceXtractorPlusPlus
0.13
Please provide a description of the project.
SEImplementation
src
lib
Plugin
KronRadius
KronRadiusTaskFactory.cpp
Go to the documentation of this file.
1
17
/*
18
* KronRadiusTaskFactory.cpp
19
*
20
* Created on: Sep 12, 2016
21
* Author: mkuemmel@usm.lmu.de
22
*/
23
24
#include <iostream>
25
#include <sstream>
26
27
#include "
SEFramework/Property/PropertyId.h
"
28
#include "
SEFramework/Task/Task.h
"
29
30
#include "
SEImplementation/Plugin/KronRadius/KronRadius.h
"
31
#include "
SEImplementation/Plugin/KronRadius/KronRadiusTask.h
"
32
#include "
SEImplementation/Plugin/KronRadius/KronRadiusTaskFactory.h
"
33
34
namespace
SourceXtractor
{
35
36
std::shared_ptr<Task>
KronRadiusTaskFactory::createTask
(
const
PropertyId
& property_id)
const
{
37
if
(property_id == PropertyId::create<KronRadius>()) {
38
return
std::make_shared<KronRadiusTask>();
39
}
else
{
40
return
nullptr
;
41
}
42
}
43
44
}
45
PropertyId.h
std::shared_ptr
STL class.
Task.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor
Definition:
Aperture.h:30
KronRadiusTaskFactory.h
SourceXtractor::KronRadiusTaskFactory::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:
KronRadiusTaskFactory.cpp:36
KronRadiusTask.h
KronRadius.h
Generated by
1.8.20