29#include <system_error>
215struct is_error_code_enum<
mongocxx::v1::gridfs::uploader::errc> : true_type {};
Result of uploading a file to a GridFS bucket.
Definition upload_result.hpp:42
void abort()
Abort uploading this GridFS file.
v1::gridfs::upload_result close()
Complete the upload of this GridFS file.
static std::error_category const & error_category()
The error category for mongocxx::v1::gridfs::uploader::errc.
friend std::error_code make_error_code(errc v)
Support implicit conversion to std::error_code.
Definition uploader.hpp:196
uploader(uploader &&other) noexcept
Move constructor.
~uploader()
Destroy this object.
std::int32_t chunk_size() const
Return the chunk size (in bytes) of the associated GridFS file.
uploader()
Default initialization.
void write(std::uint8_t const *data, std::size_t length)
Write length bytes of the associated GridFS file.
bool is_open() const
Return true when the underlying GridFS file stream is open for writing.
void flush()
Flush the internal buffer.
errc
Errors codes which may be returned by mongocxx::v1::gridfs::uploader.
Definition uploader.hpp:178
@ is_closed
The GridFS file upload stream is not open.
Definition uploader.hpp:180
@ zero
Zero.
Definition uploader.hpp:179
@ too_many_chunks
The total number of chunks must be less than INT32_MAX.
Definition uploader.hpp:181
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 postlude header.
The mongocxx v1 macro guard prelude header.
Declares entities related to GridFS.
Declares entities whose ABI stability is guaranteed for documented symbols.
@ mongocxx
From the mongocxx library.
Definition exception.hpp:42
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::gridfs::upload_result.
Declares mongocxx::v1::gridfs::uploader.