MongoDB C++ Driver  mongocxx-3.10.2
All Classes Namespaces Functions Typedefs Enumerations Enumerator Friends Pages
helpers.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 #pragma once
16 
17 #include <bsoncxx/builder/concatenate.hpp>
18 #include <bsoncxx/document/view_or_value.hpp>
19 
20 #include <bsoncxx/config/prelude.hpp>
21 
22 namespace bsoncxx {
23 namespace v_noabi {
24 namespace builder {
25 namespace stream {
26 
27 using ::bsoncxx::v_noabi::builder::concatenate; // Deprecated.
28 
33  constexpr open_document_type() {}
34 };
35 
39 constexpr open_document_type open_document;
40 
45  constexpr close_document_type() {}
46 };
47 
51 constexpr close_document_type close_document;
52 
57  constexpr open_array_type() {}
58 };
59 
66 constexpr open_array_type open_array;
67 
72  constexpr close_array_type() {}
73 };
74 
78 constexpr close_array_type close_array;
79 
83 struct finalize_type {
84  constexpr finalize_type() {}
85 };
86 
91 constexpr finalize_type finalize;
92 
93 } // namespace stream
94 } // namespace builder
95 } // namespace v_noabi
96 } // namespace bsoncxx
97 
98 namespace bsoncxx {
99 namespace builder {
100 namespace stream {
101 
102 using ::bsoncxx::v_noabi::builder::stream::concatenate; // Deprecated.
103 
104 using ::bsoncxx::v_noabi::builder::stream::close_array;
105 using ::bsoncxx::v_noabi::builder::stream::close_document;
106 using ::bsoncxx::v_noabi::builder::stream::finalize;
107 using ::bsoncxx::v_noabi::builder::stream::open_array;
108 using ::bsoncxx::v_noabi::builder::stream::open_document;
109 
110 } // namespace stream
111 } // namespace builder
112 } // namespace bsoncxx
113 
114 #include <bsoncxx/config/postlude.hpp>
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
The type of a stream manipulator to close a subarray.
Definition: helpers.hpp:71
The type of a stream manipulator to close a subdocument.
Definition: helpers.hpp:44
The type of a stream manipulator to finalize a document.
Definition: helpers.hpp:83
The type of a stream manipulator to open a subarray.
Definition: helpers.hpp:56
The type of a stream manipulator to open a subdocument.
Definition: helpers.hpp:32