MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
instance.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <mongocxx/instance-fwd.hpp> // IWYU pragma: export
18
19//
20
21#include <mongocxx/v1/instance.hpp> // IWYU pragma: export
22
23#include <memory>
24
26
28
29namespace mongocxx {
30namespace v_noabi {
31
33class instance {
34 public:
39
47
55
62 MONGOCXX_ABI_EXPORT_CDECL(instance&) operator=(instance&& other) noexcept;
63
68
72 instance(instance const&) = delete;
73
77 instance& operator=(instance const&) = delete;
78
83
84 private:
85 class impl;
86 std::unique_ptr<impl> _impl;
87};
88
89} // namespace v_noabi
90} // namespace mongocxx
91
92#include <mongocxx/config/postlude.hpp>
93
instance()
Creates an instance of the driver.
The interface for an unstructured log message handler.
Definition logger.hpp:59
instance()
Creates an instance of the driver.
static instance & current()
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::instance.
Declares mongocxx::v_noabi::instance.
Declares utilities related to mongocxx logging.