SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnnxPlugin.cpp
Go to the documentation of this file.
1 
22 
23 namespace SourceXtractor {
24 
27 
29  return "MLMeasurementPlugin";
30 }
31 
34  // Note that we do not now the output yet, so we do not register any columns
35 
37  "ml_measurment_flags",
38  [](const OnnxProperty&) {
39  return 0; // Dummy property for now to avoid crash
40  },
41  "",
42  "flags"
43  );
44  plugin_api.getOutputRegistry().enableOutput<OnnxProperty>("MLMeasurement", true);
45 }
46 
47 } // end of namespace SourceXtractor
Elements::Logging onnx_logger
Logger for the ONNX plugin.
Definition: OnnxPlugin.cpp:26
void enableOutput(std::string alias_name, bool configurable_output=false)
virtual OutputRegistry & getOutputRegistry() const =0
STL class.
void registerPlugin(PluginAPI &plugin_api) override
Definition: OnnxPlugin.cpp:32
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:40
static StaticPlugin< OnnxPlugin > onnx_plugin
Definition: OnnxPlugin.cpp:25
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
std::string getIdString() const override
Definition: OnnxPlugin.cpp:28
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
static Logging getLogger(const std::string &name="")
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")