// -*- 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/ // and // Institute for Software Integrated Systems // Vanderbilt University // Nashville, TN // USA // http://www.isis.vanderbilt.edu/ // // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from // be\be_codegen.cpp:302 #include "PollableC.h" #include "tao/CDR.h" #include "ace/OS_NS_string.h" #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig #endif /* __BORLANDC__ */ #if !defined (__ACE_INLINE__) #include "PollableC.inl" #endif /* !defined INLINE */ // TAO_IDL - Generated from // be\be_visitor_arg_traits.cpp:69 // Arg traits specializations. namespace TAO { } // TAO_IDL - Generated from // be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for CORBA::Pollable. CORBA::Pollable_ptr TAO::Objref_Traits::duplicate ( CORBA::Pollable_ptr p ) { return CORBA::Pollable::_duplicate (p); } void TAO::Objref_Traits::release ( CORBA::Pollable_ptr p ) { CORBA::release (p); } CORBA::Pollable_ptr TAO::Objref_Traits::nil (void) { return CORBA::Pollable::_nil (); } CORBA::Boolean TAO::Objref_Traits::marshal ( CORBA::Pollable_ptr p, TAO_OutputCDR & cdr ) { return CORBA::Object::marshal (p, cdr); } CORBA::Pollable::Pollable (void) {} CORBA::Pollable::~Pollable (void) {} CORBA::Pollable_ptr CORBA::Pollable::_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return Pollable::_nil (); } Pollable_ptr proxy = dynamic_cast (_tao_objref); return Pollable::_duplicate (proxy); } CORBA::Pollable_ptr CORBA::Pollable::_unchecked_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return Pollable::_nil (); } Pollable_ptr proxy = dynamic_cast (_tao_objref); return Pollable::_duplicate (proxy); } CORBA::Pollable_ptr CORBA::Pollable::_duplicate (Pollable_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void CORBA::Pollable::_tao_release (Pollable_ptr obj) { CORBA::release (obj); } CORBA::Boolean CORBA::Pollable::_is_a ( const char *value ACE_ENV_ARG_DECL_NOT_USED ) { if ( !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/Pollable:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/LocalObject:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/Object:1.0" ) ) { return true; // success using local knowledge } else { return false; } } 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 false; } // TAO_IDL - Generated from // be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for CORBA::DIIPollable. CORBA::DIIPollable_ptr TAO::Objref_Traits::duplicate ( CORBA::DIIPollable_ptr p ) { return CORBA::DIIPollable::_duplicate (p); } void TAO::Objref_Traits::release ( CORBA::DIIPollable_ptr p ) { CORBA::release (p); } CORBA::DIIPollable_ptr TAO::Objref_Traits::nil (void) { return CORBA::DIIPollable::_nil (); } CORBA::Boolean TAO::Objref_Traits::marshal ( CORBA::DIIPollable_ptr p, TAO_OutputCDR & cdr ) { return CORBA::Object::marshal (p, cdr); } CORBA::DIIPollable::DIIPollable (void) {} CORBA::DIIPollable::~DIIPollable (void) {} CORBA::DIIPollable_ptr CORBA::DIIPollable::_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return DIIPollable::_nil (); } DIIPollable_ptr proxy = dynamic_cast (_tao_objref); return DIIPollable::_duplicate (proxy); } CORBA::DIIPollable_ptr CORBA::DIIPollable::_unchecked_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return DIIPollable::_nil (); } DIIPollable_ptr proxy = dynamic_cast (_tao_objref); return DIIPollable::_duplicate (proxy); } CORBA::DIIPollable_ptr CORBA::DIIPollable::_duplicate (DIIPollable_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void CORBA::DIIPollable::_tao_release (DIIPollable_ptr obj) { CORBA::release (obj); } CORBA::Boolean CORBA::DIIPollable::_is_a ( const char *value ACE_ENV_ARG_DECL_NOT_USED ) { if ( !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/Pollable:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/DIIPollable:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/LocalObject:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/Object:1.0" ) ) { return true; // success using local knowledge } else { return false; } } 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 false; } // TAO_IDL - Generated from // be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for CORBA::PollableSet. CORBA::PollableSet_ptr TAO::Objref_Traits::duplicate ( CORBA::PollableSet_ptr p ) { return CORBA::PollableSet::_duplicate (p); } void TAO::Objref_Traits::release ( CORBA::PollableSet_ptr p ) { CORBA::release (p); } CORBA::PollableSet_ptr TAO::Objref_Traits::nil (void) { return CORBA::PollableSet::_nil (); } CORBA::Boolean TAO::Objref_Traits::marshal ( CORBA::PollableSet_ptr p, TAO_OutputCDR & cdr ) { return CORBA::Object::marshal (p, cdr); } // TAO_IDL - Generated from // 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) { return dynamic_cast (_tao_excp); } const CORBA::PollableSet::NoPossiblePollable * CORBA::PollableSet::NoPossiblePollable::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast (_tao_excp); } 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 = 0; ACE_NEW_RETURN ( result, ::CORBA::PollableSet::NoPossiblePollable (*this), 0 ); return result; } void CORBA::PollableSet::NoPossiblePollable::_raise (void) 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 // 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) { return dynamic_cast (_tao_excp); } const CORBA::PollableSet::UnknownPollable * CORBA::PollableSet::UnknownPollable::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast (_tao_excp); } 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 = 0; ACE_NEW_RETURN ( result, ::CORBA::PollableSet::UnknownPollable (*this), 0 ); return result; } void CORBA::PollableSet::UnknownPollable::_raise (void) 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 ()); } CORBA::PollableSet::PollableSet (void) {} CORBA::PollableSet::~PollableSet (void) {} CORBA::PollableSet_ptr CORBA::PollableSet::_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return PollableSet::_nil (); } PollableSet_ptr proxy = dynamic_cast (_tao_objref); return PollableSet::_duplicate (proxy); } CORBA::PollableSet_ptr CORBA::PollableSet::_unchecked_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return PollableSet::_nil (); } PollableSet_ptr proxy = dynamic_cast (_tao_objref); return PollableSet::_duplicate (proxy); } CORBA::PollableSet_ptr CORBA::PollableSet::_duplicate (PollableSet_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void CORBA::PollableSet::_tao_release (PollableSet_ptr obj) { CORBA::release (obj); } CORBA::Boolean CORBA::PollableSet::_is_a ( const char *value ACE_ENV_ARG_DECL_NOT_USED ) { if ( !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/PollableSet:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/LocalObject:1.0" ) || !ACE_OS::strcmp ( value, "IDL:omg.org/CORBA/Object:1.0" ) ) { return true; // success using local knowledge } else { return false; } } 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 false; } // TAO_IDL - Generated from // be\be_visitor_root/root.cpp:1619 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class TAO::Objref_Traits< CORBA::PollableSet >; template class TAO_Objref_Var_T< CORBA::PollableSet >; template class TAO_Objref_Out_T< CORBA::PollableSet >; template class TAO::Objref_Traits< CORBA::Pollable >; template class TAO_Objref_Var_T< CORBA::Pollable >; template class TAO_Objref_Out_T< CORBA::Pollable >; template class TAO::Objref_Traits< CORBA::DIIPollable >; template class TAO_Objref_Var_T< CORBA::DIIPollable >; template class TAO_Objref_Out_T< CORBA::DIIPollable >; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) # pragma instantiate \ TAO::Objref_Traits< \ CORBA::PollableSet \ > # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::PollableSet > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::PollableSet > # pragma instantiate \ TAO::Objref_Traits< \ CORBA::Pollable \ > # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::Pollable > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::Pollable > # pragma instantiate \ TAO::Objref_Traits< \ CORBA::DIIPollable \ > # pragma instantiate \ TAO_Objref_Var_T< \ CORBA::DIIPollable > # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::DIIPollable > #endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */