blob: aa68e90f1c34559e81a0f668d758af63764d2015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// **********************************************************************
//
// Copyright (c) 2003-2015 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.
//
// **********************************************************************
#pragma once
module Test
{
sequence<byte> ByteString; /* By default, sequence<byte> is received as a string. */
["python:seq:list"] sequence<byte> ByteList;
sequence<string> StringList; /* By default, a sequence is received as a list. */
["python:seq:tuple"] sequence<string> StringTuple;
struct S
{
ByteString b1;
["python:seq:list"] ByteString b2;
["python:seq:default"] ByteList b3;
ByteList b4;
StringList s1;
["python:seq:tuple"] StringList s2;
StringTuple s3;
["python:seq:default"] StringTuple s4;
};
class C
{
ByteString b1;
["python:seq:list"] ByteString b2;
["python:seq:default"] ByteList b3;
ByteList b4;
StringList s1;
["python:seq:tuple"] StringList s2;
StringTuple s3;
["python:seq:default"] StringTuple s4;
};
interface Custom
{
ByteString opByteString1(ByteString b1, out ByteString b2);
["python:seq:tuple"] ByteString opByteString2(["python:seq:list"] ByteString b1,
out ["python:seq:list"] ByteString b2);
ByteList opByteList1(ByteList b1, out ByteList b2);
["python:seq:default"] ByteList opByteList2(["python:seq:tuple"] ByteList b1,
out ["python:seq:tuple"] ByteList b2);
StringList opStringList1(StringList s1, out StringList s2);
["python:seq:tuple"] StringList opStringList2(["python:seq:tuple"] StringList s1,
out ["python:seq:tuple"] StringList s2);
StringTuple opStringTuple1(StringTuple s1, out StringTuple s2);
["python:seq:list"] StringTuple opStringTuple2(["python:seq:list"] StringTuple s1,
out ["python:seq:default"] StringTuple s2);
void sendS(S val);
void sendC(C val);
void shutdown();
};
};
|