Files
openvino/inference-engine/include/ie_plugin_ptr.hpp
2020-06-03 06:04:50 +03:00

48 lines
1.2 KiB
C++

// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief A header file contains a wrapper class for handling plugin instantiation and releasing resources
*
* @file ie_plugin_ptr.hpp
*/
#pragma once
#include <string>
#include "details/ie_so_pointer.hpp"
#include "ie_extension.h"
#include "ie_plugin.hpp"
namespace InferenceEngine {
namespace details {
IE_SUPPRESS_DEPRECATED_START
/**
* @deprecated Use InferenceEngine::Core instead. This API will be removed in 2021.1 release.
* @brief This class defines the name of the fabric for creating an IInferencePlugin object in DLL
*/
template <>
class INFERENCE_ENGINE_DEPRECATED("Use InferenceEngine::Core instead") SOCreatorTrait<IInferencePlugin> {
public:
/**
* @brief A name of the fabric for creating IInferencePlugin object in DLL
*/
static constexpr auto name = "CreatePluginEngine";
};
} // namespace details
/**
* @brief A C++ helper to work with objects created by the plugin.
*
* Implements different interfaces.
*/
using InferenceEnginePluginPtr = InferenceEngine::details::SOPointer<IInferencePlugin>;
IE_SUPPRESS_DEPRECATED_END
} // namespace InferenceEngine