1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef TEST_AMD_I_H
6 #define TEST_AMD_I_H
7 
8 #include <TestAMD.h>
9 
10 class MyDerivedClassI : public Test::MyDerivedClass
MyDerivedClassI()11 {
12 public:
13 
14     MyDerivedClassI();
15 
16 #ifdef ICE_CPP11_MAPPING
17     virtual void echoAsync(
18         std::shared_ptr<Ice::ObjectPrx>,
19         ::std::function<void(const ::std::shared_ptr<Ice::ObjectPrx>&)>,
20         ::std::function<void(::std::exception_ptr)>,
21         const Ice::Current&);
22 
23     virtual void shutdownAsync(
24         ::std::function<void()>,
25         ::std::function<void(::std::exception_ptr)>,
26         const Ice::Current&);
27 
28     virtual void getContextAsync(
29         ::std::function<void(const Ice::Context&)>,
30         ::std::function<void(::std::exception_ptr)>,
31         const Ice::Current&);
32 
33     virtual bool ice_isA(std::string, const Ice::Current&) const;
34 #else
35     virtual void echo_async(const Test::AMD_MyDerivedClass_echoPtr&, const Ice::ObjectPrx&, const Ice::Current&);
36     virtual void shutdown_async(const Test::AMD_MyClass_shutdownPtr&,
37                                 const Ice::Current&);
38     virtual void getContext_async(const Test::AMD_MyClass_getContextPtr& cb,
39                                   const Ice::Current&);
40     virtual bool ice_isA(const std::string&, const Ice::Current&) const;
41 #endif
42 private:
43 
44     mutable Ice::Context _ctx;
45 };
46 
47 #endif
48