SourceXtractorPlusPlus  0.11
Please provide a description of the project.
PixelBoundariesTaskFactory.cpp
Go to the documentation of this file.
1 
26 
27 namespace SourceXtractor {
28 
30  if (property_id == PropertyId::create<PixelBoundaries>()) {
31  return std::make_shared<PixelBoundariesTask>();
32  } else if (property_id == PropertyId::create<PixelBoundariesHalfMaximum>()) {
33  return std::make_shared<PixelBoundariesTaskHalfMaximum>();
34  } else {
35  return nullptr;
36  }
37 }
38 
39 } // SEImplementation namespace
40 
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.