SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
src
lib
Plugin
KronRadius
KronRadiusPlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* KronRadiusPlugin.cpp
19
*
20
* Created on: Sep 12, 2016
21
* Author: mkuemmel@usm.lmu.de
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/KronRadius/KronRadius.h
"
27
#include "
SEImplementation/Plugin/KronRadius/KronRadiusTaskFactory.h
"
28
#include "
SEImplementation/Plugin/KronRadius/KronRadiusPlugin.h
"
29
30
namespace
SourceXtractor
{
31
32
static
StaticPlugin<KronRadiusPlugin>
kron_radius_plugin
;
33
34
void
KronRadiusPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
35
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
KronRadiusTaskFactory
,
KronRadius
>();
36
37
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
KronRadius
,
double
>(
38
"kron_radius"
,
39
[](
const
KronRadius
& prop){
40
return
prop.getKronRadius();
41
},
42
"[pixel]"
,
43
"Kron radius"
44
);
45
46
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
KronRadius
,
int64_t
>(
47
"kron_flag"
,
48
[](
const
KronRadius
& prop){
49
return
prop.getFlag();
50
},
51
"[]"
,
52
"Flags for the Kron radius"
53
);
54
55
// register as optional output (to have it in the output catalog)
56
plugin_api.
getOutputRegistry
().
enableOutput
<
KronRadius
>(
"KronRadius"
);
57
}
58
59
std::string
KronRadiusPlugin::getIdString
()
const
{
60
return
"KronRadiusPlugin"
;
61
}
62
63
}
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::kron_radius_plugin
static StaticPlugin< KronRadiusPlugin > kron_radius_plugin
Definition:
KronRadiusPlugin.cpp:32
KronRadiusTaskFactory.h
SourceXtractor::KronRadiusPlugin::getIdString
virtual std::string getIdString() const override
Definition:
KronRadiusPlugin.cpp:59
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
KronRadius.h
KronRadiusPlugin.h
std::string
STL class.
std::int64_t
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::KronRadiusPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
KronRadiusPlugin.cpp:34
SourceXtractor::KronRadius
Kron radius.
Definition:
KronRadius.h:36
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::KronRadiusTaskFactory
Definition:
KronRadiusTaskFactory.h:31
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name)
Definition:
OutputRegistry.h:128
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
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.15