ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / test / Ice / operations / TestAMDI.h
blob656297e38cf3f1a239edba8c46b97201a2568fb9
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 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 // **********************************************************************
10 #ifndef TEST_AMD_I_H
11 #define TEST_AMD_I_H
13 #include <IceUtil/Thread.h>
14 #include <TestAMD.h>
16 class MyDerivedClassI : public Test::MyDerivedClass
18 public:
21 // Override the Object "pseudo" operations to verify the operation mode.
23 virtual bool ice_isA(const std::string&, const Ice::Current&) const;
24 virtual void ice_ping(const Ice::Current&) const;
25 virtual std::vector<std::string> ice_ids(const Ice::Current&) const;
26 virtual const std::string& ice_id(const Ice::Current&) const;
28 virtual void shutdown_async(const Test::AMD_MyClass_shutdownPtr&,
29 const Ice::Current&);
31 virtual void delay_async(const Test::AMD_MyClass_delayPtr&, Ice::Int,
32 const Ice::Current&);
34 virtual void opVoid_async(const Test::AMD_MyClass_opVoidPtr&,
35 const Ice::Current&);
37 virtual void opByte_async(const Test::AMD_MyClass_opBytePtr&,
38 Ice::Byte, Ice::Byte,
39 const Ice::Current&);
41 virtual void opBool_async(const Test::AMD_MyClass_opBoolPtr&,
42 bool, bool,
43 const Ice::Current&);
45 virtual void opShortIntLong_async(const Test::AMD_MyClass_opShortIntLongPtr&,
46 Ice::Short, Ice::Int, Ice::Long,
47 const Ice::Current&);
49 virtual void opFloatDouble_async(const Test::AMD_MyClass_opFloatDoublePtr&,
50 Ice::Float, Ice::Double,
51 const Ice::Current&);
53 virtual void opString_async(const Test::AMD_MyClass_opStringPtr&,
54 const std::string&, const std::string&,
55 const Ice::Current&);
57 virtual void opMyEnum_async(const Test::AMD_MyClass_opMyEnumPtr&,
58 Test::MyEnum,
59 const Ice::Current&);
61 virtual void opMyClass_async(const Test::AMD_MyClass_opMyClassPtr&,
62 const Test::MyClassPrx&,
63 const Ice::Current&);
65 virtual void opStruct_async(const Test::AMD_MyClass_opStructPtr&,
66 const Test::Structure&, const Test::Structure&,
67 const Ice::Current&);
69 virtual void opByteS_async(const Test::AMD_MyClass_opByteSPtr&,
70 const Test::ByteS&, const Test::ByteS&,
71 const Ice::Current&);
73 virtual void opBoolS_async(const Test::AMD_MyClass_opBoolSPtr&,
74 const Test::BoolS&, const Test::BoolS&,
75 const Ice::Current&);
77 virtual void opShortIntLongS_async(const Test::AMD_MyClass_opShortIntLongSPtr&,
78 const Test::ShortS&, const Test::IntS&, const Test::LongS&,
79 const Ice::Current&);
81 virtual void opFloatDoubleS_async(const Test::AMD_MyClass_opFloatDoubleSPtr&,
82 const Test::FloatS&, const Test::DoubleS&,
83 const Ice::Current&);
85 virtual void opStringS_async(const Test::AMD_MyClass_opStringSPtr&,
86 const Test::StringS&, const Test::StringS&,
87 const Ice::Current&);
89 virtual void opByteSS_async(const Test::AMD_MyClass_opByteSSPtr&,
90 const Test::ByteSS&, const Test::ByteSS&,
91 const Ice::Current&);
93 virtual void opBoolSS_async(const Test::AMD_MyClass_opBoolSSPtr&,
94 const Test::BoolSS&, const Test::BoolSS&,
95 const Ice::Current&);
97 virtual void opShortIntLongSS_async(const Test::AMD_MyClass_opShortIntLongSSPtr&,
98 const Test::ShortSS&, const Test::IntSS&, const Test::LongSS&,
99 const Ice::Current&);
101 virtual void opFloatDoubleSS_async(const Test::AMD_MyClass_opFloatDoubleSSPtr&,
102 const Test::FloatSS&, const Test::DoubleSS&,
103 const Ice::Current&);
105 virtual void opStringSS_async(const Test::AMD_MyClass_opStringSSPtr&,
106 const Test::StringSS&, const Test::StringSS&,
107 const Ice::Current&);
109 virtual void opStringSSS_async(const Test::AMD_MyClass_opStringSSSPtr&,
110 const Test::StringSSS&, const Test::StringSSS&,
111 const Ice::Current&);
113 virtual void opByteBoolD_async(const Test::AMD_MyClass_opByteBoolDPtr&,
114 const Test::ByteBoolD&, const Test::ByteBoolD&,
115 const Ice::Current&);
117 virtual void opShortIntD_async(const Test::AMD_MyClass_opShortIntDPtr&,
118 const Test::ShortIntD&, const Test::ShortIntD&,
119 const Ice::Current&);
121 virtual void opLongFloatD_async(const Test::AMD_MyClass_opLongFloatDPtr&,
122 const Test::LongFloatD&, const Test::LongFloatD&,
123 const Ice::Current&);
125 virtual void opStringStringD_async(const Test::AMD_MyClass_opStringStringDPtr&,
126 const Test::StringStringD&, const Test::StringStringD&,
127 const Ice::Current&);
129 virtual void opStringMyEnumD_async(const Test::AMD_MyClass_opStringMyEnumDPtr&,
130 const Test::StringMyEnumD&, const Test::StringMyEnumD&,
131 const Ice::Current&);
133 virtual void opMyEnumStringD_async(const Test::AMD_MyClass_opMyEnumStringDPtr&,
134 const Test::MyEnumStringD&, const Test::MyEnumStringD&,
135 const Ice::Current&);
137 virtual void opMyStructMyEnumD_async(const Test::AMD_MyClass_opMyStructMyEnumDPtr&,
138 const Test::MyStructMyEnumD&, const Test::MyStructMyEnumD&,
139 const Ice::Current&);
141 virtual void opIntS_async(const Test::AMD_MyClass_opIntSPtr&, const Test::IntS&, const Ice::Current&);
143 virtual void opByteSOneway_async(const Test::AMD_MyClass_opByteSOnewayPtr&, const Test::ByteS&,
144 const Ice::Current&);
146 virtual void opContext_async(const Test::AMD_MyClass_opContextPtr&, const Ice::Current&);
148 virtual void opDoubleMarshaling_async(const Test::AMD_MyClass_opDoubleMarshalingPtr&,
149 Ice::Double, const Test::DoubleS&, const Ice::Current&);
151 virtual void opIdempotent_async(const Test::AMD_MyClass_opIdempotentPtr&,
152 const Ice::Current&);
154 virtual void opNonmutating_async(const Test::AMD_MyClass_opNonmutatingPtr&,
155 const Ice::Current&);
157 virtual void opDerived_async(const Test::AMD_MyDerivedClass_opDerivedPtr&,
158 const Ice::Current&);
160 private:
162 IceUtil::ThreadPtr _opVoidThread;
163 IceUtil::Mutex _opVoidMutex;
166 #endif