summaryrefslogtreecommitdiffstats
path: root/contrib/libs/opentelemetry-cpp/api/include/opentelemetry/plugin/detail/dynamic_library_handle.h
blob: 44ae5c62cf47ee55c46504cf968c3c07eed8f6ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace plugin
{
/**
 * Manage the ownership of a dynamically loaded library.
 */
class DynamicLibraryHandle
{
public:
  DynamicLibraryHandle()                                        = default;
  DynamicLibraryHandle(const DynamicLibraryHandle &)            = delete;
  DynamicLibraryHandle(DynamicLibraryHandle &&)                 = delete;
  DynamicLibraryHandle &operator=(const DynamicLibraryHandle &) = delete;
  DynamicLibraryHandle &operator=(DynamicLibraryHandle &&)      = delete;
  virtual ~DynamicLibraryHandle()                               = default;
};
}  // namespace plugin
OPENTELEMETRY_END_NAMESPACE