summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/InterfaceByValue.m
diff options
context:
space:
mode:
Diffstat (limited to 'matlab/lib/+Ice/InterfaceByValue.m')
-rw-r--r--matlab/lib/+Ice/InterfaceByValue.m32
1 files changed, 32 insertions, 0 deletions
diff --git a/matlab/lib/+Ice/InterfaceByValue.m b/matlab/lib/+Ice/InterfaceByValue.m
new file mode 100644
index 00000000000..86c3b104e4f
--- /dev/null
+++ b/matlab/lib/+Ice/InterfaceByValue.m
@@ -0,0 +1,32 @@
+%{
+**********************************************************************
+
+Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
+
+This copy of Ice is licensed to you under the terms described in the
+ICE_LICENSE file included in this distribution.
+
+**********************************************************************
+%}
+
+classdef InterfaceByValue < Ice.Value
+ methods
+ function obj = InterfaceByValue(id)
+ obj.id = id;
+ end
+ function id = ice_id(obj)
+ id = obj.id;
+ end
+ function iceWriteImpl_(obj, os)
+ os.startSlice(obj.ice_id(), -1, true);
+ os.endSlice();
+ end
+ function obj = iceReadImpl_(obj, is)
+ is.startSlice();
+ is.endSlice();
+ end
+ end
+ properties(Access=private)
+ id
+ end
+end