SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
OnnxPlugin.cpp
Go to the documentation of this file.
1
17
22
23namespace 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
static Logging getLogger(const std::string &name="")
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
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
Used to register compile-time (static) plugins with the PluginManager.
Elements::Logging onnx_logger
Logger for the ONNX plugin.
static StaticPlugin< OnnxPlugin > onnx_plugin