SourceXtractorPlusPlus
0.13
Please provide a description of the project.
SEImplementation
src
lib
Plugin
Onnx
OnnxPlugin.cpp
Go to the documentation of this file.
1
18
#include "
SEImplementation/Plugin/Onnx/OnnxPlugin.h
"
19
#include "
SEFramework/Plugin/StaticPlugin.h
"
20
#include "
SEImplementation/Plugin/Onnx/OnnxProperty.h
"
21
#include "
SEImplementation/Plugin/Onnx/OnnxTaskFactory.h
"
22
23
namespace
SourceXtractor
{
24
25
static
StaticPlugin<OnnxPlugin>
onnx_plugin
;
26
Elements::Logging
onnx_logger
=
Elements::Logging::getLogger
(
"Onnx"
);
27
28
std::string
OnnxPlugin::getIdString
()
const
{
29
return
"OnnxPlugin"
;
30
}
31
32
void
OnnxPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
33
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
OnnxTaskFactory
,
OnnxProperty
>();
34
// Note that we do not now the output yet, so we do not register any columns
35
plugin_api.
getOutputRegistry
().
enableOutput
<
OnnxProperty
>(
"ONNX"
,
true
);
36
}
37
38
}
// end of namespace SourceXtractor
SourceXtractor::onnx_plugin
static StaticPlugin< OnnxPlugin > onnx_plugin
Definition:
OnnxPlugin.cpp:25
OnnxTaskFactory.h
std::string
STL class.
StaticPlugin.h
Elements::Logging
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::OnnxPlugin::getIdString
std::string getIdString() const override
Definition:
OnnxPlugin.cpp:28
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
SourceXtractor::onnx_logger
Elements::Logging onnx_logger
Logger for the ONNX plugin.
Definition:
OnnxPlugin.cpp:26
SourceXtractor::OnnxPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition:
OnnxPlugin.cpp:32
SourceXtractor::OnnxProperty
Definition:
OnnxProperty.h:30
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
OnnxPlugin.h
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
OnnxProperty.h
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::OnnxTaskFactory
Definition:
OnnxTaskFactory.h:29
Generated by
1.8.20