SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_ */
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
virtual ~SNRRatioTaskFactory()=default
Creates a Task for computing a given property.
Definition: TaskFactory.h:42
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40