blob: 7bf8ebe232861a6e85fdd438d940431144899287 (
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
|
//
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// facet_ex_idl.cpp
//
// = DESCRIPTION
// Visitor generating code for facets in the CIAO executor IDL.
//
// = AUTHOR
// Jeff Parsons
//
// ============================================================================
be_visitor_facet_ex_idl::be_visitor_facet_ex_idl (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx)
{
}
be_visitor_facet_ex_idl::~be_visitor_facet_ex_idl (void)
{
}
int
be_visitor_facet_ex_idl::visit_provides (be_provides *node)
{
be_type *impl = node->provides_type ();
if (impl->ex_idl_facet_gen ())
{
return 0;
}
be_util::gen_nesting_open (os_, impl);
os_ << be_nl
<< "local interface CCM_"
<< impl->original_local_name ()->get_string ()
<< " : ::"
<< IdentifierHelper::orig_sn (impl->name ()).c_str ()
<< be_nl
<< "{" << be_idt;
os_ << be_uidt_nl
<< "};";
be_util::gen_nesting_close (os_, impl);
impl->ex_idl_facet_gen (true);
return 0;
}
|