diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-11 04:22:24 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-11 04:22:24 +0000 |
commit | 1072e3cb0000ed548242f01ead260850ee8b475c (patch) | |
tree | e1c172dea0e57e29d33046024ed94b05e59afbd3 | |
parent | 30b9647ef83e54de0ce32c4be0cec1d88ff2b83c (diff) | |
download | ATCD-1072e3cb0000ed548242f01ead260850ee8b475c.tar.gz |
Generated AMI_<interface name>_Handler also in the sendc_ method.
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_operation/arglist_ami.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist_ami.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist_ami.cpp index 24729170fde..47bbb778cbd 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/arglist_ami.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/arglist_ami.cpp @@ -51,6 +51,26 @@ be_visitor_operation_arglist_ami::visit_operation (be_operation *node) *os << " (" << be_idt << be_idt << "\n"; + // #if defined (TAO_IDL_HAS_AMI) + // For the AMI, we need the Reply Handler as the first argument. + + // start with current indentation level + os->indent (); + + + be_decl *interface = + be_interface::narrow_from_scope (node->defined_in ())->decl (); + if (interface == 0) + cerr << "Invalid interface"; + + // AMI Handler argument. + *os << "AMI_" + << interface->fullname () + << "_ptr " + << "ami_handler" + << ",\n"; + // #endif /* TAO_IDL_HAS_AMI */ + // all we do is hand over code generation to our scope if (this->visit_scope (node) == -1) { |