diff options
Diffstat (limited to 'TAO/tao/PI/ORBInitInfoC.cpp')
-rw-r--r-- | TAO/tao/PI/ORBInitInfoC.cpp | 335 |
1 files changed, 56 insertions, 279 deletions
diff --git a/TAO/tao/PI/ORBInitInfoC.cpp b/TAO/tao/PI/ORBInitInfoC.cpp index 6fee3193261..33580f1f439 100644 --- a/TAO/tao/PI/ORBInitInfoC.cpp +++ b/TAO/tao/PI/ORBInitInfoC.cpp @@ -26,29 +26,19 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be/be_codegen.cpp:292 +// be\be_codegen.cpp:291 -#include "tao/PI/ORBInitInfoC.h" -#include "tao/AnyTypeCode/Null_RefCount_Policy.h" -#include "tao/AnyTypeCode/TypeCode_Constants.h" -#include "tao/AnyTypeCode/Alias_TypeCode_Static.h" -#include "tao/AnyTypeCode/Objref_TypeCode_Static.h" -#include "tao/AnyTypeCode/String_TypeCode_Static.h" -#include "tao/AnyTypeCode/Struct_TypeCode_Static.h" -#include "tao/AnyTypeCode/TypeCode_Struct_Field.h" +#include "ORBInitInfoC.h" #include "tao/CDR.h" -#include "tao/AnyTypeCode/Any.h" -#include "tao/AnyTypeCode/Any_Impl_T.h" -#include "tao/AnyTypeCode/Any_Dual_Impl_T.h" #include "ace/OS_NS_string.h" -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - - +#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:70 +// be\be_visitor_arg_traits.cpp:70 // Arg traits specializations. namespace TAO @@ -57,7 +47,7 @@ namespace TAO // TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:60 +// be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for PortableInterceptor::ORBInitInfo. @@ -83,35 +73,20 @@ TAO::Objref_Traits<PortableInterceptor::ORBInitInfo>::nil (void) return PortableInterceptor::ORBInitInfo::_nil (); } -::CORBA::Boolean +CORBA::Boolean TAO::Objref_Traits<PortableInterceptor::ORBInitInfo>::marshal ( - const PortableInterceptor::ORBInitInfo_ptr p, + PortableInterceptor::ORBInitInfo_ptr p, TAO_OutputCDR & cdr ) { - return ::CORBA::Object::marshal (p, cdr); + return CORBA::Object::marshal (p, cdr); } -// TAO_IDL - Generated from -// be/be_visitor_typecode/alias_typecode.cpp:50 - -static TAO::TypeCode::Alias<char const *, - ::CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy> - _tao_tc_PortableInterceptor_ORBInitInfo_ObjectId ( - ::CORBA::tk_alias, - "IDL:omg.org/PortableInterceptor/ORBInitInfo/ObjectId:1.0", - "ObjectId", - &CORBA::_tc_string); - -::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_ObjectId = - &_tao_tc_PortableInterceptor_ORBInitInfo_ObjectId; - -// TAO_IDL - Generated from -// be/be_visitor_exception/exception_cs.cpp:63 +// TAO_IDL - Generated from +// be\be_visitor_exception/exception_cs.cpp:63 PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (void) - : ::CORBA::UserException ( + : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0", "DuplicateName" ) @@ -123,19 +98,19 @@ PortableInterceptor::ORBInitInfo::DuplicateName::~DuplicateName (void) } PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (const ::PortableInterceptor::ORBInitInfo::DuplicateName &_tao_excp) - : ::CORBA::UserException ( + : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) { - this->name = ::CORBA::string_dup (_tao_excp.name.in ()); + 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 ()); + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + this->name = CORBA::string_dup (_tao_excp.name.in ()); return *this; } @@ -147,28 +122,28 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor (void } PortableInterceptor::ORBInitInfo::DuplicateName * -PortableInterceptor::ORBInitInfo::DuplicateName::_downcast ( ::CORBA::Exception *_tao_excp) +PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception *_tao_excp) { return dynamic_cast<DuplicateName *> (_tao_excp); } const PortableInterceptor::ORBInitInfo::DuplicateName * -PortableInterceptor::ORBInitInfo::DuplicateName::_downcast ( ::CORBA::Exception const *_tao_excp) +PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast<const DuplicateName *> (_tao_excp); } -::CORBA::Exception *PortableInterceptor::ORBInitInfo::DuplicateName::_alloc (void) +CORBA::Exception *PortableInterceptor::ORBInitInfo::DuplicateName::_alloc (void) { - ::CORBA::Exception *retval = 0; + CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::DuplicateName, 0); return retval; } -::CORBA::Exception * +CORBA::Exception * PortableInterceptor::ORBInitInfo::DuplicateName::_tao_duplicate (void) const { - ::CORBA::Exception *result = 0; + CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, ::PortableInterceptor::ORBInitInfo::DuplicateName (*this), @@ -187,7 +162,7 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_encode ( ACE_ENV_ARG_DECL ) const { - ACE_THROW ( ::CORBA::MARSHAL ()); + ACE_THROW (CORBA::MARSHAL ()); } void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_decode ( @@ -195,58 +170,36 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_decode ( ACE_ENV_ARG_DECL ) { - ACE_THROW ( ::CORBA::MARSHAL ()); + ACE_THROW (CORBA::MARSHAL ()); } // TAO_IDL - Generated from -// be/be_visitor_exception/exception_ctor.cpp:66 +// be\be_visitor_exception/exception_ctor.cpp:66 PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName ( const char * _tao_name ) - : ::CORBA::UserException ( + : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0", "DuplicateName" ) { - this->name = ::CORBA::string_dup (_tao_name); + this->name = CORBA::string_dup (_tao_name); } // TAO extension - the virtual _type method. -::CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::DuplicateName::_tao_type (void) const +CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::DuplicateName::_tao_type (void) const { return ::PortableInterceptor::ORBInitInfo::_tc_DuplicateName; } -// TAO_IDL - Generated from -// be/be_visitor_typecode/struct_typecode.cpp:89 - -static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName[] = - { - { "name", &CORBA::_tc_string } - - }; -static TAO::TypeCode::Struct<char const *, - ::CORBA::TypeCode_ptr const *, - TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy> - _tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName ( - ::CORBA::tk_except, - "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0", - "DuplicateName", - _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName, - 1); - -::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_DuplicateName = - &_tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName; - -// TAO_IDL - Generated from -// be/be_visitor_exception/exception_cs.cpp:63 +// TAO_IDL - Generated from +// be\be_visitor_exception/exception_cs.cpp:63 PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (void) - : ::CORBA::UserException ( + : CORBA::UserException ( "IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0", "InvalidName" ) @@ -258,7 +211,7 @@ PortableInterceptor::ORBInitInfo::InvalidName::~InvalidName (void) } PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp) - : ::CORBA::UserException ( + : CORBA::UserException ( _tao_excp._rep_id (), _tao_excp._name () ) @@ -268,7 +221,7 @@ PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (const ::PortableInte PortableInterceptor::ORBInitInfo::InvalidName& PortableInterceptor::ORBInitInfo::InvalidName::operator= (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp) { - this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp); + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); return *this; } @@ -280,28 +233,28 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor (void *_ } PortableInterceptor::ORBInitInfo::InvalidName * -PortableInterceptor::ORBInitInfo::InvalidName::_downcast ( ::CORBA::Exception *_tao_excp) +PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception *_tao_excp) { return dynamic_cast<InvalidName *> (_tao_excp); } const PortableInterceptor::ORBInitInfo::InvalidName * -PortableInterceptor::ORBInitInfo::InvalidName::_downcast ( ::CORBA::Exception const *_tao_excp) +PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception const *_tao_excp) { return dynamic_cast<const InvalidName *> (_tao_excp); } -::CORBA::Exception *PortableInterceptor::ORBInitInfo::InvalidName::_alloc (void) +CORBA::Exception *PortableInterceptor::ORBInitInfo::InvalidName::_alloc (void) { - ::CORBA::Exception *retval = 0; + CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::InvalidName, 0); return retval; } -::CORBA::Exception * +CORBA::Exception * PortableInterceptor::ORBInitInfo::InvalidName::_tao_duplicate (void) const { - ::CORBA::Exception *result = 0; + CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, ::PortableInterceptor::ORBInitInfo::InvalidName (*this), @@ -320,7 +273,7 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_encode ( ACE_ENV_ARG_DECL ) const { - ACE_THROW ( ::CORBA::MARSHAL ()); + ACE_THROW (CORBA::MARSHAL ()); } void PortableInterceptor::ORBInitInfo::InvalidName::_tao_decode ( @@ -328,42 +281,32 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_decode ( ACE_ENV_ARG_DECL ) { - ACE_THROW ( ::CORBA::MARSHAL ()); + ACE_THROW (CORBA::MARSHAL ()); } // TAO extension - the virtual _type method. -::CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::InvalidName::_tao_type (void) const +CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::InvalidName::_tao_type (void) const { return ::PortableInterceptor::ORBInitInfo::_tc_InvalidName; } -// TAO_IDL - Generated from -// be/be_visitor_typecode/struct_typecode.cpp:89 - -static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName = 0; -static TAO::TypeCode::Struct<char const *, - ::CORBA::TypeCode_ptr const *, - TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy> - _tao_tc_PortableInterceptor_ORBInitInfo_InvalidName ( - ::CORBA::tk_except, - "IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0", - "InvalidName", - _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName, - 0); - -::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_InvalidName = - &_tao_tc_PortableInterceptor_ORBInitInfo_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<ORBInitInfo *> (_tao_void_pointer); + CORBA::release (_tao_tmp_pointer); +} + PortableInterceptor::ORBInitInfo_ptr PortableInterceptor::ORBInitInfo::_narrow ( - ::CORBA::Object_ptr _tao_objref + CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { @@ -374,7 +317,7 @@ PortableInterceptor::ORBInitInfo::_narrow ( PortableInterceptor::ORBInitInfo_ptr PortableInterceptor::ORBInitInfo::_unchecked_narrow ( - ::CORBA::Object_ptr _tao_objref + CORBA::Object_ptr _tao_objref ACE_ENV_ARG_DECL_NOT_USED ) { @@ -390,7 +333,7 @@ PortableInterceptor::ORBInitInfo::_duplicate (ORBInitInfo_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -400,7 +343,7 @@ PortableInterceptor::ORBInitInfo::_tao_release (ORBInitInfo_ptr obj) CORBA::release (obj); } -::CORBA::Boolean +CORBA::Boolean PortableInterceptor::ORBInitInfo::_is_a ( const char *value ACE_ENV_ARG_DECL_NOT_USED @@ -434,174 +377,8 @@ const char* PortableInterceptor::ORBInitInfo::_interface_repository_id (void) co return "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0"; } -::CORBA::Boolean +CORBA::Boolean PortableInterceptor::ORBInitInfo::marshal (TAO_OutputCDR &) { return false; } - -// TAO_IDL - Generated from -// be/be_visitor_typecode/objref_typecode.cpp:76 - -static TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy> - _tao_tc_PortableInterceptor_ORBInitInfo ( - ::CORBA::tk_local_interface, - "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0", - "ORBInitInfo"); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr const _tc_ORBInitInfo = - &_tao_tc_PortableInterceptor_ORBInitInfo; -} - - - -// TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:60 - -// Traits specializations for PortableInterceptor::ORBInitInfo_3_1. - -PortableInterceptor::ORBInitInfo_3_1_ptr -TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::duplicate ( - PortableInterceptor::ORBInitInfo_3_1_ptr p - ) -{ - return PortableInterceptor::ORBInitInfo_3_1::_duplicate (p); -} - -void -TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::release ( - PortableInterceptor::ORBInitInfo_3_1_ptr p - ) -{ - CORBA::release (p); -} - -PortableInterceptor::ORBInitInfo_3_1_ptr -TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::nil (void) -{ - return PortableInterceptor::ORBInitInfo_3_1::_nil (); -} - -::CORBA::Boolean -TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::marshal ( - const PortableInterceptor::ORBInitInfo_3_1_ptr p, - TAO_OutputCDR & cdr - ) -{ - return ::CORBA::Object::marshal (p, cdr); -} - -PortableInterceptor::ORBInitInfo_3_1::ORBInitInfo_3_1 (void) -{} - -PortableInterceptor::ORBInitInfo_3_1::~ORBInitInfo_3_1 (void) -{} - -PortableInterceptor::ORBInitInfo_3_1_ptr -PortableInterceptor::ORBInitInfo_3_1::_narrow ( - ::CORBA::Object_ptr _tao_objref - ACE_ENV_ARG_DECL_NOT_USED - ) -{ - return ORBInitInfo_3_1::_duplicate ( - dynamic_cast<ORBInitInfo_3_1_ptr> (_tao_objref) - ); -} - -PortableInterceptor::ORBInitInfo_3_1_ptr -PortableInterceptor::ORBInitInfo_3_1::_unchecked_narrow ( - ::CORBA::Object_ptr _tao_objref - ACE_ENV_ARG_DECL_NOT_USED - ) -{ - return ORBInitInfo_3_1::_duplicate ( - dynamic_cast<ORBInitInfo_3_1_ptr> (_tao_objref) - ); -} - -PortableInterceptor::ORBInitInfo_3_1_ptr -PortableInterceptor::ORBInitInfo_3_1::_duplicate (ORBInitInfo_3_1_ptr obj) -{ - if (! CORBA::is_nil (obj)) - { - obj->_add_ref (); - } - - return obj; -} - -void -PortableInterceptor::ORBInitInfo_3_1::_tao_release (ORBInitInfo_3_1_ptr obj) -{ - CORBA::release (obj); -} - -::CORBA::Boolean -PortableInterceptor::ORBInitInfo_3_1::_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/PortableInterceptor/ORBInitInfo_3_1: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_3_1::_interface_repository_id (void) const -{ - return "IDL:omg.org/PortableInterceptor/ORBInitInfo_3_1:1.0"; -} - -::CORBA::Boolean -PortableInterceptor::ORBInitInfo_3_1::marshal (TAO_OutputCDR &) -{ - return false; -} - -// TAO_IDL - Generated from -// be/be_visitor_typecode/objref_typecode.cpp:76 - -static TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy> - _tao_tc_PortableInterceptor_ORBInitInfo_3_1 ( - ::CORBA::tk_local_interface, - "IDL:omg.org/PortableInterceptor/ORBInitInfo_3_1:1.0", - "ORBInitInfo_3_1"); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr const _tc_ORBInitInfo_3_1 = - &_tao_tc_PortableInterceptor_ORBInitInfo_3_1; -} - - - - -TAO_END_VERSIONED_NAMESPACE_DECL - - |