summaryrefslogtreecommitdiff
path: root/TAO/tao/MessagingS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/MessagingS.cpp')
-rw-r--r--TAO/tao/MessagingS.cpp77
1 files changed, 32 insertions, 45 deletions
diff --git a/TAO/tao/MessagingS.cpp b/TAO/tao/MessagingS.cpp
index b177dca761f..cc3f5ef80e7 100644
--- a/TAO/tao/MessagingS.cpp
+++ b/TAO/tao/MessagingS.cpp
@@ -2179,37 +2179,27 @@ void POA_Messaging::Poller::_get_op_name_skel (
}
void POA_Messaging::Poller::_is_a_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * _tao_object_reference,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
+ CORBA::ServerRequest &_tao_server_request,
+ void * _tao_object_reference,
+ void * /*context*/,
+ CORBA::Environment &ACE_TRY_ENV
+ )
{
- static const TAO_Param_Data_Skel Messaging_Poller_is_a_paramdata [] =
- {
- {CORBA::_tc_boolean, 0, 0},
- {CORBA::_tc_string, CORBA::ARG_IN, 0}
- };
- static const TAO_Call_Data_Skel Messaging_Poller_is_a_calldata =
- {"_is_a", 1, 2, Messaging_Poller_is_a_paramdata};
- POA_Messaging::Poller_ptr _tao_impl = (POA_Messaging::Poller_ptr) _tao_object_reference;
- CORBA::Boolean _tao_retval;
- CORBA::String_var _tao_value;
- _tao_server_request.demarshal (
- ACE_TRY_ENV,
- &Messaging_Poller_is_a_calldata,
- &_tao_retval,
- &_tao_value.inout ()
- );
+ TAO_InputCDR &_tao_in = _tao_server_request.incoming ();
+ POA_Messaging::Poller *_tao_impl = (POA_Messaging::Poller *) _tao_object_reference;
+ CORBA::Boolean _tao_retval = 0;
+ CORBA::String_var value;
+ if (!((_tao_in >> value.out ())))
+ ACE_THROW (CORBA::MARSHAL ());
+
+ _tao_retval = _tao_impl->_is_a (value.in (), ACE_TRY_ENV);
ACE_CHECK;
- _tao_retval = _tao_impl->_is_a (_tao_value.in (), ACE_TRY_ENV);
+
+ _tao_server_request.init_reply (ACE_TRY_ENV);
ACE_CHECK;
- _tao_server_request.marshal (
- ACE_TRY_ENV,
- &Messaging_Poller_is_a_calldata,
- &_tao_retval,
- &_tao_value.inout ()
- );
+ TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
+ if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
+ ACE_THROW (CORBA::MARSHAL ());
}
CORBA::Boolean POA_Messaging::Poller::_is_a (
@@ -2227,24 +2217,21 @@ CORBA::Boolean POA_Messaging::Poller::_is_a (
}
void POA_Messaging::Poller::_non_existent_skel (
- CORBA::ServerRequest &_tao_server_request,
- void * /* _tao_object_reference */ ,
- void * /*context*/,
- CORBA::Environment &ACE_TRY_ENV
- )
+ CORBA::ServerRequest &_tao_server_request,
+ void * _tao_object_reference ,
+ void * /*context*/,
+ CORBA::Environment &ACE_TRY_ENV
+ )
{
- static const TAO_Param_Data_Skel Messaging_Poller_non_existent_paramdata [] =
- {
- {CORBA::_tc_boolean, 0, 0}
- };
- static const TAO_Call_Data_Skel Messaging_Poller_non_existent_calldata =
- {"_non_existent", 1, 1, Messaging_Poller_non_existent_paramdata};
- CORBA::Boolean _tao_retval = 0;
- _tao_server_request.marshal (
- ACE_TRY_ENV,
- &Messaging_Poller_non_existent_calldata,
- &_tao_retval
- );
+ POA_Messaging::Poller *_tao_impl = (POA_Messaging::Poller *) _tao_object_reference;
+ CORBA::Boolean _tao_retval = _tao_impl->_non_existent (ACE_TRY_ENV);
+ ACE_CHECK;
+
+ _tao_server_request.init_reply (ACE_TRY_ENV);
+ ACE_CHECK;
+ TAO_OutputCDR &_tao_out = _tao_server_request.outgoing ();
+ if (!((_tao_out << CORBA::Any::from_boolean (_tao_retval))))
+ ACE_THROW (CORBA::MARSHAL ());
}
void* POA_Messaging::Poller::_downcast (