SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
SourceFlags
SourceFlagsTaskFactory.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_SOURCEFLAGSTASKFACTORY_H_
39
#define _SEIMPLEMENTATION_PLUGIN_SOURCEFLAGSTASKFACTORY_H_
40
41
#include "
SEFramework/Task/TaskFactory.h
"
42
#include "
SEImplementation/Plugin/SourceFlags/SourceFlagsSourceTask.h
"
43
44
namespace
SourceXtractor
{
45
46
class
SourceFlagsTaskFactory
:
public
TaskFactory
{
47
public
:
48
virtual
~SourceFlagsTaskFactory
() =
default
;
49
50
void
reportConfigDependencies
(
Euclid::Configuration::ConfigManager
& manager)
const override
;
51
52
void
configure
(
Euclid::Configuration::ConfigManager
& manager)
override
;
53
54
// TaskFactory implementation
55
virtual
std::shared_ptr<Task>
createTask
(
const
PropertyId
&property_id)
const override
;
56
57
private
:
58
std::map<std::string, std::vector<unsigned int>
>
m_instances_per_group
;
59
};
// end of SourceFlagsTaskFactory class
60
61
}
// namespace SourceXtractor
62
#endif
/* _SEIMPLEMENTATION_PLUGIN_SOURCEFLAGSTASKFACTORY_H_ */
SourceFlagsSourceTask.h
TaskFactory.h
Euclid::Configuration::ConfigManager
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor::SourceFlagsTaskFactory
Definition:
SourceFlagsTaskFactory.h:46
SourceXtractor::SourceFlagsTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Definition:
SourceFlagsTaskFactory.cpp:49
SourceXtractor::SourceFlagsTaskFactory::m_instances_per_group
std::map< std::string, std::vector< unsigned int > > m_instances_per_group
Definition:
SourceFlagsTaskFactory.h:58
SourceXtractor::SourceFlagsTaskFactory::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:
SourceFlagsTaskFactory.cpp:57
SourceXtractor::SourceFlagsTaskFactory::~SourceFlagsTaskFactory
virtual ~SourceFlagsTaskFactory()=default
SourceXtractor::SourceFlagsTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Definition:
SourceFlagsTaskFactory.cpp:45
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
std::map
SourceXtractor
Definition:
Aperture.h:30
std::shared_ptr
Generated by
1.9.1