18 #include "mongo/client/write_operation_base.h"
virtual void appendSelfToBSONObj(BSONObjBuilder *obj) const
Appends the data represented by an instance of this class to a BSONObjBuilder.
virtual void startRequest(const std::string &ns, bool ordered, BufBuilder *builder) const
Appends the preamble for a wire protocol message into the supplied BufBuilder.
virtual WriteOpType operationType() const
Returns the MongoDB wire protocol operation type represented by an instance of this particular write ...
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
virtual void appendSelfToCommand(BSONArrayBuilder *request) const
Appends a single document that describes the write operation represented by an instance of this class...
Utility for creating a BSONObj.
Definition: bsonobjbuilder.h:53
virtual void startCommand(const std::string &ns, BSONObjBuilder *command) const
Appends the preamble for a write command into the supplied BSONObjBuilder.
virtual int incrementalSize() const
Returns the incremental size (in bytes) required to add this write operation to a batch...
Definition: write_operation_base.h:24
Definition: delete_write_operation.h:22
Definition: bsonobjbuilder.h:765
virtual const char * batchName() const
Returns the name for a batch of this type of write operation.
virtual void appendSelfToRequest(BufBuilder *builder) const
Appends a document (or documents in the case of update) which describe the write operation represente...
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary represent...
Definition: bsonobj.h:78