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
AssocMode
AssocModePlugin.cpp
Go to the documentation of this file.
1
19
#include "
SEFramework/Plugin/StaticPlugin.h
"
20
21
#include "
SEImplementation/Plugin/AssocMode/AssocMode.h
"
22
#include "
SEImplementation/Plugin/AssocMode/AssocModeTaskFactory.h
"
23
#include "
SEImplementation/Plugin/AssocMode/AssocModePlugin.h
"
24
25
namespace
SourceXtractor {
26
27
template
<
typename
T>
28
using
NdArray
=
Euclid::NdArray::NdArray<T>
;
29
30
static
StaticPlugin<AssocModePlugin>
assoc_plugin
;
31
32
void
AssocModePlugin::registerPlugin
(
PluginAPI
& plugin_api) {
33
plugin_api.
getTaskFactoryRegistry
()
34
.
registerTaskFactory
<
AssocModeTaskFactory
,
AssocMode
>();
35
36
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AssocMode
,
bool
>(
37
"assoc_match"
,
38
[](
const
AssocMode
& prop){
39
return
prop.getMatch();
40
},
41
""
,
42
"Assoc match"
43
);
44
45
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AssocMode
,
NdArray<SeFloat>
>(
46
"assoc_values"
,
47
[](
const
AssocMode
&prop) {
48
return
prop.getAssocValues();
49
},
50
""
,
51
"Assoc catalog values"
52
);
53
54
plugin_api.
getOutputRegistry
().
enableOutput
<
AssocMode
>(
"AssocMode"
);
55
}
56
57
std::string
AssocModePlugin::getIdString
()
const
{
58
return
"AssocModePlugin"
;
59
}
60
61
}
NdArray
Euclid::NdArray::NdArray< T > NdArray
Definition:
GrowthCurvePlugin.cpp:26
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
AssocModePlugin.h
Euclid::NdArray::NdArray
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::string
STL class.
SourceXtractor::AssocModePlugin::getIdString
std::string getIdString() const override
Definition:
AssocModePlugin.cpp:57
AssocModeTaskFactory.h
SourceXtractor::AssocModePlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition:
AssocModePlugin.cpp:32
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::AssocMode
Definition:
AssocMode.h:33
SourceXtractor::AssocModeTaskFactory
Definition:
AssocModeTaskFactory.h:28
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::NdArray
Euclid::NdArray::NdArray< T > NdArray
Definition:
VignetPlugin.h:37
AssocMode.h
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::assoc_plugin
static StaticPlugin< AssocModePlugin > assoc_plugin
Definition:
AssocModePlugin.cpp:30
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