SourceXtractorPlusPlus
0.12
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
CoreThresholdPartition
CoreThresholdPartitionTaskFactory.h
Go to the documentation of this file.
1
23
#ifndef _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_
24
#define _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_
25
26
#include "
CoreThresholdPartitionConfig.h
"
27
#include "
CoreThresholdPartitionTask.h
"
28
#include "
SEFramework/Task/TaskFactory.h
"
29
30
namespace
SourceXtractor {
31
class
CoreThresholdPartitionTaskFactory
:
public
TaskFactory
{
32
public
:
33
CoreThresholdPartitionTaskFactory
():
m_core_threshold
(0.) {}
34
virtual
~CoreThresholdPartitionTaskFactory
() =
default
;
35
36
void
reportConfigDependencies
(
Euclid::Configuration::ConfigManager
& manager)
const
{
37
manager.
registerConfiguration
<
CoreThresholdPartitionConfig
>();
38
};
39
40
void
configure
(
Euclid::Configuration::ConfigManager
& manager) {
41
auto
snr_level_config = manager.
getConfiguration
<
CoreThresholdPartitionConfig
>();
42
m_core_threshold
= snr_level_config.getCoreThreshold();
43
};
44
45
// TaskFactory implementation
46
virtual
std::shared_ptr<Task>
createTask
(
const
PropertyId
& property_id)
const
{
47
if
(property_id == PropertyId::create<NCorePixel>()) {
48
return
std::make_shared<CoreThresholdPartitionTask>(
m_core_threshold
);
49
}
50
else
{
51
return
nullptr
;
52
}
53
}
54
55
private
:
56
double
m_core_threshold
;
57
};
// end of CoreThresholdPartitionTaskFactory class
58
}
// namespace SExtractor
59
#endif
/* _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_ */
std::shared_ptr
SourceXtractor::CoreThresholdPartitionConfig
Definition:
CoreThresholdPartitionConfig.h:31
SourceXtractor::CoreThresholdPartitionTaskFactory::~CoreThresholdPartitionTaskFactory
virtual ~CoreThresholdPartitionTaskFactory()=default
SourceXtractor::CoreThresholdPartitionTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager)
Method which should initialize the object.
Definition:
CoreThresholdPartitionTaskFactory.h:40
SourceXtractor::CoreThresholdPartitionTaskFactory::CoreThresholdPartitionTaskFactory
CoreThresholdPartitionTaskFactory()
Definition:
CoreThresholdPartitionTaskFactory.h:33
SourceXtractor::CoreThresholdPartitionTaskFactory
Definition:
CoreThresholdPartitionTaskFactory.h:31
SourceXtractor::CoreThresholdPartitionTaskFactory::createTask
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
Definition:
CoreThresholdPartitionTaskFactory.h:46
CoreThresholdPartitionTask.h
CoreThresholdPartitionConfig.h
SourceXtractor::CoreThresholdPartitionTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const
Registers all the Configuration dependencies.
Definition:
CoreThresholdPartitionTaskFactory.h:36
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
Euclid::Configuration::ConfigManager
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition:
TaskFactory.h:42
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
TaskFactory.h
SourceXtractor::CoreThresholdPartitionTaskFactory::m_core_threshold
double m_core_threshold
Definition:
CoreThresholdPartitionTaskFactory.h:56
Generated by
1.8.5