SourceXtractorPlusPlus
0.12
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
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
std::shared_ptr
KronRadiusTaskFactory.h
KronRadiusTask.h
KronRadius.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
PropertyId.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
Task.h
Generated by
1.8.5