SourceXtractorPlusPlus
0.12
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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_logger
Elements::Logging onnx_logger
Logger for the ONNX plugin.
Definition:
OnnxPlugin.cpp:26
OnnxPlugin.h
OnnxProperty.h
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::OnnxProperty
Definition:
OnnxProperty.h:30
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::string
STL class.
SourceXtractor::OnnxPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition:
OnnxPlugin.cpp:32
Elements::Logging
StaticPlugin.h
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::onnx_plugin
static StaticPlugin< OnnxPlugin > onnx_plugin
Definition:
OnnxPlugin.cpp:25
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::OnnxTaskFactory
Definition:
OnnxTaskFactory.h:29
SourceXtractor::OnnxPlugin::getIdString
std::string getIdString() const override
Definition:
OnnxPlugin.cpp:28
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
OnnxTaskFactory.h
Generated by
1.8.5