SourceXtractorPlusPlus
0.16
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
SNRRatio
SNRRatioPlugin.h
Go to the documentation of this file.
1
25
#ifndef _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_
26
#define _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_
27
28
#include "
SNRRatio.h
"
29
#include "
SEFramework/Plugin/Plugin.h
"
30
#include "
SEImplementation/Plugin/SNRRatio/SNRRatioTaskFactory.h
"
31
32
namespace
SourceXtractor
{
33
class
SNRRatioPlugin
:
public
Plugin
{
34
public
:
35
virtual
~SNRRatioPlugin
() =
default
;
36
37
virtual
void
registerPlugin
(
PluginAPI
& plugin_api) {
38
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
SNRRatioTaskFactory
,
SNRRatio
>();
39
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
SNRRatio
,
float
>(
40
"snrratio"
,
41
[](
const
SNRRatio
& prop) {
42
return
prop.getSNRRatio();
43
},
44
""
,
45
"The object signal-to-noise ratio"
46
);
47
plugin_api.
getOutputRegistry
().
enableOutput
<
SNRRatio
>(
"SNRRatio"
);
48
}
49
50
virtual
std::string
getIdString
()
const
{
51
return
"snrratio"
;
52
}
53
54
private
:
55
};
// end of SNRRatioPlugin class
56
}
// namespace SourceXtractor
57
#endif
/* _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_ */
Plugin.h
SNRRatioTaskFactory.h
SNRRatio.h
std::string
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
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::Plugin
Plugins must implement this interface.
Definition:
Plugin.h:38
SourceXtractor::SNRRatioPlugin
Definition:
SNRRatioPlugin.h:33
SourceXtractor::SNRRatioPlugin::getIdString
virtual std::string getIdString() const
Definition:
SNRRatioPlugin.h:50
SourceXtractor::SNRRatioPlugin::~SNRRatioPlugin
virtual ~SNRRatioPlugin()=default
SourceXtractor::SNRRatioPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api)
Definition:
SNRRatioPlugin.h:37
SourceXtractor::SNRRatioTaskFactory
Definition:
SNRRatioTaskFactory.h:31
SourceXtractor::SNRRatio
Definition:
SNRRatio.h:32
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
SourceXtractor
Definition:
Aperture.h:30
Generated by
1.9.1