SourceXtractorPlusPlus  0.13
Please provide a description of the project.
WorldCentroidTaskFactory.cpp
Go to the documentation of this file.
1 
17 /*
18  * WorldCentroidTaskFactory.cpp
19  *
20  * Created on: Nov 21, 2016
21  * Author: mschefer
22  */
23 
27 
28 namespace SourceXtractor {
29 
31  if (property_id == PropertyId::create<WorldCentroid>()) {
32  return std::make_shared<WorldCentroidTask>();
33  } else {
34  return nullptr;
35  }
36 }
37 
38 }
39 
std::shared_ptr
STL class.
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::WorldCentroidTaskFactory::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: WorldCentroidTaskFactory.cpp:30
WorldCentroid.h
WorldCentroidTask.h
WorldCentroidTaskFactory.h