diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-10-29 12:52:13 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-10-29 12:52:13 +0000 |
commit | 81880503000153b64b4f0ee3ee4018b54220ba38 (patch) | |
tree | c7e6c002eef4e633f0f6af28d87ff7f146c6c53e /modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp | |
parent | 5428ca2afc9c5afc5c3fb61c272e39eff53ad6c2 (diff) | |
download | ATCD-81880503000153b64b4f0ee3ee4018b54220ba38.tar.gz |
ChangeLogTag: Thu Oct 29 12:50:35 UTC 2009 Jeff Parsons <j.parsons@vanderbilt.edu>idl3_plus_v2
Diffstat (limited to 'modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp')
-rw-r--r-- | modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp b/modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp new file mode 100644 index 00000000000..28640d3be6f --- /dev/null +++ b/modules/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp @@ -0,0 +1,57 @@ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO_IDL_BE +// +// = FILENAME +// connector_dds_exh.cpp +// +// = DESCRIPTION +// Visitor generating code for DDS Connectors in the exec impl header. +// +// = AUTHOR +// Jeff Parsons +// +// ============================================================================ + +be_visitor_connector_dds_exh::be_visitor_connector_dds_exh ( + 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_exh::~be_visitor_connector_dds_exh (void) +{ +} + +int +be_visitor_connector_dds_exh::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 declaration. + + this->gen_exec_entrypoint_decl (); + + os_ << be_uidt_nl + << "}"; + + return 0; +} + |