SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SNRRatioPlugin.h
Go to the documentation of this file.
1
17
24
25#ifndef _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_
26#define _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_
27
28#include "SNRRatio.h"
31
32namespace SourceXtractor {
33class SNRRatioPlugin : public Plugin {
34public:
35 virtual ~SNRRatioPlugin() = default;
36
37 virtual void registerPlugin(PluginAPI& plugin_api) {
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
54private:
55}; // end of SNRRatioPlugin class
56} // namespace SourceXtractor
57#endif /* _SEIMPLEMENTATION_PLUGIN_SNRRATIOPLUGIN_H_ */
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Plugins must implement this interface.
Definition Plugin.h:38
virtual std::string getIdString() const
virtual ~SNRRatioPlugin()=default
virtual void registerPlugin(PluginAPI &plugin_api)