blob: 36198eba9723d9a752178dad8d0035be40a265db (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
// **********************************************************************
//
// 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
#include <Ice/BuiltinSequences.ice>
module Test
{
enum MyEnum
{
enum1,
enum2,
enum3
};
class MyClass;
struct ValStruct
{
bool bo;
byte by;
short sh;
int i;
long l;
MyEnum e;
};
sequence<MyClass*> ProxySeq;
["clr:property"]
struct RefStruct
{
string s;
string sp;
MyClass* p;
ProxySeq seq;
};
sequence<ValStruct> ValStructS;
["clr:generic:List"]
sequence<ValStruct> ValStructList;
["clr:generic:LinkedList"]
sequence<ValStruct> ValStructLinkedList;
["clr:generic:Stack"]
sequence<ValStruct> ValStructStack;
["clr:generic:Queue"]
sequence<ValStruct> ValStructQueue;
["clr:collection"]
sequence<ValStruct> ValStructCollection;
dictionary<int, string> IntStringD;
dictionary<int, ValStruct> IntValStructD;
dictionary<int, MyClass*> IntProxyD;
["clr:generic:SortedDictionary"]
dictionary<int, string> IntStringSD;
["clr:collection"]
dictionary<int, string> IntStringDC;
class Base
{
bool bo;
byte by;
short sh;
int i;
long l;
MyEnum e;
};
class MyClass extends Base
{
MyClass c;
Object o;
ValStruct s;
};
exception MyException
{
string name;
byte b;
short s;
int i;
long l;
ValStruct vs;
RefStruct rs;
ValStructS vss;
ValStructList vsl;
ValStructLinkedList vsll;
ValStructStack vssk;
ValStructQueue vsq;
ValStructCollection vsc;
IntStringD isd;
IntValStructD ivd;
IntProxyD ipd;
IntStringSD issd;
IntStringDC isdc;
optional(1) string optName;
optional(2) int optInt;
optional(3) ValStruct optValStruct;
optional(4) RefStruct optRefStruct;
optional(5) MyEnum optEnum;
optional(6) MyClass* optProxy;
};
};
|