Mangrove
The C++ Object Document Mapper for MongoDB
Public Member Functions | List of all members
boson::BSONOutputArchive Class Reference
+ Inheritance diagram for boson::BSONOutputArchive:

Public Member Functions

 BSONOutputArchive (std::ostream &stream, bool dotNotationMode=false)
 Construct a BSONOutputArchive that will output serialized classes as BSON to the provided stream. More...
 

Constructor & Destructor Documentation

boson::BSONOutputArchive::BSONOutputArchive ( std::ostream &  stream,
bool  dotNotationMode = false 
)
inline

Construct a BSONOutputArchive that will output serialized classes as BSON to the provided stream.

Parameters
streamThe stream to which the archiver will output BSON data.
dotNotationModeIf set to true, the BSONOutputArchive will output the values in embedded documents in dot notation. This is useful when specifying the arguments to a $set field in a MongoDB update command.
See also
https://docs.mongodb.com/manual/core/document/#embedded-documents
Warning
Documents produced by the archiver in dotNotationMode are not compatible with the BSONInputArchiver and are only intended to be used as a way to produce the argument to $set.

The documentation for this class was generated from the following file: