SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
NDetectedPixels
NDetectedPixelsTaskFactory.h
Go to the documentation of this file.
1
17
/*
18
* Copyright (C) 2012-2020 Euclid Science Ground Segment
19
*
20
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
21
* Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option)
22
* any later version.
23
*
24
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
25
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
26
* details.
27
*
28
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
29
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30
*/
31
38
#ifndef _SEIMPLEMENTATION_PLUGIN_NDETECTEDPIXELSTASKFACTORY_H_
39
#define _SEIMPLEMENTATION_PLUGIN_NDETECTEDPIXELSTASKFACTORY_H_
40
41
#include "
SEFramework/Task/TaskFactory.h
"
42
#include "
SEImplementation/Plugin/NDetectedPixels/NDetectedPixelsSourceTask.h
"
43
44
namespace
SourceXtractor
{
45
class
NDetectedPixelsTaskFactory
:
public
TaskFactory
{
46
public
:
47
NDetectedPixelsTaskFactory
() {}
48
virtual
~NDetectedPixelsTaskFactory
() =
default
;
49
// TaskFactory implementation
50
virtual
std::shared_ptr<Task>
createTask
(
const
PropertyId
& property_id)
const
{
51
if
(property_id == PropertyId::create<NDetectedPixels>()) {
52
return
std::make_shared<NDetectedPixelsSourceTask>();
53
}
54
else
{
55
return
nullptr
;
56
}
57
}
58
};
// end of NDetectedPixelsTaskFactory class
59
}
// namespace SourceXtractor
60
#endif
/* _SEIMPLEMENTATION_PLUGIN_NDETECTEDPIXELSTASKFACTORY_H_ */
TaskFactory.h
std::shared_ptr
STL class.
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
SourceXtractor::NDetectedPixelsTaskFactory::createTask
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
Definition:
NDetectedPixelsTaskFactory.h:50
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::NDetectedPixelsTaskFactory::NDetectedPixelsTaskFactory
NDetectedPixelsTaskFactory()
Definition:
NDetectedPixelsTaskFactory.h:47
NDetectedPixelsSourceTask.h
SourceXtractor::NDetectedPixelsTaskFactory
Definition:
NDetectedPixelsTaskFactory.h:45
SourceXtractor::NDetectedPixelsTaskFactory::~NDetectedPixelsTaskFactory
virtual ~NDetectedPixelsTaskFactory()=default
Generated by
1.8.17