Files
openvino/inference-engine/include/ie_plugin_ptr.hpp

48 lines
1.2 KiB
C++
Raw Normal View History

2020-02-11 22:48:49 +03:00
// Copyright (C) 2018-2020 Intel Corporation
2018-10-16 13:45:03 +03:00
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief A header file contains a wrapper class for handling plugin instantiation and releasing resources
2020-02-11 22:48:49 +03:00
*
2018-10-16 13:45:03 +03:00
* @file ie_plugin_ptr.hpp
*/
#pragma once
2020-02-11 22:48:49 +03:00
#include <string>
2018-10-16 13:45:03 +03:00
#include "details/ie_so_pointer.hpp"
#include "ie_extension.h"
2020-02-11 22:48:49 +03:00
#include "ie_plugin.hpp"
2018-10-16 13:45:03 +03:00
namespace InferenceEngine {
namespace details {
2020-02-11 22:48:49 +03:00
IE_SUPPRESS_DEPRECATED_START
2018-10-16 13:45:03 +03:00
/**
2020-06-03 06:04:50 +03:00
* @deprecated Use InferenceEngine::Core instead. This API will be removed in 2021.1 release.
2020-02-11 22:48:49 +03:00
* @brief This class defines the name of the fabric for creating an IInferencePlugin object in DLL
2018-10-16 13:45:03 +03:00
*/
2020-02-11 22:48:49 +03:00
template <>
class INFERENCE_ENGINE_DEPRECATED("Use InferenceEngine::Core instead") SOCreatorTrait<IInferencePlugin> {
2018-10-16 13:45:03 +03:00
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.
2020-02-11 22:48:49 +03:00
*
2018-10-16 13:45:03 +03:00
* Implements different interfaces.
*/
using InferenceEnginePluginPtr = InferenceEngine::details::SOPointer<IInferencePlugin>;
2019-08-09 19:02:42 +03:00
IE_SUPPRESS_DEPRECATED_END
2018-10-16 13:45:03 +03:00
} // namespace InferenceEngine