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
|
//
// broken.idl -- Test IDL for array type CCA regressions
enum enum1
{
One,
Two,
Three
};
typedef enum1 MyEnum;
typedef char tmp1CharArray[10];
typedef tmp1CharArray tmp2CharArray;
typedef tmp2CharArray CharArray;
typedef octet OctetArray[10];
typedef short ShortArray[10];
typedef long LongArray[10];
typedef long long LongLongArray[10];
typedef unsigned short UShortArray[10];
typedef unsigned long ULongArray[10];
typedef unsigned long long ULongLongArray[10];
typedef float FloatArray[10];
typedef double DoubleArray[10];
typedef string StringArray[10];
typedef boolean BooleanArray[10];
typedef MyEnum MyEnumArray[10];
typedef long LongArrayArray[10][10];
module moola
{
typedef float CashAmount;
typedef string<100> MyString;
interface Account
{
attribute string name;
attribute CashAmount balance;
void deposit (in CashAmount amount);
void withdraw (in CashAmount amount);
};
};
struct Bucket
{
long a_long;
string a_string;
FloatArray a_floatArray;
MyEnum a_enum;
};
typedef Bucket BucketArray[10];
typedef Bucket BucketArrayArray[10][10];
typedef moola::Account AccountArray[10];
struct SimpleStruct
{
short simpleShort;
long simpleLong;
};
interface ArrayTest
{
LongArray longArrayOp(in LongArray p1,
inout LongArray p2, out LongArray p3);
StringArray stringArrayOp(in StringArray p1,
inout StringArray p2, out StringArray p3);
ShortArray shortArrayOp(in ShortArray p1,
inout ShortArray p2, out ShortArray p3);
UShortArray ushortArrayOp(in UShortArray p1,
inout UShortArray p2, out UShortArray p3);
CharArray charArrayOp(in CharArray p1,
inout CharArray p2, out CharArray p3);
OctetArray octetArrayOp(in OctetArray p1,
inout OctetArray p2, out OctetArray p3);
DoubleArray doubleArrayOp(in DoubleArray p1,
inout DoubleArray p2, out DoubleArray p3);
/*
FloatArray floatArrayOp(in FloatArray p1,
inout FloatArray p2, out FloatArray p3);
ULongArray ulongArrayOp(in ULongArray p1,
inout ULongArray p2, out ULongArray p3);
BucketArray bucketArrayOp(in BucketArray p1,
inout BucketArray p2, out BucketArray p3);
BucketArrayArray bucketArrayArrayOp(in BucketArrayArray p1,
inout BucketArrayArray p2,
out BucketArrayArray p3);
AccountArray accountArrayOp(in AccountArray p1,
inout AccountArray p2, out AccountArray p3);
BooleanArray booleanArrayOp(in BooleanArray p1,
inout BooleanArray p2, out BooleanArray p3);
LongArrayArray longArrayArrayOp(in LongArrayArray p1,
inout LongArrayArray p2, out LongArrayArray p3);
MyEnumArray myEnumArrayOp(in MyEnumArray p1,
inout MyEnumArray p2, out MyEnumArray p3);
*/
attribute LongArray a_longArray;
attribute ULongArray a_ulongArray;
attribute StringArray a_stringArray;
attribute ShortArray a_shortArray;
attribute UShortArray a_ushortArray;
attribute char a_char;
attribute CharArray a_charArray;
attribute OctetArray a_octetArray;
attribute DoubleArray a_doubleArray;
attribute FloatArray a_floatArray;
attribute BucketArray a_bucketArray;
attribute AccountArray a_accountArray;
attribute BooleanArray a_booleanArray;
attribute LongArrayArray a_longArrayArray;
attribute MyEnumArray a_myEnumArray;
};
interface ServerAdmin
{
ArrayTest target();
oneway void shutdown ();
};
|