SourceXtractorPlusPlus
0.10
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
ShapeParameters
ShapeParametersTaskFactory.cpp
Go to the documentation of this file.
1
17
/*
18
* ShapeParametersTaskFactory.cpp
19
*
20
* Created on: Jan 27, 2017
21
* Author: mschefer
22
*/
23
24
#include "
SEImplementation/Plugin/ShapeParameters/ShapeParameters.h
"
25
#include "
SEImplementation/Plugin/ShapeParameters/ShapeParametersTask.h
"
26
#include "
SEImplementation/Plugin/ShapeParameters/ShapeParametersTaskFactory.h
"
27
28
namespace
SourceXtractor {
29
30
std::shared_ptr<Task>
ShapeParametersTaskFactory::createTask
(
const
PropertyId
& property_id)
const
{
31
if
(property_id == PropertyId::create<ShapeParameters>()) {
32
return
std::make_shared<ShapeParametersTask>();
33
}
else
{
34
return
nullptr
;
35
}
36
}
37
38
}
39
40
SourceXtractor::ShapeParametersTaskFactory::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:
ShapeParametersTaskFactory.cpp:30
std::shared_ptr
ShapeParameters.h
ShapeParametersTask.h
ShapeParametersTaskFactory.h
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
Generated by
1.8.5