SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
27 
28 namespace SourceXtractor {
29 
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
unsigned int getIndex() const
Definition: PropertyId.h:70
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
std::type_index getTypeId() const
Definition: PropertyId.h:66