SourceXtractorPlusPlus
0.11
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
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
SourceXtractor::IsophotalFluxTaskFactory::m_magnitude_zero_point
SeFloat m_magnitude_zero_point
Definition:
IsophotalFluxTaskFactory.h:49
std::shared_ptr
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
Euclid::Configuration::ConfigManager
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
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
SourceXtractor::IsophotalFluxTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Definition:
IsophotalFluxTaskFactory.cpp:36
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition:
PropertyId.h:40
MagnitudeConfig.h
IsophotalFluxTaskFactory.h
SourceXtractor::IsophotalFluxTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Definition:
IsophotalFluxTaskFactory.cpp:32
SourceXtractor::MagnitudeConfig
Definition:
MagnitudeConfig.h:32
IsophotalFlux.h
IsophotalFluxTask.h
Generated by
1.8.5