MongoDB C++ Driver mongocxx-3.0.0
Loading...
Searching...
No Matches
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
22namespace bsoncxx {
23BSONCXX_INLINE_NAMESPACE_BEGIN
24namespace builder {
25namespace stream {
26
27using bsoncxx::builder::concatenate;
28
29struct BSONCXX_API open_document_type {
30 constexpr open_document_type() {
31 }
32};
33
37constexpr open_document_type open_document;
38
39struct BSONCXX_API close_document_type {
40 constexpr close_document_type() {
41 }
42};
43
47constexpr close_document_type close_document;
48
49struct BSONCXX_API open_array_type {
50 constexpr open_array_type() {
51 }
52};
53
57constexpr open_array_type open_array;
58
59struct BSONCXX_API close_array_type {
60 constexpr close_array_type() {
61 }
62};
63
67constexpr close_array_type close_array;
68
69struct BSONCXX_API finalize_type {
70 constexpr finalize_type() {
71 }
72};
73
78constexpr finalize_type finalize;
79
80} // namespace stream
81} // namespace builder
82BSONCXX_INLINE_NAMESPACE_END
83} // namespace bsoncxx
84
85#include <bsoncxx/config/postlude.hpp>