MongoDB C++ Driver  mongocxx-3.0.2
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 
19 BSONCXX_ENUM(double, 0x01)
20 BSONCXX_ENUM(utf8, 0x02)
21 BSONCXX_ENUM(document, 0x03)
22 BSONCXX_ENUM(array, 0x04)
23 BSONCXX_ENUM(binary, 0x05)
24 BSONCXX_ENUM(undefined, 0x06)
25 BSONCXX_ENUM(oid, 0x07)
26 BSONCXX_ENUM(bool, 0x08)
27 BSONCXX_ENUM(date, 0x09)
28 BSONCXX_ENUM(null, 0x0A)
29 BSONCXX_ENUM(regex, 0x0B)
30 BSONCXX_ENUM(dbpointer, 0x0C)
31 BSONCXX_ENUM(code, 0x0D)
32 BSONCXX_ENUM(symbol, 0x0E)
33 BSONCXX_ENUM(codewscope, 0x0F)
34 BSONCXX_ENUM(int32, 0x10)
35 BSONCXX_ENUM(timestamp, 0x11)
36 BSONCXX_ENUM(int64, 0x12)
37 BSONCXX_ENUM(maxkey, 0x7F)
38 BSONCXX_ENUM(minkey, 0xFF)