Loading...
Searching...
No Matches
upload_options.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/v1/gridfs/upload_options-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/document/value-fwd.hpp>
#include <bsoncxx/v1/document/view-fwd.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <cstdint>
namespace mongocxx {
namespace v1 {
namespace gridfs {
class upload_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~upload_options();
MONGOCXX_ABI_EXPORT_CDECL() upload_options(upload_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(upload_options&) operator=(upload_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() upload_options(upload_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(upload_options&) operator=(upload_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() upload_options();
MONGOCXX_ABI_EXPORT_CDECL(upload_options&) chunk_size_bytes(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) chunk_size_bytes() const;
MONGOCXX_ABI_EXPORT_CDECL(upload_options&) metadata(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) metadata() const;
class internal;
};
} // namespace gridfs
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::v1::gridfs::upload_options::chunk_size_bytes
upload_options & chunk_size_bytes(std::int32_t v)
Set the "chunkSizeBytes" field.
mongocxx::v1::gridfs::upload_options::upload_options
upload_options(upload_options &&other) noexcept
Move constructor.
mongocxx::v1::gridfs::upload_options::~upload_options
~upload_options()
Destroy this object.
mongocxx::v1::gridfs::upload_options::metadata
upload_options & metadata(bsoncxx::v1::document::value v)
Set the "metadata" field.
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
prelude.hpp
The mongocxx v1 macro guard prelude header.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1::gridfs
Declares entities related to GridFS.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
upload_options-fwd.hpp
Declares mongocxx::v1::gridfs::upload_options.
value-fwd.hpp
Declares bsoncxx::v1::document::value.
view-fwd.hpp
Declares bsoncxx::v1::document::view.
optional.hpp
Provides std::optional-related polyfills for library API usage.