SourceXtractorPlusPlus  0.13
Please provide a description of the project.
SNRRatioTaskFactory.h
Go to the documentation of this file.
1 
24 #ifndef _SEIMPLEMENTATION_PLUGIN_SNRRATIOTASKFACTORY_H_
25 #define _SEIMPLEMENTATION_PLUGIN_SNRRATIOTASKFACTORY_H_
26 
29 
30 namespace SourceXtractor {
32 public:
34 
35  virtual ~SNRRatioTaskFactory() = default;
36 
37  // TaskFactory implementation
38  virtual std::shared_ptr<Task> createTask(const PropertyId& property_id) const {
39  if (property_id == PropertyId::create<SNRRatio>()) {
40  return std::make_shared<SNRRatioSourceTask>();
41  }
42  else {
43  return nullptr;
44  }
45  }
46 }; // end of SNRRatioTaskFactory class
47 } // namespace SourceXtractor
48 #endif /* _SEIMPLEMENTATION_PLUGIN_SNRRATIOTASKFACTORY_H_ */
TaskFactory.h
std::shared_ptr
STL class.
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition: TaskFactory.h:42
SourceXtractor::SNRRatioTaskFactory
Definition: SNRRatioTaskFactory.h:31
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::SNRRatioTaskFactory::~SNRRatioTaskFactory
virtual ~SNRRatioTaskFactory()=default
SourceXtractor::SNRRatioTaskFactory::SNRRatioTaskFactory
SNRRatioTaskFactory()
Definition: SNRRatioTaskFactory.h:33
SourceXtractor::SNRRatioTaskFactory::createTask
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
Definition: SNRRatioTaskFactory.h:38
SNRRatioSourceTask.h