MongoDB C++ Driver mongocxx-3.11.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 <memory>
18
21
23
24namespace mongocxx {
25namespace v_noabi {
26
80class instance {
81 public:
86
94
99
104
109
110 instance(const instance&) = delete;
111 instance& operator=(const instance&) = delete;
112
129
130 private:
131 class impl;
132 std::unique_ptr<impl> _impl;
133};
134
135} // namespace v_noabi
136} // namespace mongocxx
137
138#include <mongocxx/config/postlude.hpp>
139
Class representing an instance of the MongoDB driver.
Definition instance.hpp:80
static instance & current()
Returns the current unique instance of the driver. If an instance was explicitly created,...
The interface that all user-defined loggers must implement.
Definition logger.hpp:56
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
Declares mongocxx::v_noabi::instance.
Declares utilities related to mongocxx logging.
The mongocxx macro guard prelude header.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.