SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEImplementation
src
lib
Plugin
IsophotalFlux
IsophotalFluxTaskFactory.cpp
Go to the documentation of this file.
1
17
/*
18
* IsophotalFluxTaskFactory.cpp
19
*
20
* Created on: Sep 28, 2016
21
* Author: mschefer
22
*/
23
24
#include "
SEImplementation/Configuration/MagnitudeConfig.h
"
25
26
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h
"
27
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxTask.h
"
28
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxTaskFactory.h
"
29
30
namespace
SourceXtractor
{
31
32
void
IsophotalFluxTaskFactory::reportConfigDependencies
(
Euclid::Configuration::ConfigManager
& manager)
const
{
33
manager.
registerConfiguration
<
MagnitudeConfig
>();
34
}
35
36
void
IsophotalFluxTaskFactory::configure
(
Euclid::Configuration::ConfigManager
& manager) {
37
m_magnitude_zero_point
= manager.
getConfiguration
<
MagnitudeConfig
>().getMagnitudeZeroPoint();
38
}
39
40
std::shared_ptr<Task>
IsophotalFluxTaskFactory::createTask
(
const
PropertyId
& property_id)
const
{
41
if
(property_id == PropertyId::create<IsophotalFlux>()) {
42
return
std::make_shared<IsophotalFluxTask>(
m_magnitude_zero_point
);
43
}
else
{
44
return
nullptr
;
45
}
46
}
47
48
}
49
50
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
SourceXtractor::MagnitudeConfig
Definition:
MagnitudeConfig.h:32
std::shared_ptr
STL class.
Euclid::Configuration::ConfigManager
SourceXtractor::IsophotalFluxTaskFactory::m_magnitude_zero_point
SeFloat m_magnitude_zero_point
Definition:
IsophotalFluxTaskFactory.h:49
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
SourceXtractor
Definition:
Aperture.h:30
IsophotalFlux.h
MagnitudeConfig.h
SourceXtractor::IsophotalFluxTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Definition:
IsophotalFluxTaskFactory.cpp:36
SourceXtractor::IsophotalFluxTaskFactory::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:
IsophotalFluxTaskFactory.cpp:40
IsophotalFluxTask.h
SourceXtractor::IsophotalFluxTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Definition:
IsophotalFluxTaskFactory.cpp:32
IsophotalFluxTaskFactory.h
Generated by
1.8.18