summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-07-15 13:38:43 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-07-15 13:38:43 +0000
commit94c11c969a41fcf9c108881823f629882f1c8774 (patch)
treefd224fa3f4f80978cf5674b085d5c10845d56bdf /TAO/TAO_IDL
parente55ae176393a1fafd352ce6f28855106618f23bc (diff)
downloadATCD-94c11c969a41fcf9c108881823f629882f1c8774.tar.gz
ChangeLogTag: Thu Jul 15 13:37:06 UTC 2010 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp59
1 files changed, 33 insertions, 26 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index b2f6ad53c72..3a7e6e1a94a 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -1849,40 +1849,47 @@ TAO_CodeGen::end_client_stubs (void)
int
TAO_CodeGen::end_server_header (void)
{
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_header_ << be_global->versioning_end ();
+ TAO_OutStream *os = this->server_header_;
- // Insert the template header.
- if (be_global->gen_tie_classes ())
- {
- *this->server_header_ << "\n\n#include \""
- << be_global->be_get_server_template_hdr_fname (1)
- << "\"\n";
- }
+ /// Otherwise just generate the post_include(), if any,
+ /// and the #endif.
+ if (be_global->gen_skel_files ())
+ {
+ // End versioned namespace support. Do not place include directives
+ // before this.
+ *os << be_global->versioning_end ();
- // Only when we generate a server inline file generate the include
- if (be_global->gen_server_inline ())
- {
- // Insert the code to include the inline file.
- *this->server_header_ << "\n#if defined (__ACE_INLINE__)\n";
- *this->server_header_ << "#include \""
- << be_global->be_get_server_inline_fname (1)
- << "\"\n";
- *this->server_header_ << "#endif /* defined INLINE */";
+ // Insert the template header.
+ if (be_global->gen_tie_classes ())
+ {
+ *os << "\n\n#include \""
+ << be_global->be_get_server_template_hdr_fname (true)
+ << "\"\n";
+ }
+
+ // Only when we generate a server inline file generate the include
+ if (be_global->gen_server_inline ())
+ {
+ // Insert the code to include the inline file.
+ *os << "\n#if defined (__ACE_INLINE__)\n";
+ *os << "#include \""
+ << be_global->be_get_server_inline_fname (1)
+ << "\"\n";
+ *os << "#endif /* defined INLINE */";
+ }
}
if (be_global->post_include () != 0)
{
- *this->server_header_ << be_nl << be_nl
- << "#include /**/ \""
- << be_global->post_include ()
- << "\"";
+ *os << be_nl << be_nl
+ << "#include /**/ \""
+ << be_global->post_include ()
+ << "\"";
}
- *this->server_header_ << be_nl << be_nl
- << "#endif /* ifndef */\n"
- << "\n";
+ *os << be_nl << be_nl
+ << "#endif /* ifndef */\n"
+ << "\n";
return 0;
}