blob: a85a638a54c679099645200309c276563b0c8ce5 (
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
|
//
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO_IDL_BE
//
// = FILENAME
// connector_dds_exs.cpp
//
// = DESCRIPTION
// Visitor generating code for Connectors in the exec impl source.
//
// = AUTHOR
// Jeff Parsons
//
// ============================================================================
be_visitor_connector_dds_exs::be_visitor_connector_dds_exs (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx)
{
// This is initialized in the base class to svnt_export_macro()
// or skel_export_macro(), since there are many more visitor
// classes generating servant code. So we can just override
// all that here.
export_macro_ = be_global->exec_export_macro ();
}
be_visitor_connector_dds_exs::~be_visitor_connector_dds_exs (void)
{
}
int
be_visitor_connector_dds_exs::visit_connector (be_connector *node)
{
node_ = node;
/// CIDL-generated namespace used 'CIDL_' + composition name.
/// Now we use 'CIAO_' + component's flat name.
os_ << be_nl << be_nl
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
<< "{" << be_idt;
// TODO - template class constructor and destructor.
this->gen_exec_entrypoint_defn ();
os_ << be_uidt_nl
<< "}";
return 0;
}
|