// -*- 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:291 #include "ORBInitInfoC.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__ */ // TAO_IDL - Generated from // .\be\be_visitor_arg_traits.cpp:69 // Arg traits specializations. namespace TAO { } // TAO_IDL - Generated from // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for PortableInterceptor::ORBInitInfo. PortableInterceptor::ORBInitInfo_ptr TAO::Objref_Traits::duplicate ( PortableInterceptor::ORBInitInfo_ptr p ) { return PortableInterceptor::ORBInitInfo::_duplicate (p); } void TAO::Objref_Traits::release ( PortableInterceptor::ORBInitInfo_ptr p ) { CORBA::release (p); } PortableInterceptor::ORBInitInfo_ptr TAO::Objref_Traits::nil (void) { return PortableInterceptor::ORBInitInfo::_nil (); } CORBA::Boolean TAO::Objref_Traits::marshal ( PortableInterceptor::ORBInitInfo_ptr p, TAO_OutputCDR & cdr ) { return CORBA::Object::marshal (p, cdr); } // TAO_IDL - Generated from // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_exception/exception_cs.cpp:63 PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (void) : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0", "DuplicateName" ) { } PortableInterceptor::ORBInitInfo::DuplicateName::~DuplicateName (void) { } PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (const ::PortableInterceptor::ORBInitInfo::DuplicateName &_tao_excp) : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) { this->name = CORBA::string_dup (_tao_excp.name.in ()); } PortableInterceptor::ORBInitInfo::DuplicateName& PortableInterceptor::ORBInitInfo::DuplicateName::operator= (const ::PortableInterceptor::ORBInitInfo::DuplicateName &_tao_excp) { this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); this->name = CORBA::string_dup (_tao_excp.name.in ()); return *this; } void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor (void *_tao_void_pointer) { DuplicateName *_tao_tmp_pointer = static_cast (_tao_void_pointer); delete _tao_tmp_pointer; } PortableInterceptor::ORBInitInfo::DuplicateName * PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception *_tao_excp) { return dynamic_cast (_tao_excp); } const PortableInterceptor::ORBInitInfo::DuplicateName * PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast (_tao_excp); } CORBA::Exception *PortableInterceptor::ORBInitInfo::DuplicateName::_alloc (void) { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::DuplicateName, 0); return retval; } CORBA::Exception * PortableInterceptor::ORBInitInfo::DuplicateName::_tao_duplicate (void) const { CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, ::PortableInterceptor::ORBInitInfo::DuplicateName (*this), 0 ); return result; } void PortableInterceptor::ORBInitInfo::DuplicateName::_raise (void) const { TAO_RAISE (*this); } void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_encode ( TAO_OutputCDR & ACE_ENV_ARG_DECL ) const { ACE_THROW (CORBA::MARSHAL ()); } void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ) { ACE_THROW (CORBA::MARSHAL ()); } // TAO_IDL - Generated from // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_exception/exception_ctor.cpp:66 PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName ( const char * _tao_name ) : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0", "DuplicateName" ) { this->name = CORBA::string_dup (_tao_name); } // TAO extension - the virtual _type method. CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::DuplicateName::_tao_type (void) const { return ::PortableInterceptor::ORBInitInfo::_tc_DuplicateName; } // TAO_IDL - Generated from // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_exception/exception_cs.cpp:63 PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (void) : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0", "InvalidName" ) { } PortableInterceptor::ORBInitInfo::InvalidName::~InvalidName (void) { } PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp) : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) { } PortableInterceptor::ORBInitInfo::InvalidName& PortableInterceptor::ORBInitInfo::InvalidName::operator= (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp) { this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); return *this; } void PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor (void *_tao_void_pointer) { InvalidName *_tao_tmp_pointer = static_cast (_tao_void_pointer); delete _tao_tmp_pointer; } PortableInterceptor::ORBInitInfo::InvalidName * PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception *_tao_excp) { return dynamic_cast (_tao_excp); } const PortableInterceptor::ORBInitInfo::InvalidName * PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast (_tao_excp); } CORBA::Exception *PortableInterceptor::ORBInitInfo::InvalidName::_alloc (void) { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::InvalidName, 0); return retval; } CORBA::Exception * PortableInterceptor::ORBInitInfo::InvalidName::_tao_duplicate (void) const { CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, ::PortableInterceptor::ORBInitInfo::InvalidName (*this), 0 ); return result; } void PortableInterceptor::ORBInitInfo::InvalidName::_raise (void) const { TAO_RAISE (*this); } void PortableInterceptor::ORBInitInfo::InvalidName::_tao_encode ( TAO_OutputCDR & ACE_ENV_ARG_DECL ) const { ACE_THROW (CORBA::MARSHAL ()); } void PortableInterceptor::ORBInitInfo::InvalidName::_tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ) { ACE_THROW (CORBA::MARSHAL ()); } // TAO extension - the virtual _type method. CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::InvalidName::_tao_type (void) const { return ::PortableInterceptor::ORBInitInfo::_tc_InvalidName; } PortableInterceptor::ORBInitInfo::ORBInitInfo (void) {} PortableInterceptor::ORBInitInfo::~ORBInitInfo (void) {} void PortableInterceptor::ORBInitInfo::_tao_any_destructor (void *_tao_void_pointer) { ORBInitInfo *_tao_tmp_pointer = static_cast (_tao_void_pointer); CORBA::release (_tao_tmp_pointer); } PortableInterceptor::ORBInitInfo_ptr PortableInterceptor::ORBInitInfo::_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return ORBInitInfo::_nil (); } ORBInitInfo_ptr proxy = dynamic_cast (_tao_objref); return ORBInitInfo::_duplicate (proxy); } PortableInterceptor::ORBInitInfo_ptr PortableInterceptor::ORBInitInfo::_unchecked_narrow ( CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { if (CORBA::is_nil (_tao_objref)) { return ORBInitInfo::_nil (); } ORBInitInfo_ptr proxy = dynamic_cast (_tao_objref); return ORBInitInfo::_duplicate (proxy); } PortableInterceptor::ORBInitInfo_ptr PortableInterceptor::ORBInitInfo::_duplicate (ORBInitInfo_ptr obj) { if (! CORBA::is_nil (obj)) { obj->_add_ref (); } return obj; } void PortableInterceptor::ORBInitInfo::_tao_release (ORBInitInfo_ptr obj) { CORBA::release (obj); } CORBA::Boolean PortableInterceptor::ORBInitInfo::_is_a ( const char *value ACE_ENV_ARG_DECL_NOT_USED ) { if ( !ACE_OS::strcmp ( value, "IDL:omg.org/PortableInterceptor/ORBInitInfo: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* PortableInterceptor::ORBInitInfo::_interface_repository_id (void) const { return "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0"; } CORBA::Boolean PortableInterceptor::ORBInitInfo::marshal (TAO_OutputCDR &) { return false; }