// -*- C++ -*- // // $Id$ // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** // TAO and the TAO IDL Compiler have been developed by: // Center for Distributed Object Computing // Washington University // St. Louis, MO // USA // http://www.cs.wustl.edu/~schmidt/doc-center.html // and // Distributed Object Computing Laboratory // University of California at Irvine // Irvine, CA // USA // http://doc.ece.uci.edu/ // // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314 #include "PollableC.h" #if (TAO_HAS_AMI_POLLER == 1) #include "tao/Stub.h" #include "tao/Invocation.h" #include "tao/PortableInterceptor.h" #if TAO_HAS_INTERCEPTORS == 1 #include "tao/RequestInfo_Util.h" #include "tao/ClientRequestInfo_i.h" #include "tao/ClientInterceptorAdapter.h" #endif /* TAO_HAS_INTERCEPTORS == 1 */ #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig #endif /* __BORLANDC__ */ #if !defined (__ACE_INLINE__) #include "PollableC.i" #endif /* !defined INLINE */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 int CORBA::Pollable::_tao_class_id = 0; CORBA::Pollable_ptr CORBA::tao_Pollable_life::tao_duplicate ( CORBA::Pollable_ptr p ) { return CORBA::Pollable::_duplicate (p); } void CORBA::tao_Pollable_life::tao_release ( CORBA::Pollable_ptr p ) { CORBA::release (p); } CORBA::Pollable_ptr CORBA::tao_Pollable_life::tao_nil ( void ) { return CORBA::Pollable::_nil (); } CORBA::Boolean CORBA::tao_Pollable_life::tao_marshal ( CORBA::Pollable_ptr p, TAO_OutputCDR &cdr ) { return p->marshal (cdr); } CORBA::Pollable_ptr CORBA::tao_Pollable_cast::tao_narrow ( CORBA::Object *p ACE_ENV_ARG_DECL ) { return CORBA::Pollable::_narrow (p ACE_ENV_ARG_PARAMETER); } CORBA::Object * CORBA::tao_Pollable_cast::tao_upcast ( void *src ) { CORBA::Pollable **tmp = ACE_static_cast (CORBA::Pollable **, src); return *tmp; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class TAO_Objref_Var_T< CORBA::Pollable, CORBA::tao_Pollable_life >; template class TAO_Objref_Out_T< CORBA::Pollable, CORBA::tao_Pollable_life >; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::Pollable, \ CORBA::tao_Pollable_life \ > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::Pollable, \ CORBA::tao_Pollable_life \ > #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232 CORBA::Pollable::Pollable (void) {} CORBA::Pollable::~Pollable (void) {} CORBA::Pollable_ptr CORBA::Pollable::_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) { return Pollable::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } CORBA::Pollable_ptr CORBA::Pollable::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (obj)) { return Pollable::_nil (); } return ACE_reinterpret_cast ( Pollable_ptr, obj->_tao_QueryInterface ( ACE_reinterpret_cast ( ptrdiff_t, &Pollable::_tao_class_id ) ) ); } CORBA::Pollable_ptr CORBA::Pollable::_duplicate (Pollable_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void *CORBA::Pollable::_tao_QueryInterface (ptrdiff_t type) { void *retv = 0; if (type == ACE_reinterpret_cast ( ptrdiff_t, &ACE_NESTED_CLASS (::CORBA, Pollable)::_tao_class_id) ) { retv = ACE_reinterpret_cast (void*, this); } else if (type == ACE_reinterpret_cast ( ptrdiff_t, &CORBA::Object::_tao_class_id) ) { retv = ACE_reinterpret_cast ( void *, ACE_static_cast (CORBA::Object_ptr, this) ); } if (retv != 0) { this->_add_ref (); } return retv; } const char* CORBA::Pollable::_interface_repository_id (void) const { return "IDL:omg.org/CORBA/Pollable:1.0"; } CORBA::Boolean CORBA::Pollable::marshal (TAO_OutputCDR &) { return 0; } // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 int CORBA::DIIPollable::_tao_class_id = 0; CORBA::DIIPollable_ptr CORBA::tao_DIIPollable_life::tao_duplicate ( CORBA::DIIPollable_ptr p ) { return CORBA::DIIPollable::_duplicate (p); } void CORBA::tao_DIIPollable_life::tao_release ( CORBA::DIIPollable_ptr p ) { CORBA::release (p); } CORBA::DIIPollable_ptr CORBA::tao_DIIPollable_life::tao_nil ( void ) { return CORBA::DIIPollable::_nil (); } CORBA::Boolean CORBA::tao_DIIPollable_life::tao_marshal ( CORBA::DIIPollable_ptr p, TAO_OutputCDR &cdr ) { return p->marshal (cdr); } CORBA::DIIPollable_ptr CORBA::tao_DIIPollable_cast::tao_narrow ( CORBA::Object *p ACE_ENV_ARG_DECL ) { return CORBA::DIIPollable::_narrow (p ACE_ENV_ARG_PARAMETER); } CORBA::Object * CORBA::tao_DIIPollable_cast::tao_upcast ( void *src ) { CORBA::DIIPollable **tmp = ACE_static_cast (CORBA::DIIPollable **, src); return *tmp; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class TAO_Objref_Var_T< CORBA::DIIPollable, CORBA::tao_DIIPollable_life >; template class TAO_Objref_Out_T< CORBA::DIIPollable, CORBA::tao_DIIPollable_life >; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::DIIPollable, \ CORBA::tao_DIIPollable_life \ > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::DIIPollable, \ CORBA::tao_DIIPollable_life \ > #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232 CORBA::DIIPollable::DIIPollable (void) {} CORBA::DIIPollable::~DIIPollable (void) {} CORBA::DIIPollable_ptr CORBA::DIIPollable::_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) { return DIIPollable::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } CORBA::DIIPollable_ptr CORBA::DIIPollable::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (obj)) { return DIIPollable::_nil (); } return ACE_reinterpret_cast ( DIIPollable_ptr, obj->_tao_QueryInterface ( ACE_reinterpret_cast ( ptrdiff_t, &DIIPollable::_tao_class_id ) ) ); } CORBA::DIIPollable_ptr CORBA::DIIPollable::_duplicate (DIIPollable_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void *CORBA::DIIPollable::_tao_QueryInterface (ptrdiff_t type) { void *retv = 0; if (type == ACE_reinterpret_cast ( ptrdiff_t, &ACE_NESTED_CLASS (::CORBA, DIIPollable)::_tao_class_id) ) { retv = ACE_reinterpret_cast (void*, this); } else if (type == ACE_reinterpret_cast ( ptrdiff_t, &ACE_NESTED_CLASS (::CORBA, Pollable)::_tao_class_id) ) { retv = ACE_reinterpret_cast ( void *, ACE_static_cast ( CORBA::Pollable_ptr, this ) ); } else if (type == ACE_reinterpret_cast ( ptrdiff_t, &CORBA::Object::_tao_class_id) ) { retv = ACE_reinterpret_cast ( void *, ACE_static_cast (CORBA::Object_ptr, this) ); } if (retv != 0) { this->_add_ref (); } return retv; } const char* CORBA::DIIPollable::_interface_repository_id (void) const { return "IDL:omg.org/CORBA/DIIPollable:1.0"; } CORBA::Boolean CORBA::DIIPollable::marshal (TAO_OutputCDR &) { return 0; } // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61 int CORBA::PollableSet::_tao_class_id = 0; CORBA::PollableSet_ptr CORBA::tao_PollableSet_life::tao_duplicate ( CORBA::PollableSet_ptr p ) { return CORBA::PollableSet::_duplicate (p); } void CORBA::tao_PollableSet_life::tao_release ( CORBA::PollableSet_ptr p ) { CORBA::release (p); } CORBA::PollableSet_ptr CORBA::tao_PollableSet_life::tao_nil ( void ) { return CORBA::PollableSet::_nil (); } CORBA::Boolean CORBA::tao_PollableSet_life::tao_marshal ( CORBA::PollableSet_ptr p, TAO_OutputCDR &cdr ) { return p->marshal (cdr); } CORBA::PollableSet_ptr CORBA::tao_PollableSet_cast::tao_narrow ( CORBA::Object *p ACE_ENV_ARG_DECL ) { return CORBA::PollableSet::_narrow (p ACE_ENV_ARG_PARAMETER); } CORBA::Object * CORBA::tao_PollableSet_cast::tao_upcast ( void *src ) { CORBA::PollableSet **tmp = ACE_static_cast (CORBA::PollableSet **, src); return *tmp; } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class TAO_Objref_Var_T< CORBA::PollableSet, CORBA::tao_PollableSet_life >; template class TAO_Objref_Out_T< CORBA::PollableSet, CORBA::tao_PollableSet_life >; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::PollableSet, \ CORBA::tao_PollableSet_life \ > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::PollableSet, \ CORBA::tao_PollableSet_life \ > #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232 CORBA::PollableSet::PollableSet (void) {} CORBA::PollableSet::~PollableSet (void) {} CORBA::PollableSet_ptr CORBA::PollableSet::_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL ) { return PollableSet::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER); } CORBA::PollableSet_ptr CORBA::PollableSet::_unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (obj)) { return PollableSet::_nil (); } return ACE_reinterpret_cast ( PollableSet_ptr, obj->_tao_QueryInterface ( ACE_reinterpret_cast ( ptrdiff_t, &PollableSet::_tao_class_id ) ) ); } CORBA::PollableSet_ptr CORBA::PollableSet::_duplicate (PollableSet_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void *CORBA::PollableSet::_tao_QueryInterface (ptrdiff_t type) { void *retv = 0; if (type == ACE_reinterpret_cast ( ptrdiff_t, &ACE_NESTED_CLASS (::CORBA, PollableSet)::_tao_class_id) ) { retv = ACE_reinterpret_cast (void*, this); } else if (type == ACE_reinterpret_cast ( ptrdiff_t, &CORBA::Object::_tao_class_id) ) { retv = ACE_reinterpret_cast ( void *, ACE_static_cast (CORBA::Object_ptr, this) ); } if (retv != 0) { this->_add_ref (); } return retv; } const char* CORBA::PollableSet::_interface_repository_id (void) const { return "IDL:omg.org/CORBA/PollableSet:1.0"; } CORBA::Boolean CORBA::PollableSet::marshal (TAO_OutputCDR &) { return 0; } // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 CORBA::PollableSet::NoPossiblePollable::NoPossiblePollable (void) : CORBA::UserException ( "IDL:omg.org/CORBA/PollableSet/NoPossiblePollable:1.0", "NoPossiblePollable" ) { } CORBA::PollableSet::NoPossiblePollable::~NoPossiblePollable (void) { } CORBA::PollableSet::NoPossiblePollable::NoPossiblePollable (const ::CORBA::PollableSet::NoPossiblePollable &_tao_excp) : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) { } CORBA::PollableSet::NoPossiblePollable& CORBA::PollableSet::NoPossiblePollable::operator= (const ::CORBA::PollableSet::NoPossiblePollable &_tao_excp) { this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); return *this; } CORBA::PollableSet::NoPossiblePollable * CORBA::PollableSet::NoPossiblePollable::_downcast (CORBA::Exception *_tao_excp) { if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PollableSet/NoPossiblePollable:1.0", _tao_excp->_rep_id ())) { return ACE_dynamic_cast (NoPossiblePollable *, _tao_excp); } else { return 0; } } CORBA::Exception *CORBA::PollableSet::NoPossiblePollable::_alloc (void) { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::CORBA::PollableSet::NoPossiblePollable, 0); return retval; } CORBA::Exception * CORBA::PollableSet::NoPossiblePollable::_tao_duplicate (void) const { CORBA::Exception *result; ACE_NEW_RETURN ( result, ::CORBA::PollableSet::NoPossiblePollable (*this), 0 ); return result; } void CORBA::PollableSet::NoPossiblePollable::_raise (void) const const { TAO_RAISE (*this); } void CORBA::PollableSet::NoPossiblePollable::_tao_encode ( TAO_OutputCDR & ACE_ENV_ARG_DECL ) const { ACE_THROW (CORBA::MARSHAL ()); } void CORBA::PollableSet::NoPossiblePollable::_tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ) { ACE_THROW (CORBA::MARSHAL ()); } // TAO_IDL - Generated from // W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63 CORBA::PollableSet::UnknownPollable::UnknownPollable (void) : CORBA::UserException ( "IDL:omg.org/CORBA/PollableSet/UnknownPollable:1.0", "UnknownPollable" ) { } CORBA::PollableSet::UnknownPollable::~UnknownPollable (void) { } CORBA::PollableSet::UnknownPollable::UnknownPollable (const ::CORBA::PollableSet::UnknownPollable &_tao_excp) : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) { } CORBA::PollableSet::UnknownPollable& CORBA::PollableSet::UnknownPollable::operator= (const ::CORBA::PollableSet::UnknownPollable &_tao_excp) { this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); return *this; } CORBA::PollableSet::UnknownPollable * CORBA::PollableSet::UnknownPollable::_downcast (CORBA::Exception *_tao_excp) { if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PollableSet/UnknownPollable:1.0", _tao_excp->_rep_id ())) { return ACE_dynamic_cast (UnknownPollable *, _tao_excp); } else { return 0; } } CORBA::Exception *CORBA::PollableSet::UnknownPollable::_alloc (void) { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::CORBA::PollableSet::UnknownPollable, 0); return retval; } CORBA::Exception * CORBA::PollableSet::UnknownPollable::_tao_duplicate (void) const { CORBA::Exception *result; ACE_NEW_RETURN ( result, ::CORBA::PollableSet::UnknownPollable (*this), 0 ); return result; } void CORBA::PollableSet::UnknownPollable::_raise (void) const const { TAO_RAISE (*this); } void CORBA::PollableSet::UnknownPollable::_tao_encode ( TAO_OutputCDR & ACE_ENV_ARG_DECL ) const { ACE_THROW (CORBA::MARSHAL ()); } void CORBA::PollableSet::UnknownPollable::_tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ) { ACE_THROW (CORBA::MARSHAL ()); } #endif /* TAO_HAS_AMI_POLLER == 1 */