blob: b8dafb78df52251bf13bb1b84c9c41168ce98345 (
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
|
// **********************************************************************
//
// Copyright (c) 2003 - 2004
// ZeroC, Inc.
// North Palm Beach, FL, USA
//
// 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 ICE_INCOMING_ASYNC_H
#define ICE_INCOMING_ASYNC_H
#include <Ice/IncomingAsyncF.h>
#include <Ice/Incoming.h>
namespace IceInternal
{
//
// We need virtual inheritance from shared, because we use multiple
// inheritance from IceUtil::Shared for generated AMD code.
//
class ICE_API IncomingAsync : public IncomingBase, virtual public ::IceUtil::Shared
{
public:
IncomingAsync(Incoming&); // Adopts the argument. It must not be used afterwards.
protected:
void __response(bool);
void __exception(const ::Ice::Exception&);
void __exception(const ::std::exception&);
void __exception();
// Inlined for speed optimization.
BasicStream* __os() { return &_os; }
protected:
bool _finished;
private:
//
// We need a separate InstancePtr, because _is and _os only hold a
// Instance* for optimization.
//
const InstancePtr _instanceCopy;
//
// We need a separate ConnectionPtr, because IncomingBase only
// holds a Connection* for optimization.
//
const ConnectionPtr _connectionCopy;
};
}
namespace Ice
{
class ICE_API AMD_Object_ice_invoke : virtual public ::IceUtil::Shared
{
public:
virtual void ice_response(bool, const ::std::vector< ::Ice::Byte>&) = 0;
virtual void ice_exception(const ::IceUtil::Exception&) = 0;
virtual void ice_exception(const ::std::exception&) = 0;
virtual void ice_exception() = 0;
};
}
namespace IceAsync
{
namespace Ice
{
class ICE_API AMD_Object_ice_invoke : public ::Ice::AMD_Object_ice_invoke, public ::IceInternal::IncomingAsync
{
public:
AMD_Object_ice_invoke(::IceInternal::Incoming&);
virtual void ice_response(bool, const ::std::vector< ::Ice::Byte>&);
virtual void ice_exception(const ::IceUtil::Exception&);
virtual void ice_exception(const ::std::exception&);
virtual void ice_exception();
};
}
}
#endif
|