SourceXtractorPlusPlus  0.12
Please provide a description of the project.
MeasurementFrameImagesTaskFactory.cpp
Go to the documentation of this file.
1 
22 
23 using namespace Euclid::Configuration;
24 
25 namespace SourceXtractor {
26 
27 std::shared_ptr<Task> MeasurementFrameImagesTaskFactory::createTask(const PropertyId& property_id) const {
28  if (property_id.getTypeId() == PropertyId::create<MeasurementFrameImages>().getTypeId()) {
29  return std::make_shared<MeasurementFrameImagesTask>(property_id.getIndex());
30  } else {
31  return nullptr;
32  }
33 }
34 
35 } // SEImplementation namespace
36 
37 
38 
39 
unsigned int getIndex() const
Definition: PropertyId.h:70
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
std::type_index getTypeId() const
Definition: PropertyId.h:66