diff options
Diffstat (limited to 'TAO/tao/Messaging/MessagingC.cpp')
-rw-r--r-- | TAO/tao/Messaging/MessagingC.cpp | 629 |
1 files changed, 152 insertions, 477 deletions
diff --git a/TAO/tao/Messaging/MessagingC.cpp b/TAO/tao/Messaging/MessagingC.cpp index f18952a7d44..5b579469081 100644 --- a/TAO/tao/Messaging/MessagingC.cpp +++ b/TAO/tao/Messaging/MessagingC.cpp @@ -35,7 +35,6 @@ #endif /* TAO_HAS_INTERCEPTORS == 1 */ - #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig #endif /* __BORLANDC__ */ @@ -51,65 +50,65 @@ static const CORBA::Long _oc_Messaging_ExceptionHolder[] = { TAO_ENCAP_BYTE_ORDER, // byte order 42, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x4d657373), - ACE_NTOHL (0x6167696e), - ACE_NTOHL (0x672f4578), - ACE_NTOHL (0x63657074), - ACE_NTOHL (0x696f6e48), - ACE_NTOHL (0x6f6c6465), - ACE_NTOHL (0x723a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x4d657373), + ACE_NTOHL (0x6167696e), + ACE_NTOHL (0x672f4578), + ACE_NTOHL (0x63657074), + ACE_NTOHL (0x696f6e48), + ACE_NTOHL (0x6f6c6465), + ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/Messaging/ExceptionHolder:1.0 16, - ACE_NTOHL (0x45786365), - ACE_NTOHL (0x7074696f), - ACE_NTOHL (0x6e486f6c), + ACE_NTOHL (0x45786365), + ACE_NTOHL (0x7074696f), + ACE_NTOHL (0x6e486f6c), ACE_NTOHL (0x64657200), // name = ExceptionHolder 0, // value modifier CORBA::tk_null, // no stateful base valuetype 3, // member count 20, - ACE_NTOHL (0x69735f73), - ACE_NTOHL (0x79737465), - ACE_NTOHL (0x6d5f6578), - ACE_NTOHL (0x63657074), + ACE_NTOHL (0x69735f73), + ACE_NTOHL (0x79737465), + ACE_NTOHL (0x6d5f6578), + ACE_NTOHL (0x63657074), ACE_NTOHL (0x696f6e00), // name = is_system_exception CORBA::tk_boolean, 1, // data member visibility marker 11, - ACE_NTOHL (0x62797465), - ACE_NTOHL (0x5f6f7264), + ACE_NTOHL (0x62797465), + ACE_NTOHL (0x5f6f7264), ACE_NTOHL (0x65720000), // name = byte_order CORBA::tk_boolean, 1, // data member visibility marker 20, - ACE_NTOHL (0x6d617273), - ACE_NTOHL (0x68616c65), - ACE_NTOHL (0x645f6578), - ACE_NTOHL (0x63657074), + ACE_NTOHL (0x6d617273), + ACE_NTOHL (0x68616c65), + ACE_NTOHL (0x645f6578), + ACE_NTOHL (0x63657074), ACE_NTOHL (0x696f6e00), // name = marshaled_exception CORBA::tk_alias, // typecode kind for typedefs 76, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 31, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f4f63), - ACE_NTOHL (0x74657453), - ACE_NTOHL (0x65713a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f4f63), + ACE_NTOHL (0x74657453), + ACE_NTOHL (0x65713a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/CORBA/OctetSeq:1.0 9, - ACE_NTOHL (0x4f637465), - ACE_NTOHL (0x74536571), + ACE_NTOHL (0x4f637465), + ACE_NTOHL (0x74536571), ACE_NTOHL (0x0), // name = OctetSeq CORBA::tk_sequence, // typecode kind 12, // encapsulation length @@ -141,211 +140,47 @@ TAO_NAMESPACE_DEFINE ( TAO_NAMESPACE_END // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/valuetype_cs.cpp:95 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/valuetype_cs.cpp:94 void -tao_Messaging_ExceptionHolder_add_ref ( - Messaging::ExceptionHolder *p +Messaging::tao_ExceptionHolder_life::tao_add_ref ( + Messaging::ExceptionHolder * p ) { CORBA::add_ref (p); } void -tao_Messaging_ExceptionHolder_remove_ref ( - Messaging::ExceptionHolder *p +Messaging::tao_ExceptionHolder_life::tao_remove_ref ( + Messaging::ExceptionHolder * p ) { CORBA::remove_ref (p); } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:298 - -// ************************************************************* -// Operations for class Messaging::ExceptionHolder_var -// ************************************************************* - -Messaging::ExceptionHolder_var::ExceptionHolder_var (void) - : ptr_ (0) -{} - -Messaging::ExceptionHolder_var::ExceptionHolder_var (ExceptionHolder* p) - : ptr_ (p) -{} - -Messaging::ExceptionHolder_var::ExceptionHolder_var (const ExceptionHolder* p) - : ptr_ (ACE_const_cast (ExceptionHolder *, p)) -{} - -Messaging::ExceptionHolder * -Messaging::ExceptionHolder_var::ptr (void) const -{ - return this->ptr_; -} - -Messaging::ExceptionHolder_var::ExceptionHolder_var (const ExceptionHolder_var &p) -{ - CORBA::add_ref (p.ptr ()); - this->ptr_ = p.ptr (); -} - -Messaging::ExceptionHolder_var::~ExceptionHolder_var (void) // destructor -{ - CORBA::remove_ref (this->ptr_); -} - -Messaging::ExceptionHolder_var & -Messaging::ExceptionHolder_var::operator= (ExceptionHolder *p) -{ - CORBA::remove_ref (this->ptr_); - this->ptr_ = p; - return *this; -} - -Messaging::ExceptionHolder_var & -Messaging::ExceptionHolder_var::operator= (const ExceptionHolder_var &p) -{ - if (this != &p) - { - CORBA::remove_ref (this->ptr_); - ExceptionHolder *tmp = p.ptr (); - CORBA::add_ref (tmp); - this->ptr_ = tmp; - } - - return *this; -} - -Messaging::ExceptionHolder_var::operator const Messaging::ExceptionHolder* () const // cast -{ - return this->ptr_; -} - -Messaging::ExceptionHolder_var::operator Messaging::ExceptionHolder*& () // cast -{ - return this->ptr_; -} - -Messaging::ExceptionHolder * -Messaging::ExceptionHolder_var::operator-> (void) const -{ - return this->ptr_; -} - -Messaging::ExceptionHolder * -Messaging::ExceptionHolder_var::in (void) const -{ - return this->ptr_; -} - -Messaging::ExceptionHolder *& -Messaging::ExceptionHolder_var::inout (void) -{ - return this->ptr_; -} - -Messaging::ExceptionHolder *& -Messaging::ExceptionHolder_var::out (void) -{ - CORBA::remove_ref (this->ptr_); - this->ptr_ = 0; - return this->ptr_; -} - -Messaging::ExceptionHolder * -Messaging::ExceptionHolder_var::_retn (void) -{ - // yield ownership of managed obj reference - ExceptionHolder* tmp = this->ptr_; - this->ptr_ = 0; - return tmp; -} - -void -Messaging::ExceptionHolder_var::tao_add_ref ( - ExceptionHolder *p - ) -{ - CORBA::add_ref (p); -} - -void -Messaging::ExceptionHolder_var::tao_remove_ref ( - ExceptionHolder *p - ) -{ - CORBA::remove_ref (p); -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:568 - -// ************************************************************* -// Operations for class Messaging::ExceptionHolder_out -// ************************************************************* - -Messaging::ExceptionHolder_out::ExceptionHolder_out (ExceptionHolder *&p) - : ptr_ (p) -{ - this->ptr_ = 0; -} - -Messaging::ExceptionHolder_out::ExceptionHolder_out (ExceptionHolder_var &p) - : ptr_ (p.out ()) -{ - CORBA::remove_ref (this->ptr_); - this->ptr_ = 0; -} - -Messaging::ExceptionHolder_out::ExceptionHolder_out (const ExceptionHolder_out &p) - : ptr_ (ACE_const_cast (ExceptionHolder_out&, p).ptr_) -{} - -Messaging::ExceptionHolder_out & -Messaging::ExceptionHolder_out::operator= (const ExceptionHolder_out &p) -{ - this->ptr_ = ACE_const_cast (ExceptionHolder_out&, p).ptr_; - return *this; -} - -Messaging::ExceptionHolder_out & -Messaging::ExceptionHolder_out::operator= (const ExceptionHolder_var &p) -{ - ExceptionHolder *tmp = p.ptr (); - CORBA::add_ref (tmp); - this->ptr_ = tmp; - return *this; -} - -Messaging::ExceptionHolder_out & -Messaging::ExceptionHolder_out::operator= (ExceptionHolder *p) -{ - this->ptr_ = p; - return *this; -} - -Messaging::ExceptionHolder_out::operator Messaging::ExceptionHolder*& () // cast -{ - return this->ptr_; -} - -Messaging::ExceptionHolder *& -Messaging::ExceptionHolder_out::ptr (void) // ptr -{ - return this->ptr_; -} - -Messaging::ExceptionHolder * -Messaging::ExceptionHolder_out::operator-> (void) -{ - return this->ptr_; -} - -// ************************************************************* - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/valuetype_cs.cpp:138 +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + template class + TAO_Value_Var_T< + Messaging::ExceptionHolder, + Messaging::tao_ExceptionHolder_life + >; + template class + TAO_Value_Out_T< + Messaging::ExceptionHolder, + Messaging::tao_ExceptionHolder_life + >; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate \ + TAO_Value_Var_T< \ + Messaging::ExceptionHolder, \ + Messaging::tao_ExceptionHolder_life \ + > +# pragma instantiate \ + TAO_Value_Out_T< \ + Messaging::ExceptionHolder, \ + Messaging::tao_ExceptionHolder_life \ + > +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ Messaging::ExceptionHolder * Messaging::ExceptionHolder::_downcast (CORBA::ValueBase *v) @@ -354,7 +189,7 @@ Messaging::ExceptionHolder::_downcast (CORBA::ValueBase *v) { return 0; } - + return (ExceptionHolder *) v->_tao_obv_narrow ((ptr_arith_t) &_downcast); } @@ -375,9 +210,9 @@ Messaging::ExceptionHolder::_tao_obv_narrow (ptr_arith_t type_id) { return this; } - + void *rval = 0; - + return rval; } @@ -424,29 +259,29 @@ CORBA::Boolean Messaging::ExceptionHolder::_tao_unmarshal ( base, ExceptionHolder::_tao_obv_static_repository_id () ); - + if (retval == 0) { return 0; } - + if (factory.in () != 0) { base = factory->create_for_unmarshal (); - + if (base == 0) { return 0; // %! except.? } - + retval = base->_tao_unmarshal_v (strm); - + if (retval == 0) { return 0; } } - + // Now base must be null or point to the unmarshaled object. // Align the pointer to the right subobject. new_object = ExceptionHolder::_downcast (base); @@ -464,7 +299,7 @@ Messaging::ExceptionHolder_init::~ExceptionHolder_init (void) { } -const char* +const char* Messaging::ExceptionHolder_init::tao_repository_id (void) { return Messaging::ExceptionHolder::_tao_obv_static_repository_id (); @@ -488,7 +323,7 @@ Messaging::ExceptionHolder_init::create_for_unmarshal (void) int Messaging::ReplyHandler::_tao_class_id = 0; Messaging::ReplyHandler_ptr -tao_Messaging_ReplyHandler_duplicate ( +Messaging::tao_ReplyHandler_life::tao_duplicate ( Messaging::ReplyHandler_ptr p ) { @@ -496,7 +331,7 @@ tao_Messaging_ReplyHandler_duplicate ( } void -tao_Messaging_ReplyHandler_release ( +Messaging::tao_ReplyHandler_life::tao_release ( Messaging::ReplyHandler_ptr p ) { @@ -504,228 +339,64 @@ tao_Messaging_ReplyHandler_release ( } Messaging::ReplyHandler_ptr -tao_Messaging_ReplyHandler_nil ( +Messaging::tao_ReplyHandler_life::tao_nil ( void ) { return Messaging::ReplyHandler::_nil (); } -Messaging::ReplyHandler_ptr -tao_Messaging_ReplyHandler_narrow ( - CORBA::Object *p - ACE_ENV_ARG_DECL - ) -{ - return Messaging::ReplyHandler::_narrow (p ACE_ENV_ARG_PARAMETER); -} - -CORBA::Object * -tao_Messaging_ReplyHandler_upcast ( - void *src - ) -{ - Messaging::ReplyHandler **tmp = - ACE_static_cast (Messaging::ReplyHandler **, src); - return *tmp; -} - CORBA::Boolean -tao_Messaging_ReplyHandler_marshal ( +Messaging::tao_ReplyHandler_life::tao_marshal ( Messaging::ReplyHandler_ptr p, - TAO_OutputCDR &strm + TAO_OutputCDR &cdr ) { - return p->marshal (strm); -} - -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:721 - -// ************************************************************* -// Messaging::ReplyHandler_var -// ************************************************************* - -Messaging::ReplyHandler_var::ReplyHandler_var (void) - : ptr_ (ReplyHandler::_nil ()) -{} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::ptr (void) const -{ - return this->ptr_; -} - -Messaging::ReplyHandler_var::ReplyHandler_var (const ::Messaging::ReplyHandler_var &p) - : TAO_Base_var (), - ptr_ (ReplyHandler::_duplicate (p.ptr ())) -{} - -Messaging::ReplyHandler_var::~ReplyHandler_var (void) -{ - CORBA::release (this->ptr_); -} - -Messaging::ReplyHandler_var & -Messaging::ReplyHandler_var::operator= (ReplyHandler_ptr p) -{ - CORBA::release (this->ptr_); - this->ptr_ = p; - return *this; -} - -Messaging::ReplyHandler_var & -Messaging::ReplyHandler_var::operator= (const ::Messaging::ReplyHandler_var &p) -{ - if (this != &p) - { - CORBA::release (this->ptr_); - this->ptr_ = ::Messaging::ReplyHandler::_duplicate (p.ptr ()); - } - return *this; -} - -Messaging::ReplyHandler_var::operator const ::Messaging::ReplyHandler_ptr &() const // cast -{ - return this->ptr_; -} - -Messaging::ReplyHandler_var::operator ::Messaging::ReplyHandler_ptr &() // cast -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::operator-> (void) const -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::in (void) const -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr & -Messaging::ReplyHandler_var::inout (void) -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr & -Messaging::ReplyHandler_var::out (void) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::Messaging::ReplyHandler::_nil (); - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::_retn (void) -{ - // yield ownership of managed obj reference - ::Messaging::ReplyHandler_ptr val = this->ptr_; - this->ptr_ = ::Messaging::ReplyHandler::_nil (); - return val; -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::tao_duplicate (ReplyHandler_ptr p) -{ - return ::Messaging::ReplyHandler::_duplicate (p); + return p->marshal (cdr); } -void -Messaging::ReplyHandler_var::tao_release (ReplyHandler_ptr p) -{ - CORBA::release (p); -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::tao_nil (void) -{ - return ::Messaging::ReplyHandler::_nil (); -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_var::tao_narrow ( +Messaging::ReplyHandler_ptr +Messaging::tao_ReplyHandler_cast::tao_narrow ( CORBA::Object *p ACE_ENV_ARG_DECL ) { - return ::Messaging::ReplyHandler::_narrow (p ACE_ENV_ARG_PARAMETER); + return Messaging::ReplyHandler::_narrow (p ACE_ENV_ARG_PARAMETER); } CORBA::Object * -Messaging::ReplyHandler_var::tao_upcast (void *src) +Messaging::tao_ReplyHandler_cast::tao_upcast ( + void *src + ) { - ReplyHandler **tmp = - ACE_static_cast (ReplyHandler **, src); + Messaging::ReplyHandler **tmp = + ACE_static_cast (Messaging::ReplyHandler **, src); return *tmp; } -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_interface.cpp:1030 - -// ************************************************************* -// Messaging::ReplyHandler_out -// ************************************************************* - -Messaging::ReplyHandler_out::ReplyHandler_out (ReplyHandler_ptr &p) - : ptr_ (p) -{ - this->ptr_ = ::Messaging::ReplyHandler::_nil (); -} - -Messaging::ReplyHandler_out::ReplyHandler_out (ReplyHandler_var &p) - : ptr_ (p.out ()) -{ - CORBA::release (this->ptr_); - this->ptr_ = ::Messaging::ReplyHandler::_nil (); -} - -Messaging::ReplyHandler_out::ReplyHandler_out (const ::Messaging::ReplyHandler_out &p) - : ptr_ (ACE_const_cast (ReplyHandler_out &, p).ptr_) -{} - -::Messaging::ReplyHandler_out & -Messaging::ReplyHandler_out::operator= (const ::Messaging::ReplyHandler_out &p) -{ - this->ptr_ = ACE_const_cast (ReplyHandler_out&, p).ptr_; - return *this; -} - -Messaging::ReplyHandler_out & -Messaging::ReplyHandler_out::operator= (const ::Messaging::ReplyHandler_var &p) -{ - this->ptr_ = ::Messaging::ReplyHandler::_duplicate (p.ptr ()); - return *this; -} - -Messaging::ReplyHandler_out & -Messaging::ReplyHandler_out::operator= (ReplyHandler_ptr p) -{ - this->ptr_ = p; - return *this; -} - -Messaging::ReplyHandler_out::operator ::Messaging::ReplyHandler_ptr &() // cast -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr & -Messaging::ReplyHandler_out::ptr (void) -{ - return this->ptr_; -} - -::Messaging::ReplyHandler_ptr -Messaging::ReplyHandler_out::operator-> (void) -{ - return this->ptr_; -} +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + template class + TAO_Objref_Var_T< + Messaging::ReplyHandler, + Messaging::tao_ReplyHandler_life + >; + template class + TAO_Objref_Out_T< + Messaging::ReplyHandler, + Messaging::tao_ReplyHandler_life + >; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate \ + TAO_Objref_Var_T< \ + Messaging::ReplyHandler, \ + Messaging::tao_ReplyHandler_life \ + > +# pragma instantiate \ + TAO_Objref_Out_T< \ + Messaging::ReplyHandler, \ + Messaging::tao_ReplyHandler_life \ + > +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interceptors_cs.cpp:56 @@ -738,7 +409,7 @@ Messaging::ReplyHandler_out::operator-> (void) // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/remote_proxy_impl_cs.cpp:31 /////////////////////////////////////////////////////////////////////// -// Base & Remote Proxy Implementation. +// Base & Remote Proxy Implementation. // Messaging::_TAO_ReplyHandler_Proxy_Impl::_TAO_ReplyHandler_Proxy_Impl (void) @@ -750,7 +421,7 @@ Messaging::_TAO_ReplyHandler_Remote_Proxy_Impl::_TAO_ReplyHandler_Remote_Proxy_I // Remote Implementation of the IDL interface methods // -// End Base & Remote Proxy Implemeentation. +// End Base & Remote Proxy Implemeentation. /////////////////////////////////////////////////////////////////////// // TAO_IDL - Generated from @@ -801,8 +472,8 @@ Messaging::_TAO_ReplyHandler_Remote_Proxy_Broker::select_proxy ( // End Remote & Base Proxy Broker Implementation /////////////////////////////////////////////////////////////////////// -// TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:235 +// TAO_IDL - Generated from +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232 Messaging::ReplyHandler::ReplyHandler (int collocated) { @@ -823,7 +494,7 @@ Messaging::ReplyHandler::Messaging_ReplyHandler_setup_collocation (int collocate Messaging::ReplyHandler::~ReplyHandler (void) {} -void +void Messaging::ReplyHandler::_tao_any_destructor (void *_tao_void_pointer) { ReplyHandler *tmp = ACE_static_cast (ReplyHandler *, _tao_void_pointer); @@ -840,7 +511,7 @@ Messaging::ReplyHandler::_narrow ( { return ReplyHandler::_nil (); } - + if (! obj->_is_local ()) { CORBA::Boolean is_a = @@ -849,17 +520,17 @@ Messaging::ReplyHandler::_narrow ( ACE_ENV_ARG_PARAMETER ); ACE_CHECK_RETURN (ReplyHandler::_nil ()); - + if (is_a == 0) { return ReplyHandler::_nil (); } } - + return ReplyHandler::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } -Messaging::ReplyHandler_ptr +Messaging::ReplyHandler_ptr Messaging::ReplyHandler::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED @@ -869,18 +540,18 @@ Messaging::ReplyHandler::_unchecked_narrow ( { return ReplyHandler::_nil (); } - + if (! obj->_is_local ()) { TAO_Stub* stub = obj->_stubobj (); - + if (stub != 0) { stub->_incr_refcnt (); } - + ReplyHandler_ptr default_proxy = ReplyHandler::_nil (); - + if ( !CORBA::is_nil (stub->servant_orb_var ().ptr ()) && stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects () && @@ -898,7 +569,7 @@ Messaging::ReplyHandler::_unchecked_narrow ( ReplyHandler::_nil () ); } - + if (CORBA::is_nil (default_proxy)) { ACE_NEW_RETURN ( @@ -911,10 +582,10 @@ Messaging::ReplyHandler::_unchecked_narrow ( ReplyHandler::_nil () ); } - + return default_proxy; } - else + else return ACE_reinterpret_cast ( ReplyHandler_ptr, @@ -934,7 +605,7 @@ Messaging::ReplyHandler::_duplicate (ReplyHandler_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -969,7 +640,7 @@ Messaging::ReplyHandler::_is_a ( void *Messaging::ReplyHandler::_tao_QueryInterface (ptr_arith_t type) { void *retv = 0; - + if (type == ACE_reinterpret_cast ( ptr_arith_t, &ACE_NESTED_CLASS (::Messaging, ReplyHandler)::_tao_class_id) @@ -988,12 +659,12 @@ void *Messaging::ReplyHandler::_tao_QueryInterface (ptr_arith_t type) ACE_static_cast (CORBA::Object_ptr, this) ); } - + if (retv != 0) { this->_add_ref (); } - + return retv; } @@ -1002,6 +673,12 @@ const char* Messaging::ReplyHandler::_interface_repository_id (void) const return "IDL:omg.org/Messaging/ReplyHandler:1.0"; } +CORBA::Boolean +Messaging::ReplyHandler::marshal (TAO_OutputCDR &cdr) +{ + return (cdr << this); +} + // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284 @@ -1009,20 +686,20 @@ static const CORBA::Long _oc_Messaging_ReplyHandler[] = { TAO_ENCAP_BYTE_ORDER, // byte order 39, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x4d657373), - ACE_NTOHL (0x6167696e), - ACE_NTOHL (0x672f5265), - ACE_NTOHL (0x706c7948), - ACE_NTOHL (0x616e646c), - ACE_NTOHL (0x65723a31), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x4d657373), + ACE_NTOHL (0x6167696e), + ACE_NTOHL (0x672f5265), + ACE_NTOHL (0x706c7948), + ACE_NTOHL (0x616e646c), + ACE_NTOHL (0x65723a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/ReplyHandler:1.0 13, - ACE_NTOHL (0x5265706c), - ACE_NTOHL (0x7948616e), - ACE_NTOHL (0x646c6572), + ACE_NTOHL (0x5265706c), + ACE_NTOHL (0x7948616e), + ACE_NTOHL (0x646c6572), ACE_NTOHL (0x0), // name = ReplyHandler }; @@ -1062,7 +739,7 @@ OBV_Messaging::ExceptionHolder::_tao_unmarshal__Messaging_ExceptionHolder (TAO_I } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:568 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:567 // Accessor to set the member. void @@ -1080,7 +757,7 @@ OBV_Messaging::ExceptionHolder::is_system_exception (void) const } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:568 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:567 // Accessor to set the member. void @@ -1098,7 +775,7 @@ OBV_Messaging::ExceptionHolder::byte_order (void) const } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:744 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_valuetype/field_cs.cpp:742 // Accessor to set the member. void @@ -1229,7 +906,7 @@ operator>>= ( #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:740 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_valuetype.cpp:270 void CORBA::add_ref (Messaging::ExceptionHolder * vt) @@ -1316,7 +993,7 @@ OBV_Messaging::ExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm) } // TAO_IDL - Generated from -// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/cdr_op_cs.cpp:94 +// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/cdr_op_cs.cpp:63 CORBA::Boolean operator<< ( TAO_OutputCDR &strm, @@ -1335,12 +1012,12 @@ CORBA::Boolean operator>> ( ACE_TRY_NEW_ENV { CORBA::Object_var obj; - + if ((strm >> obj.inout ()) == 0) { return 0; } - + // Narrow to the right type. _tao_objref = Messaging::ReplyHandler::_unchecked_narrow ( @@ -1357,5 +1034,3 @@ CORBA::Boolean operator>> ( ACE_ENDTRY; return 0; } - - |