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...
 
InferenceEnginePluginPtr  getSuitablePlugin (TargetDevice device) const
  Loads a plugin from directories that is suitable for the device. 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.

Constructor & Destructor Documentation

§ PluginDispatcher()

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

A constructor.

Parameters
pp Vector 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
deviceName A 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
name Plugin name
Returns
A pointer to the loaded plugin

§ getSuitablePlugin()

InferenceEnginePluginPtr InferenceEngine::PluginDispatcher::getSuitablePlugin ( TargetDevice  device ) const

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

Deprecated:
Use InferenceEngine::Core to work with devices by name
Parameters
device An instance of InferenceEngine::TargetDevice
Returns
A pointer to the 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
path Path to the plugin
input Plugin name
Returns
The path to the plugin

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