Public Member Functions | Protected Member Functions
InferenceEngine::PluginDispatcher Class Reference

This is a class to load a suitable plugin. More...

#include <ie_plugin_dispatcher.hpp>

Public Member Functions

 PluginDispatcher (const std::vector< file_name_t > &pp={file_name_t()})
 A constructor. More...
 
virtual InferencePlugin getPluginByName (const file_name_t &name) const
 Loads a plugin from plugin directories. More...
 
InferencePlugin getPluginByDevice (const std::string &deviceName) const
 Loads a plugin from directories that is suitable for the device string. More...
 

Protected Member Functions

file_name_t make_plugin_name (const file_name_t &path, const file_name_t &input) const
 Creates path to the plugin. More...
 

Detailed Description

This is a class to load a suitable plugin.

Deprecated:
Use InferenceEngine::Core instead. Will be removed in 2021.1

Constructor & Destructor Documentation

§ PluginDispatcher()

InferenceEngine::PluginDispatcher::PluginDispatcher ( const std::vector< file_name_t > &  pp = {file_name_t()})
explicit

A constructor.

Parameters
ppVector of paths to plugin directories

Member Function Documentation

§ getPluginByDevice()

InferencePlugin InferenceEngine::PluginDispatcher::getPluginByDevice ( const std::string &  deviceName) const

Loads a plugin from directories that is suitable for the device string.

Deprecated:
Use InferenceEngine::Core to work with devices by name
Parameters
deviceNameA string value representing target device
Returns
A pointer to the plugin

§ getPluginByName()

virtual InferencePlugin InferenceEngine::PluginDispatcher::getPluginByName ( const file_name_t &  name) const
virtual

Loads a plugin from plugin directories.

Parameters
namePlugin name
Returns
A pointer to the loaded plugin

§ make_plugin_name()

file_name_t InferenceEngine::PluginDispatcher::make_plugin_name ( const file_name_t &  path,
const file_name_t &  input 
) const
protected

Creates path to the plugin.

Parameters
pathPath to the plugin
inputPlugin name
Returns
The path to the plugin

The documentation for this class was generated from the following file: