MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
upload_options.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 <mongocxx/v1/gridfs/upload_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
25
27
29
30#include <cstdint>
31
32namespace mongocxx {
33namespace v1 {
34namespace gridfs {
35
49 private:
50 class impl;
51 void* _impl;
52
53 public:
60
68
76
81
86
94
99
103 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) chunk_size_bytes() const;
104
109
113 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) metadata() const;
114
115 class internal;
116};
117
118} // namespace gridfs
119} // namespace v1
120} // namespace mongocxx
121
122#include <mongocxx/v1/detail/postlude.hpp>
123
upload_options & metadata(bsoncxx::v1::document::value metadata)
Set the "metadata" field.
upload_options(upload_options &&other) noexcept
Move constructor.
upload_options & chunk_size_bytes(std::int32_t chunk_size_bytes)
Set the "chunkSizeBytes" field.
~upload_options()
Destroy this object.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities related to GridFS.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::gridfs::upload_options.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Provides std::optional-related polyfills for library API usage.