SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
BlendedFlag
BlendedFlagTaskFactory.h
Go to the documentation of this file.
1
17
/*
18
* BlendedFlagTaskFactory.h
19
*
20
* Created on: Oct 29, 2018
21
* Author: Alejandro Alvarez Ayllon
22
*/
23
24
#ifndef _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASKFACTORY_H_
25
#define _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASKFACTORY_H_
26
27
28
#include "
SEFramework/Task/TaskFactory.h
"
29
#include "
SEImplementation/Plugin/BlendedFlag/BlendedFlagTask.h
"
30
#include "
SEImplementation/Plugin/BlendedFlag/BlendedFlag.h
"
31
32
namespace
SourceXtractor
{
33
34
class
BlendedFlagTaskFactory
:
public
TaskFactory
{
35
public
:
36
BlendedFlagTaskFactory
() {}
37
38
virtual
~BlendedFlagTaskFactory
() =
default
;
39
40
virtual
std::shared_ptr<Task>
createTask
(
const
PropertyId
&property_id)
const
{
41
if
(property_id == PropertyId::create<BlendedFlag>()) {
42
return
std::make_shared<BlendedFlagTask>();
43
}
44
return
nullptr
;
45
}
46
};
47
48
}
// end SourceXtractor
49
50
#endif
// _SEIMPLEMENTATION_PLUGIN_BLENDEDFLAGTASKFACTORY_H_
BlendedFlagTask.h
BlendedFlag.h
TaskFactory.h
SourceXtractor::BlendedFlagTaskFactory
Definition:
BlendedFlagTaskFactory.h:34
SourceXtractor::BlendedFlagTaskFactory::BlendedFlagTaskFactory
BlendedFlagTaskFactory()
Definition:
BlendedFlagTaskFactory.h:36
SourceXtractor::BlendedFlagTaskFactory::createTask
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
Definition:
BlendedFlagTaskFactory.h:40
SourceXtractor::BlendedFlagTaskFactory::~BlendedFlagTaskFactory
virtual ~BlendedFlagTaskFactory()=default
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
SourceXtractor
Definition:
Aperture.h:30
std::shared_ptr
Generated by
1.9.1