blob: ae043a1c56e78db102aa6c8d2c4d254c06753f35 (
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
|
//
// $Id$
//
ACE_RCSID (be_visitor_interface,
base_proxy_broker_impl_ch,
"$Id$")
be_visitor_interface_proxy_impls_ch::be_visitor_interface_proxy_impls_ch (
be_visitor_context *ctx
)
: be_visitor_interface (ctx)
{
// No-Op.
}
be_visitor_interface_proxy_impls_ch::~be_visitor_interface_proxy_impls_ch (
void
)
{
// No-Op.
}
int
be_visitor_interface_proxy_impls_ch::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
// Generate Guards.
*os << "// The Proxy Implementations are used by each interface to"
<< be_nl
<< "// perform a call. Each different implementation encapsulates"
<< be_nl
<< "// an invocation logic." << be_nl << be_nl;
// Code Generation for the proxy imlpementations base class.
be_visitor_context ctx (*this->ctx_);
ctx.state (TAO_CodeGen::TAO_INTERFACE_BASE_PROXY_IMPL_CH);
be_visitor_interface_base_proxy_impl_ch bpi_visitor (&ctx);
if (node->accept (&bpi_visitor) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_proxy_impls_ch::"
"visit_interface - "
"codegen for Base Proxy Impl. class failed\n"),
-1);
}
ctx = *this->ctx_;
ctx.state (TAO_CodeGen::TAO_INTERFACE_REMOTE_PROXY_IMPL_CH);
be_visitor_interface_remote_proxy_impl_ch rpi_visitor (&ctx);
if (node->accept (&rpi_visitor) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_proxy_impls_ch::"
"visit_interface - "
"codegen for Remote Proxy Broker class failed\n"),
-1);
}
return 0;
}
int be_visitor_interface_proxy_impls_ch::visit_component (
be_component *node
)
{
return this->visit_interface (node);
}
|