SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
src
lib
Plugin
Jacobian
JacobianTaskFactory.cpp
Go to the documentation of this file.
1
17
/*
18
* JacobianTaskFactory.cpp
19
*
20
* Created on: Oct 08, 2018
21
* Author: Alejandro Alvarez Ayllon
22
*/
23
24
#include "
SEImplementation/Plugin/Jacobian/JacobianTaskFactory.h
"
25
#include "
SEImplementation/Plugin/Jacobian/JacobianTask.h
"
26
#include "
SEImplementation/Plugin/Jacobian/Jacobian.h
"
27
28
namespace
SourceXtractor
{
29
30
std::shared_ptr<Task>
JacobianTaskFactory::createTask
(
const
SourceXtractor::PropertyId
&property_id)
const
{
31
if
(property_id.
getTypeId
() ==
typeid
(
JacobianGroup
)) {
32
return
std::make_shared<JacobianGroupTask>(property_id.
getIndex
());
33
}
34
else
if
(property_id.
getTypeId
() ==
typeid
(
JacobianSource
)) {
35
return
std::make_shared<JacobianSourceTask>(property_id.
getIndex
());
36
}
37
return
nullptr
;
38
}
39
40
}
// end SourceXtractor
JacobianTaskFactory.h
JacobianTask.h
Jacobian.h
SourceXtractor::JacobianGroup
Definition:
Jacobian.h:56
SourceXtractor::JacobianSource
Definition:
Jacobian.h:51
SourceXtractor::JacobianTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition:
JacobianTaskFactory.cpp:30
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::PropertyId::getIndex
unsigned int getIndex() const
Definition:
PropertyId.h:70
SourceXtractor::PropertyId::getTypeId
std::type_index getTypeId() const
Definition:
PropertyId.h:66
SourceXtractor
Definition:
Aperture.h:30
std::shared_ptr
Generated by
1.9.1