SourceXtractorPlusPlus
0.12
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
PeakValue
PeakValueTaskFactory.h
Go to the documentation of this file.
1
17
/*
18
* PeakValueTaskFactory.h
19
*
20
* Created on: Feb 9, 2017
21
* Author: mschefer
22
*/
23
24
#ifndef _SEIMPLEMENTATION_PLUGIN_PEAKVALUE_PEAKVALUETASKFACTORY_H_
25
#define _SEIMPLEMENTATION_PLUGIN_PEAKVALUE_PEAKVALUETASKFACTORY_H_
26
27
#include "
SEFramework/Task/TaskFactory.h
"
28
29
#include "
SEImplementation/Plugin/PeakValue/PeakValue.h
"
30
#include "
SEImplementation/Plugin/PeakValue/PeakValueTask.h
"
31
32
33
namespace
SourceXtractor
{
34
35
class
PeakValueTaskFactory
:
public
TaskFactory
{
36
public
:
37
PeakValueTaskFactory
() {}
38
40
virtual
~PeakValueTaskFactory
() =
default
;
41
42
// TaskFactory implementation
43
virtual
std::shared_ptr<Task>
createTask
(
const
PropertyId
& property_id)
const override
{
44
if
(property_id == PropertyId::create<PeakValue>()) {
45
return
std::make_shared<PeakValueTask>();
46
}
else
{
47
return
nullptr
;
48
}
49
}
50
};
51
52
53
}
/* namespace SourceXtractor */
54
55
56
#endif
/* _SEIMPLEMENTATION_PLUGIN_PEAKVALUE_PEAKVALUETASKFACTORY_H_ */
std::shared_ptr
PeakValue.h
SourceXtractor::PeakValueTaskFactory::PeakValueTaskFactory
PeakValueTaskFactory()
Definition:
PeakValueTaskFactory.h:37
PeakValueTask.h
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::PeakValueTaskFactory::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:
PeakValueTaskFactory.h:43
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
SourceXtractor::PeakValueTaskFactory::~PeakValueTaskFactory
virtual ~PeakValueTaskFactory()=default
Destructor.
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::PeakValueTaskFactory
Definition:
PeakValueTaskFactory.h:35
TaskFactory.h
Generated by
1.8.14