SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
VignetPlugin.h
Go to the documentation of this file.
1
17
24
25#ifndef _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_
26#define _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_
27
28#include <NdArray/NdArray.h>
31#include "Vignet.h"
32#include "VignetArray.h"
33
34namespace SourceXtractor {
35
36template<typename T>
38
39class VignetPlugin : public Plugin {
40public:
41 virtual ~VignetPlugin() = default;
42
43 virtual void registerPlugin(PluginAPI& plugin_api) {
46 "vignet",
47 [](const VignetArray& prop) {
48 return prop.getVignets();
49 },
50 "count",
51 "The object vignet data"
52 );
53 plugin_api.getOutputRegistry().enableOutput<VignetArray>("Vignet");
54 }
55
56 virtual std::string getIdString() const {
57 return "Vignet";
58 }
59
60private:
61}; // end of VignetPlugin class
62
63} // namespace SourceXtractor
64#endif /* _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_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 ~VignetPlugin()=default
virtual std::string getIdString() const
virtual void registerPlugin(PluginAPI &plugin_api)