From 49cf0ebd80e8b007a6bcd08d3c956b149afa6f81 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Tue, 2 May 2017 09:16:56 -0400 Subject: SERVER-28827 BinData for IDL --- src/mongo/idl/basic_types.idl | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'src/mongo/idl/basic_types.idl') diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl index 76438ecc01f..1dd9495d65e 100644 --- a/src/mongo/idl/basic_types.idl +++ b/src/mongo/idl/basic_types.idl @@ -54,11 +54,33 @@ types: cpp_type: "bool" deserializer: "mongo::BSONElement::boolean" - # TODO: support bindata - # bindata: - # bson_serialization_type: bindata - # cpp_type: "std:" - # deserializer: "mongo::BSONElement::str" + bindata_generic: + bson_serialization_type: bindata + bindata_subtype: generic + description: "A BSON bindata of " + cpp_type: "std::vector" + deserializer: "mongo::BSONElement::_binDataVector" + + bindata_function: + bson_serialization_type: bindata + bindata_subtype: function + description: "A BSON bindata of function sub type" + cpp_type: "std::vector" + deserializer: "mongo::BSONElement::_binDataVector" + + bindata_uuid: + bson_serialization_type: bindata + bindata_subtype: uuid + description: "A BSON bindata of uuid sub type" + cpp_type: "std::array" + deserializer: "mongo::BSONElement::uuid" + + bindata_md5: + bson_serialization_type: bindata + bindata_subtype: md5 + description: "A BSON bindata of uuid sub type" + cpp_type: "std::array" + deserializer: "mongo::BSONElement::md5" objectid: bson_serialization_type: objectid -- cgit v1.2.1