SourceXtractorPlusPlus
0.11
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
SEImplementation
Plugin
SNRRatio
SNRRatioTaskFactory.h
Go to the documentation of this file.
1
24
#ifndef _SEIMPLEMENTATION_PLUGIN_SNRRATIOTASKFACTORY_H_
25
#define _SEIMPLEMENTATION_PLUGIN_SNRRATIOTASKFACTORY_H_
26
27
#include "
SEFramework/Task/TaskFactory.h
"
28
#include "
SEImplementation/Plugin/SNRRatio/SNRRatioSourceTask.h
"
29
30
namespace
SourceXtractor {
31
class
SNRRatioTaskFactory
:
public
TaskFactory
{
32
public
:
33
SNRRatioTaskFactory
() {}
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_ */
std::shared_ptr
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
SourceXtractor::SNRRatioTaskFactory::~SNRRatioTaskFactory
virtual ~SNRRatioTaskFactory()=default
SourceXtractor::SNRRatioTaskFactory::SNRRatioTaskFactory
SNRRatioTaskFactory()
Definition:
SNRRatioTaskFactory.h:33
SourceXtractor::SNRRatioTaskFactory
Definition:
SNRRatioTaskFactory.h:31
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SNRRatioSourceTask.h
TaskFactory.h
Generated by
1.8.5