diff options
author | Samantha Ritter <samantha.ritter@10gen.com> | 2017-05-04 11:27:52 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-05-05 11:53:30 -0400 |
commit | 8894454fedc4faa9b41858ea5349ae2181239258 (patch) | |
tree | 4c4295beced74344bb68f2d8de7a784ae36dfb0f /src/mongo/db/logical_session_id.idl | |
parent | 7ab97aaaf42b91736afd61ed7bfe684d393c89c2 (diff) | |
download | mongo-8894454fedc4faa9b41858ea5349ae2181239258.tar.gz |
SERVER-28297 Add IDL to LogicalSessionId class
Diffstat (limited to 'src/mongo/db/logical_session_id.idl')
-rw-r--r-- | src/mongo/db/logical_session_id.idl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id.idl b/src/mongo/db/logical_session_id.idl new file mode 100644 index 00000000000..6e04d948ca7 --- /dev/null +++ b/src/mongo/db/logical_session_id.idl @@ -0,0 +1,43 @@ +# Copyright (C) 2017 MongoDB Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License, version 3, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +# This IDL file describes the BSON format for a LogicalSessionId, and +# handles the serialization to and deserialization from its BSON representation +# for that class. + +global: + cpp_namespace: "mongo" + cpp_includes: + - "mongo/util/uuid.h" + +imports: + - "mongo/idl/basic_types.idl" + +types: + + UUIDIDL: + description: "IDL representation of the UUID type" + bson_serialization_type: object + cpp_type: "mongo::UUID" + deserializer: "mongo::UUID::parse" + serializer: "mongo::UUID::toBSON" + +structs: + + logical_session_id: + description: "A struct representing a LogicalSessionId" + strict: true + fields: + id: UUIDIDL |