MongoDB C++ Driver
4.2.0
Loading...
Searching...
No Matches
id-fwd.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 <
bsoncxx/v1/detail/prelude.hpp
>
18
19
#include <cstdint>
20
43
// clang-format off
44
#define BSONCXX_V1_TYPES_XMACRO(X) \
45
X(minkey, -0x01) \
46
X(double, 0x01) \
47
X(string, 0x02) \
48
X(document, 0x03) \
49
X(array, 0x04) \
50
X(binary, 0x05) \
51
X(undefined, 0x06) \
52
X(oid, 0x07) \
53
X(bool, 0x08) \
54
X(date, 0x09) \
55
X(null, 0x0A) \
56
X(regex, 0x0B) \
57
X(dbpointer, 0x0C) \
58
X(code, 0x0D) \
59
X(symbol, 0x0E) \
60
X(codewscope, 0x0F) \
61
X(int32, 0x10) \
62
X(timestamp, 0x11) \
63
X(int64, 0x12) \
64
X(decimal128, 0x13) \
65
X(maxkey, 0x7F)
66
// clang-format on
67
90
// clang-format off
91
#define BSONCXX_V1_BINARY_SUBTYPES_XMACRO(X) \
92
X(binary, 0x00) \
93
X(function, 0x01) \
94
X(binary_deprecated, 0x02) \
95
X(uuid_deprecated, 0x03) \
96
X(uuid, 0x04) \
97
X(md5, 0x05) \
98
X(encrypted, 0x06) \
99
X(column, 0x07) \
100
X(sensitive, 0x08) \
101
X(vector, 0x09) \
102
X(user, 0x80)
103
// clang-format on
104
105
namespace
bsoncxx
{
106
namespace
v1 {
107
namespace
types {
108
109
enum class
id
: std::int8_t;
110
enum class
binary_subtype
: std::uint8_t;
111
112
}
// namespace types
113
}
// namespace v1
114
}
// namespace bsoncxx
115
116
#include <
bsoncxx/v1/detail/postlude.hpp
>
117
postlude.hpp
The bsoncxx v1 macro guard postlude header.
prelude.hpp
The bsoncxx v1 macro guard prelude header.
bsoncxx::v1::types::binary_subtype
binary_subtype
Enumeration identifying a BSON binary subtype.
Definition
id.hpp:77
bsoncxx::v1::types::id
id
Enumeration identifying a BSON type.
Definition
id.hpp:39
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
bsoncxx
v1
types
id-fwd.hpp
Generated by
1.15.0