![]() |
Mangrove
The C++ Object Document Mapper for MongoDB
|
A base class that holds a shared_ptr to the binary data for a BSON document. More...
#include <bson_archiver.hpp>
A base class that holds a shared_ptr to the binary data for a BSON document.
If a class you are serializing contains any of the bsoncxx view types (b_utf8, b_document, b_array, b_binary), you must have that class inherit this base so that the views don't point to deallocated memory.
When using the BSONInputArchive to deserialize a class that inherits from this base, the data will be automatically loaded into this class using setUnderlyingBSONData().