blob: 6264d2fe0a7dca17db45e9a936428a809de7fb9c (
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
116
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#pragma once
#include <Ice/BuiltinSequences.ice>
[["cs:typeid-namespace:Ice.serialize.TypeId"]]
["cs:namespace:Ice.serialize"]
module Test
{
enum MyEnum
{
enum1,
enum2,
enum3
}
class MyClass;
struct ValStruct
{
bool bo;
byte by;
short sh;
int i;
long l;
MyEnum e;
}
interface MyInterface
{
void op();
}
sequence<MyInterface*> ProxySeq;
["clr:property"]
struct RefStruct
{
string s;
string sp;
MyClass c;
MyInterface* 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;
dictionary<int, string> IntStringD;
dictionary<int, ValStruct> IntValStructD;
dictionary<int, MyInterface*> IntProxyD;
["clr:generic:SortedDictionary"]
dictionary<int, string> IntStringSD;
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;
MyClass c;
MyInterface* p;
ValStructS vss;
ValStructList vsl;
ValStructLinkedList vsll;
ValStructStack vssk;
ValStructQueue vsq;
IntStringD isd;
IntValStructD ivd;
IntProxyD ipd;
IntStringSD issd;
optional(1) string optName;
optional(2) int optInt;
optional(3) ValStruct optValStruct;
optional(4) RefStruct optRefStruct;
optional(5) MyEnum optEnum;
optional(6) MyClass optClass;
optional(7) MyInterface* optProxy;
}
}
|