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
-
stream | The stream to which the archiver will output BSON data. |
dotNotationMode | If 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: