MongoDB C++ Driver mongocxx-3.10.1
Loading...
Searching...
No Matches
type.hpp
1// Copyright 2014 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#ifndef BSONCXX_ENUM
16#error "This header is only meant to be included as an X-macro over BSONCXX_ENUM"
17#endif
18
19BSONCXX_ENUM(double, 0x01)
20BSONCXX_ENUM(string, 0x02)
21BSONCXX_ENUM(document, 0x03)
22BSONCXX_ENUM(array, 0x04)
23BSONCXX_ENUM(binary, 0x05)
24BSONCXX_ENUM(undefined, 0x06)
25BSONCXX_ENUM(oid, 0x07)
26BSONCXX_ENUM(bool, 0x08)
27BSONCXX_ENUM(date, 0x09)
28BSONCXX_ENUM(null, 0x0A)
29BSONCXX_ENUM(regex, 0x0B)
30BSONCXX_ENUM(dbpointer, 0x0C)
31BSONCXX_ENUM(code, 0x0D)
32BSONCXX_ENUM(symbol, 0x0E)
33BSONCXX_ENUM(codewscope, 0x0F)
34BSONCXX_ENUM(int32, 0x10)
35BSONCXX_ENUM(timestamp, 0x11)
36BSONCXX_ENUM(int64, 0x12)
37BSONCXX_ENUM(decimal128, 0x13)
38BSONCXX_ENUM(maxkey, 0x7F)
39BSONCXX_ENUM(minkey, 0xFF)