summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/TestI.h
blob: f06684a1c0c8c6f499655e1f704ccc215665c7f8 (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
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
// **********************************************************************
//
// 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.
//
// **********************************************************************

#ifndef TEST_I_H
#define TEST_I_H

#include <Test.h>
#include <TestCommon.h>

class MyDerivedClassI : 
#ifdef ICE_CPP11_MAPPING
    public Test::MyDerivedClassDisp
#else
    public Test::MyDerivedClass
#endif
{
public:

    MyDerivedClassI();

    //
    // Override the Object "pseudo" operations to verify the operation mode.
    //
    virtual bool ice_isA(ICE_IN(std::string), const Ice::Current&) const;
    virtual void ice_ping(const Ice::Current&) const;
    virtual std::vector<std::string> ice_ids(const Ice::Current&) const;
    virtual const std::string& ice_id(const Ice::Current&) const;

    virtual void shutdown(const Ice::Current&);

    virtual void delay(Ice::Int, const Ice::Current&);

    virtual void opVoid(const Ice::Current&);

    virtual Ice::Byte opByte(Ice::Byte,
                             Ice::Byte,
                             Ice::Byte&,
                             const Ice::Current&);

    virtual bool opBool(bool,
                        bool,
                        bool&,
                        const Ice::Current&);

    virtual Ice::Long opShortIntLong(Ice::Short,
                                     Ice::Int,
                                     Ice::Long,
                                     Ice::Short&,
                                     Ice::Int&,
                                     Ice::Long&,
                                     const Ice::Current&);

    virtual Ice::Double opFloatDouble(Ice::Float,
                                      Ice::Double,
                                      Ice::Float&,
                                      Ice::Double&,
                                      const Ice::Current&);

    virtual std::string opString(ICE_IN(std::string),
                                 ICE_IN(std::string),
                                 std::string&,
                                 const Ice::Current&);

    virtual Test::MyEnum opMyEnum(Test::MyEnum,
                                  Test::MyEnum&,
                                  const Ice::Current&);

    virtual Test::MyClassPrxPtr opMyClass(ICE_IN(Test::MyClassPrxPtr),
                                          Test::MyClassPrxPtr&, Test::MyClassPrxPtr&,
                                          const Ice::Current&);

    virtual Test::Structure opStruct(ICE_IN(Test::Structure), 
                                     ICE_IN(Test::Structure),
                                     Test::Structure&,
                                     const Ice::Current&);

    virtual Test::ByteS opByteS(ICE_IN(Test::ByteS),
                                ICE_IN(Test::ByteS),
                                Test::ByteS&,
                                const Ice::Current&);

    virtual Test::BoolS opBoolS(ICE_IN(Test::BoolS),
                                ICE_IN(Test::BoolS),
                                Test::BoolS&,
                                const Ice::Current&);

    virtual Test::LongS opShortIntLongS(ICE_IN(Test::ShortS),
                                        ICE_IN(Test::IntS),
                                        ICE_IN(Test::LongS),
                                        Test::ShortS&,
                                        Test::IntS&,
                                        Test::LongS&,
                                        const Ice::Current&);

    virtual Test::DoubleS opFloatDoubleS(ICE_IN(Test::FloatS),
                                         ICE_IN(Test::DoubleS),
                                         Test::FloatS&,
                                         Test::DoubleS&,
                                         const Ice::Current&);

    virtual Test::StringS opStringS(ICE_IN(Test::StringS),
                                    ICE_IN(Test::StringS),
                                    Test::StringS&,
                                    const Ice::Current&);

    virtual Test::ByteSS opByteSS(ICE_IN(Test::ByteSS),
                                  ICE_IN(Test::ByteSS),
                                  Test::ByteSS&,
                                  const Ice::Current&);

    virtual Test::BoolSS opBoolSS(ICE_IN(Test::BoolSS),
                                  ICE_IN(Test::BoolSS),
                                  Test::BoolSS&,
                                  const Ice::Current&);

    virtual Test::LongSS opShortIntLongSS(ICE_IN(Test::ShortSS),
                                          ICE_IN(Test::IntSS),
                                          ICE_IN(Test::LongSS),
                                          Test::ShortSS&,
                                          Test::IntSS&,
                                          Test::LongSS&,
                                          const Ice::Current&);

    virtual Test::DoubleSS opFloatDoubleSS(ICE_IN(Test::FloatSS),
                                           ICE_IN(Test::DoubleSS),
                                           Test::FloatSS&,
                                           Test::DoubleSS&,
                                           const Ice::Current&);

    virtual Test::StringSS opStringSS(ICE_IN(Test::StringSS),
                                      ICE_IN(Test::StringSS),
                                      Test::StringSS&,
                                      const Ice::Current&);

    virtual Test::StringSSS opStringSSS(ICE_IN(Test::StringSSS),
                                        ICE_IN(Test::StringSSS),
                                        Test::StringSSS&,
                                        const ::Ice::Current&);

    virtual Test::ByteBoolD opByteBoolD(ICE_IN(Test::ByteBoolD),
                                        ICE_IN(Test::ByteBoolD),
                                        Test::ByteBoolD&,
                                        const Ice::Current&);

    virtual Test::ShortIntD opShortIntD(ICE_IN(Test::ShortIntD),
                                        ICE_IN(Test::ShortIntD),
                                        Test::ShortIntD&,
                                        const Ice::Current&);

    virtual Test::LongFloatD opLongFloatD(ICE_IN(Test::LongFloatD),
                                          ICE_IN(Test::LongFloatD),
                                          Test::LongFloatD&,
                                          const Ice::Current&);

    virtual Test::StringStringD opStringStringD(ICE_IN(Test::StringStringD),
                                                ICE_IN(Test::StringStringD),
                                                Test::StringStringD&,
                                                const Ice::Current&);

    virtual Test::StringMyEnumD opStringMyEnumD(ICE_IN(Test::StringMyEnumD),
                                                ICE_IN(Test::StringMyEnumD),
                                                Test::StringMyEnumD&,
                                                const Ice::Current&);

    virtual Test::MyEnumStringD opMyEnumStringD(ICE_IN(Test::MyEnumStringD),
                                                ICE_IN(Test::MyEnumStringD),
                                                Test::MyEnumStringD&,
                                                const Ice::Current&);

    virtual Test::MyStructMyEnumD opMyStructMyEnumD(ICE_IN(Test::MyStructMyEnumD),
                                                    ICE_IN(Test::MyStructMyEnumD),
                                                    Test::MyStructMyEnumD&,
                                                    const Ice::Current&);

    virtual Test::ByteBoolDS opByteBoolDS(ICE_IN(Test::ByteBoolDS),
                                          ICE_IN(Test::ByteBoolDS),
                                          Test::ByteBoolDS&,
                                          const Ice::Current&);

    virtual Test::ShortIntDS opShortIntDS(ICE_IN(Test::ShortIntDS),
                                          ICE_IN(Test::ShortIntDS),
                                          Test::ShortIntDS&,
                                          const Ice::Current&);

    virtual Test::LongFloatDS opLongFloatDS(ICE_IN(Test::LongFloatDS),
                                            ICE_IN(Test::LongFloatDS),
                                            Test::LongFloatDS&,
                                            const Ice::Current&);

    virtual Test::StringStringDS opStringStringDS(ICE_IN(Test::StringStringDS),
                                                  ICE_IN(Test::StringStringDS),
                                                  Test::StringStringDS&,
                                                  const Ice::Current&);

    virtual Test::StringMyEnumDS opStringMyEnumDS(ICE_IN(Test::StringMyEnumDS),
                                                  ICE_IN(Test::StringMyEnumDS),
                                                  Test::StringMyEnumDS&,
                                                  const Ice::Current&);

    virtual Test::MyStructMyEnumDS opMyStructMyEnumDS(ICE_IN(Test::MyStructMyEnumDS),
                                                      ICE_IN(Test::MyStructMyEnumDS),
                                                      Test::MyStructMyEnumDS&,
                                                      const Ice::Current&);

    virtual Test::MyEnumStringDS opMyEnumStringDS(ICE_IN(Test::MyEnumStringDS),
                                                  ICE_IN(Test::MyEnumStringDS),
                                                  Test::MyEnumStringDS&,
                                                  const Ice::Current&);

    virtual Test::ByteByteSD opByteByteSD(ICE_IN(Test::ByteByteSD),
                                          ICE_IN(Test::ByteByteSD),
                                          Test::ByteByteSD&,
                                          const Ice::Current&);

    virtual Test::BoolBoolSD opBoolBoolSD(ICE_IN(Test::BoolBoolSD),
                                          ICE_IN(Test::BoolBoolSD),
                                          Test::BoolBoolSD&,
                                          const Ice::Current&);

    virtual Test::ShortShortSD opShortShortSD(ICE_IN(Test::ShortShortSD),
                                              ICE_IN(Test::ShortShortSD),
                                              Test::ShortShortSD&,
                                              const Ice::Current&);

    virtual Test::IntIntSD opIntIntSD(ICE_IN(Test::IntIntSD),
                                      ICE_IN(Test::IntIntSD),
                                      Test::IntIntSD&,
                                      const Ice::Current&);

    virtual Test::LongLongSD opLongLongSD(ICE_IN(Test::LongLongSD),
                                          ICE_IN(Test::LongLongSD),
                                          Test::LongLongSD&,
                                          const Ice::Current&);

    virtual Test::StringFloatSD opStringFloatSD(ICE_IN(Test::StringFloatSD),
                                                ICE_IN(Test::StringFloatSD),
                                                Test::StringFloatSD&,
                                                const Ice::Current&);

    virtual Test::StringDoubleSD opStringDoubleSD(ICE_IN(Test::StringDoubleSD),
                                                  ICE_IN(Test::StringDoubleSD),
                                                  Test::StringDoubleSD&,
                                                  const Ice::Current&);

    virtual Test::StringStringSD opStringStringSD(ICE_IN(Test::StringStringSD),
                                                  ICE_IN(Test::StringStringSD),
                                                  Test::StringStringSD&,
                                                  const Ice::Current&);

    virtual Test::MyEnumMyEnumSD opMyEnumMyEnumSD(ICE_IN(Test::MyEnumMyEnumSD),
                                                  ICE_IN(Test::MyEnumMyEnumSD),
                                                  Test::MyEnumMyEnumSD&,
                                                  const Ice::Current&);

    virtual Test::IntS opIntS(ICE_IN(Test::IntS), const Ice::Current&);

    virtual void opByteSOneway(ICE_IN(Test::ByteS), const Ice::Current&);
    virtual int opByteSOnewayCallCount(const Ice::Current&);

    virtual Ice::Context opContext(const Ice::Current&);

    virtual void opDoubleMarshaling(Ice::Double, ICE_IN(Test::DoubleS), const Ice::Current&);

    virtual void opIdempotent(const Ice::Current&);

    virtual void opNonmutating(const Ice::Current&);

    virtual void opDerived(const Ice::Current&);

    virtual Ice::Byte opByte1(Ice::Byte, const Ice::Current&);

    virtual Ice::Short opShort1(Ice::Short, const Ice::Current&);

    virtual Ice::Int opInt1(Ice::Int, const Ice::Current&);

    virtual Ice::Long opLong1(Ice::Long, const Ice::Current&);

    virtual Ice::Float opFloat1(Ice::Float, const Ice::Current&);

    virtual Ice::Double opDouble1(Ice::Double, const Ice::Current&);

    virtual std::string opString1(ICE_IN(std::string), const Ice::Current&);

    virtual Test::StringS opStringS1(ICE_IN(Test::StringS), const Ice::Current&);

    virtual Test::ByteBoolD opByteBoolD1(ICE_IN(Test::ByteBoolD), const Ice::Current&);
    
    virtual Test::StringS opStringS2(ICE_IN(Test::StringS), const Ice::Current&);
    
    virtual Test::ByteBoolD opByteBoolD2(ICE_IN(Test::ByteBoolD), const Ice::Current&);
    
    virtual Test::MyStruct1 opMyStruct1(ICE_IN(Test::MyStruct1), const Ice::Current&);

    virtual Test::MyClass1Ptr opMyClass1(ICE_IN(Test::MyClass1Ptr), const Ice::Current&);
    
    virtual Test::StringS opStringLiterals(const Ice::Current&);

private:

    IceUtil::Mutex _mutex;
    int _opByteSOnewayCallCount;
};

#endif