SourceXtractorPlusPlus  0.12
Please provide a description of the project.
VignetPlugin.h
Go to the documentation of this file.
1 
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 
34 namespace SourceXtractor {
35 
36 template<typename T>
38 
39 class VignetPlugin : public Plugin {
40 public:
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 
60 private:
61 }; // end of VignetPlugin class
62 
63 } // namespace SourceXtractor
64 #endif /* _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_ */
virtual ~VignetPlugin()=default
void enableOutput(std::string alias_name, bool configurable_output=false)
virtual OutputRegistry & getOutputRegistry() const =0
virtual void registerPlugin(PluginAPI &plugin_api)
Definition: VignetPlugin.h:43
STL class.
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
Plugins must implement this interface.
Definition: Plugin.h:38
Euclid::NdArray::NdArray< T > NdArray
Definition: VignetPlugin.h:37
virtual std::string getIdString() const
Definition: VignetPlugin.h:56
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")