MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
types-fwd.hpp
1// Copyright 2023 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 <cstdint>
18
19#include <bsoncxx/config/prelude.hpp>
20
21namespace bsoncxx {
22namespace v_noabi {
23
24enum class type : std::uint8_t;
25enum class binary_sub_type : std::uint8_t;
26
27} // namespace v_noabi
28} // namespace bsoncxx
29
30namespace bsoncxx {
31namespace v_noabi {
32namespace types {
33
34#pragma push_macro("BSONCXX_ENUM")
35#undef BSONCXX_ENUM
36#define BSONCXX_ENUM(name, val) struct BSONCXX_API b_##name;
37#include <bsoncxx/enums/type.hpp>
38#undef BSONCXX_ENUM
39#pragma pop_macro("BSONCXX_ENUM")
40
41} // namespace types
42} // namespace v_noabi
43} // namespace bsoncxx
44
45namespace bsoncxx {
46
47using ::bsoncxx::v_noabi::binary_sub_type;
48using ::bsoncxx::v_noabi::type;
49
50} // namespace bsoncxx
51
52namespace bsoncxx {
53namespace types {
54
55#pragma push_macro("BSONCXX_ENUM")
56#undef BSONCXX_ENUM
57#define BSONCXX_ENUM(name, val) using ::bsoncxx::v_noabi::types::b_##name;
58#include <bsoncxx/enums/type.hpp>
59#undef BSONCXX_ENUM
60#pragma pop_macro("BSONCXX_ENUM")
61
62} // namespace types
63} // namespace bsoncxx
64
65#include <bsoncxx/config/postlude.hpp>
binary_sub_type
An enumeration of each BSON binary sub type.
Definition types.hpp:68
type
An enumeration of each BSON type.
Definition types.hpp:48
The top-level namespace for bsoncxx library entities.
Definition element-fwd.hpp:19