summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_codegen.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp38
1 files changed, 36 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index ffc3af9ab26..0d943c59d16 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -184,15 +184,49 @@ TAO_CodeGen::start_client_header (const char *fname)
<< "# pragma once\n"
<< "#endif /* ACE_LACKS_PRAGMA_ONCE */\n\n";
- // Other include files
+ // Other include files.
if (idl_global->export_include () != 0)
{
*this->client_header_ << "#include \""
- << idl_global->export_include ()
+ << idl_global->export_include ()
<< "\"\n";
}
+ // Include the Messaging files if AMI is enabled.
+ if (idl_global->ami_call_back () == I_TRUE)
+ {
+ // Include Messaging skeleton file.
+ *this->client_header_ << "#include ";
+
+ if (idl_global->changing_standard_include_files () == 1)
+ *this->client_header_ << "\"";
+ else
+ *this->client_header_ << "<";
+
+ *this->client_header_ << "tao/MessagingS.h";
+
+ if (idl_global->changing_standard_include_files () == 1)
+ *this->client_header_ << "\"\n";
+ else
+ *this->client_header_ << ">\n";
+
+ // Including Asynch Invocation file.
+ *this->client_header_ << "#include ";
+
+ if (idl_global->changing_standard_include_files () == 1)
+ *this->client_header_ << "\"";
+ else
+ *this->client_header_ << "<";
+
+ *this->client_header_ << "tao/Asynch_Invocation.h";
+
+ if (idl_global->changing_standard_include_files () == 1)
+ *this->client_header_ << "\"\n";
+ else
+ *this->client_header_ << ">\n";
+ }
+
// We must include all the skeleton headers corresponding to
// IDL files included by the current IDL file.
// We will use the included IDL file names as they appeared