blob: b135e329f6c054153be561cf0790f12246f274f5 (
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
|
#include "idl.h"
#include "idl_extern.h"
#include "be.h"
#include "be_visitor_interface.h"
ACE_RCSID (be_visitor_interface,
be_visitor_interface_remote_proxy_broker_ch,
"$Id$")
be_visitor_interface_remote_proxy_broker_ch::be_visitor_interface_remote_proxy_broker_ch (be_visitor_context *ctx)
: be_visitor_interface (ctx)
{
// No-Op.
}
be_visitor_interface_remote_proxy_broker_ch::~be_visitor_interface_remote_proxy_broker_ch (void)
{
// No-Op.
}
int
be_visitor_interface_remote_proxy_broker_ch::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
// Generate the class declaration.
os->indent ();
*os << be_nl
<< "///////////////////////////////////////////////////////////////////////" << be_nl
<< "// Remote Proxy Broker Declaration " << be_nl
<< "//" << be_nl << be_nl;
*os << "class " << be_global->stub_export_macro () << " "
<< node->remote_proxy_broker_name () << be_idt_nl
<< ": public virtual "
<< node->base_proxy_broker_name () << be_uidt_nl
<< "{" << be_nl
<< "public: " << be_idt_nl;
// Constructor
*os << node->remote_proxy_broker_name () << " (void);" << be_nl << be_nl;
// Destructor
*os << "virtual ~" << node->remote_proxy_broker_name () << " (void);"
<< be_nl << be_nl;
// Accessor Method
*os << "virtual " << node->base_proxy_impl_name () << " &" << "select_proxy ("
<< be_idt << be_idt_nl;
*os << node->local_name () << " *object," << be_nl
<< "CORBA_Environment &ACE_TRY_ENV" << be_uidt_nl
<< ");" << be_uidt_nl << be_uidt_nl;
*os << "private:" << be_idt_nl
<< node->remote_proxy_impl_name () << " remote_proxy_impl_;"
<< be_uidt_nl << be_nl;
*os << "public:" << be_idt_nl;
// Factory Member Function declaration.
*os << "// This member function is used to get an handle to the unique instance" << be_nl
<< "// of the Remote Proxy Broker that is available for a given" << be_nl
<< "// interface." << be_nl
<< "static " << node->remote_proxy_broker_name ()
<< " *the" << node->remote_proxy_broker_name ()
<< " (void);" << be_uidt_nl;
*os << "};" << be_nl << be_nl;
*os << "//" << be_nl
<< "// End Remote Proxy Broker Declaration " << be_nl
<< "///////////////////////////////////////////////////////////////////////"
<< be_nl << be_nl;
return 0;
}
|