~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to java/test/Ice/operations/TestAMD.ice

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// **********************************************************************
 
2
//
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
4
//
 
5
// This copy of Ice is licensed to you under the terms described in the
 
6
// ICE_LICENSE file included in this distribution.
 
7
//
 
8
// **********************************************************************
 
9
 
 
10
#ifndef TEST_AMD_ICE
 
11
#define TEST_AMD_ICE
 
12
 
 
13
#include<Ice/Current.ice>
 
14
 
 
15
[["java:package:test.Ice.operations.AMD"]]
 
16
module Test
 
17
{
 
18
 
 
19
enum MyEnum
 
20
{
 
21
    enum1,
 
22
    enum2,
 
23
    enum3
 
24
};
 
25
 
 
26
class MyClass;
 
27
 
 
28
struct AnotherStruct
 
29
{
 
30
    string s;
 
31
};
 
32
 
 
33
struct Structure
 
34
{
 
35
    MyClass* p;
 
36
    MyEnum e;
 
37
    AnotherStruct s;
 
38
};
 
39
 
 
40
sequence<byte> ByteS;
 
41
sequence<bool> BoolS;
 
42
sequence<short> ShortS;
 
43
sequence<int> IntS;
 
44
sequence<long> LongS;
 
45
sequence<float> FloatS;
 
46
sequence<double> DoubleS;
 
47
sequence<string> StringS;
 
48
sequence<MyEnum> MyEnumS;
 
49
sequence<MyClass*> MyClassS;
 
50
 
 
51
sequence<ByteS> ByteSS;
 
52
sequence<BoolS> BoolSS;
 
53
sequence<ShortS> ShortSS;
 
54
sequence<IntS> IntSS;
 
55
sequence<LongS> LongSS;
 
56
sequence<FloatS> FloatSS;
 
57
sequence<DoubleS> DoubleSS;
 
58
sequence<StringS> StringSS;
 
59
sequence<MyEnumS> MyEnumSS;
 
60
sequence<MyClassS> MyClassSS;
 
61
 
 
62
sequence<StringSS> StringSSS;
 
63
 
 
64
struct MyStruct
 
65
{
 
66
    int i;
 
67
    int j;
 
68
};
 
69
 
 
70
dictionary<byte, bool> ByteBoolD;
 
71
dictionary<short, int> ShortIntD;
 
72
dictionary<long, float> LongFloatD;
 
73
dictionary<string, string> StringStringD;
 
74
dictionary<string, MyEnum> StringMyEnumD;
 
75
dictionary<MyEnum, string> MyEnumStringD;
 
76
dictionary<MyStruct, MyEnum> MyStructMyEnumD;
 
77
 
 
78
["ami", "amd"] class MyClass
 
79
{
 
80
    void shutdown();
 
81
 
 
82
    void delay(int ms);
 
83
 
 
84
    void opVoid();
 
85
 
 
86
    byte opByte(byte p1, byte p2,
 
87
                out byte p3);
 
88
 
 
89
    bool opBool(bool p1, bool p2,
 
90
                out bool p3);
 
91
 
 
92
    long opShortIntLong(short p1, int p2, long p3,
 
93
                        out short p4, out int p5, out long p6);
 
94
 
 
95
    double opFloatDouble(float p1, double p2,
 
96
                         out float p3, out double p4);
 
97
 
 
98
    string opString(string p1, string p2,
 
99
                    out string p3);
 
100
 
 
101
    MyEnum opMyEnum(MyEnum p1, out MyEnum p2);
 
102
 
 
103
    MyClass* opMyClass(MyClass* p1, out MyClass* p2, out MyClass* p3);
 
104
 
 
105
    Structure opStruct(Structure p1, Structure p2,
 
106
                       out Structure p3);
 
107
 
 
108
    ByteS opByteS(ByteS p1, ByteS p2,
 
109
                  out ByteS p3);
 
110
 
 
111
    BoolS opBoolS(BoolS p1, BoolS p2,
 
112
                  out BoolS p3);        
 
113
 
 
114
    LongS opShortIntLongS(Test::ShortS p1, IntS p2, LongS p3,
 
115
                          out ::Test::ShortS p4, out IntS p5, out LongS p6);
 
116
 
 
117
    DoubleS opFloatDoubleS(FloatS p1, DoubleS p2,
 
118
                           out FloatS p3, out DoubleS p4);
 
119
    
 
120
    StringS opStringS(StringS p1, StringS p2,
 
121
                      out StringS p3);
 
122
    
 
123
    ByteSS opByteSS(ByteSS p1, ByteSS p2,
 
124
                    out ByteSS p3);
 
125
    
 
126
    BoolSS opBoolSS(BoolSS p1, BoolSS p2,
 
127
                    out BoolSS p3);
 
128
    
 
129
    LongSS opShortIntLongSS(ShortSS p1, IntSS p2, LongSS p3,
 
130
                            out ShortSS p4, out IntSS p5, out LongSS p6);
 
131
    
 
132
    
 
133
    DoubleSS opFloatDoubleSS(FloatSS p1, DoubleSS p2,
 
134
                             out FloatSS p3, out DoubleSS p4);
 
135
    
 
136
    StringSS opStringSS(StringSS p1, StringSS p2,
 
137
                        out StringSS p3);
 
138
 
 
139
    StringSSS opStringSSS(StringSSS p1, StringSSS p2,
 
140
                        out StringSSS p3);
 
141
 
 
142
    ByteBoolD opByteBoolD(ByteBoolD p1, ByteBoolD p2,
 
143
                          out ByteBoolD p3);
 
144
 
 
145
    ShortIntD opShortIntD(ShortIntD p1, ShortIntD p2,
 
146
                          out ShortIntD p3);
 
147
 
 
148
    LongFloatD opLongFloatD(LongFloatD p1, LongFloatD p2,
 
149
                            out LongFloatD p3);
 
150
 
 
151
    StringStringD opStringStringD(StringStringD p1, StringStringD p2,
 
152
                                  out StringStringD p3);
 
153
 
 
154
    StringMyEnumD opStringMyEnumD(StringMyEnumD p1, StringMyEnumD p2,
 
155
                                  out StringMyEnumD p3);
 
156
 
 
157
    MyEnumStringD opMyEnumStringD(MyEnumStringD p1, MyEnumStringD p2,
 
158
                                  out MyEnumStringD p3);
 
159
 
 
160
    MyStructMyEnumD opMyStructMyEnumD(MyStructMyEnumD p1, MyStructMyEnumD p2,
 
161
                                      out MyStructMyEnumD p3);
 
162
 
 
163
    IntS opIntS(IntS s);
 
164
 
 
165
    void opByteSOneway(ByteS s);
 
166
 
 
167
    StringStringD opContext();
 
168
 
 
169
    void opDoubleMarshaling(double p1, DoubleS p2);
 
170
};
 
171
 
 
172
["ami", "amd"] class MyDerivedClass extends MyClass
 
173
{
 
174
    void opDerived();
 
175
};
 
176
 
 
177
};
 
178
 
 
179
#endif