SourceXtractorPlusPlus
0.15
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
IsophotalFluxPlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* IsophotalFluxPlugin.cpp
19
*
20
* Created on: Sep 28, 2016
21
* Author: mschefer
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h
"
27
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxTaskFactory.h
"
28
29
#include "
SEImplementation/Plugin/IsophotalFlux/IsophotalFluxPlugin.h
"
30
31
namespace
SourceXtractor {
32
33
static
StaticPlugin<IsophotalFluxPlugin>
isophotal_flux_plugin
;
34
35
void
IsophotalFluxPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
36
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
IsophotalFluxTaskFactory
,
IsophotalFlux
>();
37
38
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
IsophotalFlux
,
double
>(
39
"isophotal_flux"
,
40
[](
const
IsophotalFlux
& prop){
41
return
prop.getFlux();
42
},
43
"count"
,
44
"Isophotal flux"
45
);
46
47
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
IsophotalFlux
,
double
>(
48
"isophotal_flux_err"
,
49
[](
const
IsophotalFlux
& prop){
50
return
prop.getFluxError();
51
},
52
"count"
,
53
"Isophotal flux error"
54
);
55
56
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
IsophotalFlux
,
double
>(
57
"isophotal_mag"
,
58
[](
const
IsophotalFlux
& prop){
59
return
prop.getMag();
60
},
61
"mag"
,
62
"Isophotal magnitude"
63
);
64
65
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
IsophotalFlux
,
double
>(
66
"isophotal_mag_err"
,
67
[](
const
IsophotalFlux
& prop){
68
return
prop.getMagError();
69
},
70
"mag"
,
71
"Isophotal magnitude error"
72
);
73
74
75
76
plugin_api.
getOutputRegistry
().
enableOutput
<
IsophotalFlux
>(
"IsophotalFlux"
);
77
}
78
79
std::string
IsophotalFluxPlugin::getIdString
()
const
{
80
return
"IsophotalFlux"
;
81
}
82
83
}
84
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::IsophotalFlux
Computes the isophotal flux and magnitude.
Definition:
IsophotalFlux.h:36
SourceXtractor::isophotal_flux_plugin
static StaticPlugin< IsophotalFluxPlugin > isophotal_flux_plugin
Definition:
IsophotalFluxPlugin.cpp:33
SourceXtractor::IsophotalFluxTaskFactory
Produces IsophotalFluxTask.
Definition:
IsophotalFluxTaskFactory.h:35
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
IsophotalFluxPlugin.h
std::string
STL class.
SourceXtractor::IsophotalFluxPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
IsophotalFluxPlugin.cpp:35
StaticPlugin.h
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
IsophotalFluxTaskFactory.h
SourceXtractor::IsophotalFluxPlugin::getIdString
virtual std::string getIdString() const override
Definition:
IsophotalFluxPlugin.cpp:79
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
IsophotalFlux.h
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition:
OutputRegistry.h:46
Generated by
1.8.5