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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
// **********************************************************************
//
// Copyright (c) 2003-2016 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/Current.ice>
module Test
{
enum MyEnum
{
enum1,
enum2,
enum3
};
class MyClass;
struct AnotherStruct
{
string s;
};
struct Structure
{
MyClass* p;
MyEnum e;
AnotherStruct s;
};
sequence<byte> ByteS;
sequence<bool> BoolS;
sequence<short> ShortS;
sequence<int> IntS;
sequence<long> LongS;
sequence<float> FloatS;
sequence<double> DoubleS;
sequence<string> StringS;
sequence<MyEnum> MyEnumS;
sequence<MyClass*> MyClassS;
sequence<ByteS> ByteSS;
sequence<BoolS> BoolSS;
sequence<ShortS> ShortSS;
sequence<IntS> IntSS;
sequence<LongS> LongSS;
sequence<FloatS> FloatSS;
sequence<DoubleS> DoubleSS;
sequence<StringS> StringSS;
sequence<MyEnumS> MyEnumSS;
sequence<MyClassS> MyClassSS;
sequence<StringSS> StringSSS;
struct MyStruct
{
int i;
int j;
};
dictionary<byte, bool> ByteBoolD;
dictionary<short, int> ShortIntD;
dictionary<long, float> LongFloatD;
dictionary<string, string> StringStringD;
dictionary<string, MyEnum> StringMyEnumD;
dictionary<MyEnum, string> MyEnumStringD;
dictionary<MyStruct, MyEnum> MyStructMyEnumD;
sequence<ByteBoolD> ByteBoolDS;
sequence<ShortIntD> ShortIntDS;
sequence<LongFloatD> LongFloatDS;
sequence<StringStringD> StringStringDS;
sequence<StringMyEnumD> StringMyEnumDS;
sequence<MyEnumStringD> MyEnumStringDS;
sequence<MyStructMyEnumD> MyStructMyEnumDS;
dictionary<byte, ByteS> ByteByteSD;
dictionary<bool, BoolS> BoolBoolSD;
dictionary<short, ShortS> ShortShortSD;
dictionary<int, IntS> IntIntSD;
dictionary<long, LongS> LongLongSD;
dictionary<string, FloatS> StringFloatSD;
dictionary<string, DoubleS> StringDoubleSD;
dictionary<string, StringS> StringStringSD;
dictionary<MyEnum, MyEnumS> MyEnumMyEnumSD;
["amd"] class MyClass
{
void shutdown();
void delay(int ms);
void opVoid();
byte opByte(byte p1, byte p2,
out byte p3);
bool opBool(bool p1, bool p2,
out bool p3);
long opShortIntLong(short p1, int p2, long p3,
out short p4, out int p5, out long p6);
double opFloatDouble(float p1, double p2,
out float p3, out double p4);
string opString(string p1, string p2,
out string p3);
MyEnum opMyEnum(MyEnum p1, out MyEnum p2);
MyClass* opMyClass(MyClass* p1, out MyClass* p2, out MyClass* p3);
Structure opStruct(Structure p1, Structure p2,
out Structure p3);
ByteS opByteS(ByteS p1, ByteS p2,
out ByteS p3);
BoolS opBoolS(BoolS p1, BoolS p2,
out BoolS p3);
LongS opShortIntLongS(Test::ShortS p1, IntS p2, LongS p3,
out ::Test::ShortS p4, out IntS p5, out LongS p6);
DoubleS opFloatDoubleS(FloatS p1, DoubleS p2,
out FloatS p3, out DoubleS p4);
StringS opStringS(StringS p1, StringS p2,
out StringS p3);
ByteSS opByteSS(ByteSS p1, ByteSS p2,
out ByteSS p3);
BoolSS opBoolSS(BoolSS p1, BoolSS p2,
out BoolSS p3);
LongSS opShortIntLongSS(ShortSS p1, IntSS p2, LongSS p3,
out ShortSS p4, out IntSS p5, out LongSS p6);
DoubleSS opFloatDoubleSS(FloatSS p1, DoubleSS p2,
out FloatSS p3, out DoubleSS p4);
StringSS opStringSS(StringSS p1, StringSS p2,
out StringSS p3);
StringSSS opStringSSS(StringSSS p1, StringSSS p2,
out StringSSS p3);
ByteBoolD opByteBoolD(ByteBoolD p1, ByteBoolD p2,
out ByteBoolD p3);
ShortIntD opShortIntD(ShortIntD p1, ShortIntD p2,
out ShortIntD p3);
LongFloatD opLongFloatD(LongFloatD p1, LongFloatD p2,
out LongFloatD p3);
StringStringD opStringStringD(StringStringD p1, StringStringD p2,
out StringStringD p3);
StringMyEnumD opStringMyEnumD(StringMyEnumD p1, StringMyEnumD p2,
out StringMyEnumD p3);
MyEnumStringD opMyEnumStringD(MyEnumStringD p1, MyEnumStringD p2,
out MyEnumStringD p3);
MyStructMyEnumD opMyStructMyEnumD(MyStructMyEnumD p1, MyStructMyEnumD p2,
out MyStructMyEnumD p3);
ByteBoolDS opByteBoolDS(ByteBoolDS p1, ByteBoolDS p2,
out ByteBoolDS p3);
ShortIntDS opShortIntDS(ShortIntDS p1, ShortIntDS p2,
out ShortIntDS p3);
LongFloatDS opLongFloatDS(LongFloatDS p1, LongFloatDS p2,
out LongFloatDS p3);
StringStringDS opStringStringDS(StringStringDS p1, StringStringDS p2,
out StringStringDS p3);
StringMyEnumDS opStringMyEnumDS(StringMyEnumDS p1, StringMyEnumDS p2,
out StringMyEnumDS p3);
MyEnumStringDS opMyEnumStringDS(MyEnumStringDS p1, MyEnumStringDS p2,
out MyEnumStringDS p3);
MyStructMyEnumDS opMyStructMyEnumDS(MyStructMyEnumDS p1, MyStructMyEnumDS p2,
out MyStructMyEnumDS p3);
ByteByteSD opByteByteSD(ByteByteSD p1, ByteByteSD p2,
out ByteByteSD p3);
BoolBoolSD opBoolBoolSD(BoolBoolSD p1, BoolBoolSD p2,
out BoolBoolSD p3);
ShortShortSD opShortShortSD(ShortShortSD p1, ShortShortSD p2,
out ShortShortSD p3);
IntIntSD opIntIntSD(IntIntSD p1, IntIntSD p2,
out IntIntSD p3);
LongLongSD opLongLongSD(LongLongSD p1, LongLongSD p2,
out LongLongSD p3);
StringFloatSD opStringFloatSD(StringFloatSD p1, StringFloatSD p2,
out StringFloatSD p3);
StringDoubleSD opStringDoubleSD(StringDoubleSD p1, StringDoubleSD p2,
out StringDoubleSD p3);
StringStringSD opStringStringSD(StringStringSD p1, StringStringSD p2,
out StringStringSD p3);
MyEnumMyEnumSD opMyEnumMyEnumSD(MyEnumMyEnumSD p1, MyEnumMyEnumSD p2,
out MyEnumMyEnumSD p3);
IntS opIntS(IntS s);
void opByteSOneway(ByteS s);
int opByteSOnewayCallCount();
Ice::Context opContext();
void opDoubleMarshaling(double p1, DoubleS p2);
idempotent void opIdempotent();
["nonmutating"] idempotent void opNonmutating();
byte opByte1(byte opByte1);
short opShort1(short opShort1);
int opInt1(int opInt1);
long opLong1(long opLong1);
float opFloat1(float opFloat1);
double opDouble1(double opDouble1);
string opString1(string opString1);
StringS opStringS1(StringS opStringS1);
ByteBoolD opByteBoolD1(ByteBoolD opByteBoolD1);
StringS opStringS2(StringS stringS);
ByteBoolD opByteBoolD2(ByteBoolD byteBoolD);
StringS opStringLiterals();
StringS opWStringLiterals();
};
struct MyStruct1
{
string tesT; // Same name as the enclosing module
MyClass myClass; // Same name as an already defined class
string myStruct1; // Same name as the enclosing struct
};
class MyClass1
{
string tesT; // Same name as the enclosing module
MyClass myClass; // Same name as an already defined class
string myClass1; // Same name as the enclosing class
};
["amd"] class MyDerivedClass extends MyClass
{
void opDerived();
MyClass1 opMyClass1(MyClass1 c);
MyStruct1 opMyStruct1(MyStruct1 s);
};
["amd"] interface TestCheckedCast
{
Ice::Context getContext();
};
//
// String literals
//
const string s0 = "\u005c"; // backslash
const string s1 = "\u0041"; // A
const string s2 = "\u0049\u0063\u0065"; // Ice
const string s3 = "\u004121"; // A21
const string s4 = "\\u0041 \\U00000041"; // \\u0041 \\U00000041
const string s5 = "\u00FF"; // ÿ
const string s6 = "\u03FF"; // GREEK CAPITAL REVERSED DOTTED LUNATE SIGMA SYMBOL (U+03FF)
const string s7 = "\u05F0"; // HEBREW LIGATURE YIDDISH DOUBLE VAV (U+05F0)
const string s8 = "\U00010000"; // LINEAR B SYLLABLE B008 A (U+10000)
const string s9 = "\U0001F34C"; // BANANA (U+1F34C)
const string s10 = "\u0DA7"; // Sinhala Letter Alpapraana Ttayanna
const string sw0 = "\U0000005c"; // backslash
const string sw1 = "\U00000041"; // A
const string sw2 = "\U00000049\U00000063\U00000065"; // Ice
const string sw3 = "\U0000004121"; // A21
const string sw4 = "\\u0041 \\U00000041"; // \\u0041 \\U00000041
const string sw5 = "\U000000FF"; // ÿ
const string sw6 = "\U000003FF"; // GREEK CAPITAL REVERSED DOTTED LUNATE SIGMA SYMBOL (U+03FF)
const string sw7 = "\U000005F0"; // HEBREW LIGATURE YIDDISH DOUBLE VAV (U+05F0)
const string sw8 = "\U00010000"; // LINEAR B SYLLABLE B008 A (U+10000)
const string sw9 = "\U0001F34C"; // BANANA (U+1F34C)
const string sw10 = "\U00000DA7"; // Sinhala Letter Alpapraana Ttayanna
/**
\' single quote byte 0x27 in ASCII encoding
\" double quote byte 0x22 in ASCII encoding
\? question mark byte 0x3f in ASCII encoding
\\ backslash byte 0x5c in ASCII encoding
\a audible bell byte 0x07 in ASCII encoding
\b backspace byte 0x08 in ASCII encoding
\f form feed - new page byte 0x0c in ASCII encoding
\n line feed - new line byte 0x0a in ASCII encoding
\r carriage return byte 0x0d in ASCII encoding
\t horizontal tab byte 0x09 in ASCII encoding
\v vertical tab byte 0x0b in ASCII encoding
**/
const string ss0 = "\'\"\?\\\a\b\f\n\r\t\v";
const string ss1 = "\u0027\u0022\u003f\u005c\u0007\u0008\u000c\u000a\u000d\u0009\u000b";
const string ss2 = "\U00000027\U00000022\U0000003f\U0000005c\U00000007\U00000008\U0000000c\U0000000a\U0000000d\U00000009\U0000000b";
const string ss3 = "\\\\U\\u\\"; /* \\U\u\ */
const string ss4 = "\\\u0041\\"; /* \A\ */
const string ss5 = "\\u0041\\"; /* \u0041\ */
//
// Ĩ - Unicode Character 'LATIN CAPITAL LETTER I WITH TILDE' (U+0128)
// Ÿ - Unicode Character 'LATIN CAPITAL LETTER Y WITH DIAERESIS' (U+0178)
// ÿ - Unicode Character 'LATIN SMALL LETTER Y WITH DIAERESIS' (U+00FF)
// Ā - Unicode Character 'LATIN CAPITAL LETTER A WITH MACRON' (U+0100)
// ἀ - Unicode Character 'GREEK SMALL LETTER ALPHA WITH PSILI' (U+1F00)
// 𐆔 - Unicode Character 'ROMAN DIMIDIA SEXTULA SIGN' (U+10194)
// 𐅪 - Unicode Character 'GREEK ACROPHONIC THESPIAN ONE HUNDRED' (U+1016A)
// 𐆘 - Unicode Character 'ROMAN SESTERTIUS SIGN' (U+10198)
// 🍀 - Unicode Character 'FOUR LEAF CLOVER' (U+1F340)
// 🍁 - Unicode Character 'MAPLE LEAF' (U+1F341)
// 🍂 - Unicode Character 'FALLEN LEAF' (U+1F342)
// 🍃 - Unicode Character 'LEAF FLUTTERING IN WIND' (U+1F343)
//
const string su0 = "ĨŸÿĀἀ𐆔𐅪𐆘🍀🍁🍂🍃";
const string su1 = "\u0128\u0178\u00FF\u0100\u1F00\U00010194\U0001016A\U00010198\U0001F340\U0001F341\U0001F342\U0001F343";
const string su2 = "\U00000128\U00000178\U000000FF\U00000100\U00001F00\U00010194\U0001016A\U00010198\U0001F340\U0001F341\U0001F342\U0001F343";
};
|