// -*- 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:303


#include "CosNamingC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
#include "tao/Typecode.h"
#include "tao/Any_Impl_T.h"
#include "tao/Any_Dual_Impl_T.h"
#include "tao/Any_Basic_Impl_T.h"
#include "tao/Basic_Arguments.h"
#include "tao/Object_Argument_T.h"
#include "tao/Special_Basic_Arguments.h"
#include "tao/UB_String_Arguments.h"
#include "tao/Var_Size_Argument_T.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 "CosNamingC.inl"
#endif /* !defined __ACE_INLINE__ */

// TAO_IDL - Generated from
// be/be_visitor_arg_traits.cpp:64

// Arg traits specializations.
namespace TAO
{
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNAMING_NAME__ARG_TRAITS_CS_)
#define _COSNAMING_NAME__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Naming_Export Arg_Traits<CosNaming::Name>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::Name,
            CosNaming::Name_var,
            CosNaming::Name_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:618

#if !defined (_COSNAMING_BINDING__ARG_TRAITS_CS_)
#define _COSNAMING_BINDING__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Naming_Export Arg_Traits<CosNaming::Binding>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::Binding,
            CosNaming::Binding_var,
            CosNaming::Binding_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNAMING_BINDINGLIST__ARG_TRAITS_CS_)
#define _COSNAMING_BINDINGLIST__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Naming_Export Arg_Traits<CosNaming::BindingList>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::BindingList,
            CosNaming::BindingList_var,
            CosNaming::BindingList_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNAMING_BINDINGITERATOR__ARG_TRAITS_CS_)
#define _COSNAMING_BINDINGITERATOR__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Naming_Export Arg_Traits<CosNaming::BindingIterator>
    : public
        Object_Arg_Traits_T<
            CosNaming::BindingIterator_ptr,
            CosNaming::BindingIterator_var,
            CosNaming::BindingIterator_out,
            TAO::Objref_Traits<CosNaming::BindingIterator>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNAMING_NAMINGCONTEXT__ARG_TRAITS_CS_)
#define _COSNAMING_NAMINGCONTEXT__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Naming_Export Arg_Traits<CosNaming::NamingContext>
    : public
        Object_Arg_Traits_T<
            CosNaming::NamingContext_ptr,
            CosNaming::NamingContext_var,
            CosNaming::NamingContext_out,
            TAO::Objref_Traits<CosNaming::NamingContext>
          >
  {
  };

#endif /* end #if !defined */
}


// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_Istring[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  34,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4973), 
  ACE_NTOHL (0x7472696e), 
  ACE_NTOHL (0x673a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
    8,
  ACE_NTOHL (0x49737472), 
  ACE_NTOHL (0x696e6700),  // name = Istring
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_Istring (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_Istring),
    (char *) &_oc_CosNaming_Istring,
    0,
    sizeof (CosNaming::Istring)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_Istring =
    &_tc_TAO_tc_CosNaming_Istring;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NameComponent[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d65436f), 
  ACE_NTOHL (0x6d706f6e), 
  ACE_NTOHL (0x656e743a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
    14,
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x436f6d70), 
  ACE_NTOHL (0x6f6e656e), 
  ACE_NTOHL (0x74000000),  // name = NameComponent
  2, // member count
    3,
  ACE_NTOHL (0x69640000),  // name = id
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4973), 
    ACE_NTOHL (0x7472696e), 
    ACE_NTOHL (0x673a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

  5,
  ACE_NTOHL (0x6b696e64), 
  ACE_NTOHL (0x0),  // name = kind
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4973), 
    ACE_NTOHL (0x7472696e), 
    ACE_NTOHL (0x673a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NameComponent (
    CORBA::tk_struct,
    sizeof (_oc_CosNaming_NameComponent),
    (char *) &_oc_CosNaming_NameComponent,
    0,
    sizeof (CosNaming::NameComponent)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_NameComponent =
    &_tc_TAO_tc_CosNaming_NameComponent;
}

// TAO_IDL - Generated from 
// be/be_visitor_structure/structure_cs.cpp:66

void 
CosNaming::NameComponent::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  NameComponent *_tao_tmp_pointer =
    static_cast<NameComponent *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

// TAO_IDL - Generated from 
// be/be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_COSNAMING_NAME_CS_)
#define _COSNAMING_NAME_CS_

CosNaming::Name::Name (void)
{}

CosNaming::Name::Name (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosNaming::NameComponent
      >
    (max)
{}

CosNaming::Name::Name (
    CORBA::ULong max,
    CORBA::ULong length,
    CosNaming::NameComponent * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CosNaming::NameComponent
      >
    (max, length, buffer, release)
{}

CosNaming::Name::Name (
    const Name &seq
  )
  : TAO_Unbounded_Sequence<
        CosNaming::NameComponent
      >
    (seq)
{}

CosNaming::Name::~Name (void)
{}

void CosNaming::Name::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  Name * _tao_tmp_pointer =
    static_cast<Name *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

#endif /* end #if !defined */

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_Name[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  31,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/Name:1.0
    5,
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = Name
    CORBA::tk_sequence, // typecode kind
  252, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    236, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      40,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f734e), 
      ACE_NTOHL (0x616d696e), 
      ACE_NTOHL (0x672f4e61), 
      ACE_NTOHL (0x6d65436f), 
      ACE_NTOHL (0x6d706f6e), 
      ACE_NTOHL (0x656e743a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
            14,
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x436f6d70), 
      ACE_NTOHL (0x6f6e656e), 
      ACE_NTOHL (0x74000000),  // name = NameComponent
      2, // member count
            3,
      ACE_NTOHL (0x69640000),  // name = id
            CORBA::tk_alias, // typecode kind for typedefs
      64, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        34,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4973), 
        ACE_NTOHL (0x7472696e), 
        ACE_NTOHL (0x673a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                8,
        ACE_NTOHL (0x49737472), 
        ACE_NTOHL (0x696e6700),  // name = Istring
                CORBA::tk_string, 
        0U, // string length

      5,
      ACE_NTOHL (0x6b696e64), 
      ACE_NTOHL (0x0),  // name = kind
            CORBA::tk_alias, // typecode kind for typedefs
      64, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        34,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4973), 
        ACE_NTOHL (0x7472696e), 
        ACE_NTOHL (0x673a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                8,
        ACE_NTOHL (0x49737472), 
        ACE_NTOHL (0x696e6700),  // name = Istring
                CORBA::tk_string, 
        0U, // string length


    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_Name (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_Name),
    (char *) &_oc_CosNaming_Name,
    0,
    sizeof (CosNaming::Name)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_Name =
    &_tc_TAO_tc_CosNaming_Name;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_BindingType[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4269), 
  ACE_NTOHL (0x6e64696e), 
  ACE_NTOHL (0x67547970), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/BindingType:1.0
  12,
  ACE_NTOHL (0x42696e64), 
  ACE_NTOHL (0x696e6754), 
  ACE_NTOHL (0x79706500),  // name = BindingType
  2, // member count
  8,
  ACE_NTOHL (0x6e6f626a), 
  ACE_NTOHL (0x65637400),  // name = nobject
  9,
  ACE_NTOHL (0x6e636f6e), 
  ACE_NTOHL (0x74657874), 
  ACE_NTOHL (0x0),  // name = ncontext
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_BindingType (
    CORBA::tk_enum,
    sizeof (_oc_CosNaming_BindingType),
    (char *) &_oc_CosNaming_BindingType,
    0,
    sizeof (CosNaming::BindingType)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_BindingType =
    &_tc_TAO_tc_CosNaming_BindingType;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_Binding[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  34,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4269), 
  ACE_NTOHL (0x6e64696e), 
  ACE_NTOHL (0x673a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Binding:1.0
    8,
  ACE_NTOHL (0x42696e64), 
  ACE_NTOHL (0x696e6700),  // name = Binding
  2, // member count
    13,
  ACE_NTOHL (0x62696e64), 
  ACE_NTOHL (0x696e675f), 
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = binding_name
    CORBA::tk_alias, // typecode kind for typedefs
  312, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    31,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = Name
        CORBA::tk_sequence, // typecode kind
    252, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      236, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        40,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4e61), 
        ACE_NTOHL (0x6d65436f), 
        ACE_NTOHL (0x6d706f6e), 
        ACE_NTOHL (0x656e743a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
                14,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x436f6d70), 
        ACE_NTOHL (0x6f6e656e), 
        ACE_NTOHL (0x74000000),  // name = NameComponent
        2, // member count
                3,
        ACE_NTOHL (0x69640000),  // name = id
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length

        5,
        ACE_NTOHL (0x6b696e64), 
        ACE_NTOHL (0x0),  // name = kind
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length


      0U,


  13,
  ACE_NTOHL (0x62696e64), 
  ACE_NTOHL (0x696e675f), 
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = binding_type
    CORBA::tk_enum, // typecode kind
  96, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4269), 
    ACE_NTOHL (0x6e64696e), 
    ACE_NTOHL (0x67547970), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/BindingType:1.0
    12,
    ACE_NTOHL (0x42696e64), 
    ACE_NTOHL (0x696e6754), 
    ACE_NTOHL (0x79706500),  // name = BindingType
    2, // member count
    8,
    ACE_NTOHL (0x6e6f626a), 
    ACE_NTOHL (0x65637400),  // name = nobject
    9,
    ACE_NTOHL (0x6e636f6e), 
    ACE_NTOHL (0x74657874), 
    ACE_NTOHL (0x0),  // name = ncontext
    
};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_Binding (
    CORBA::tk_struct,
    sizeof (_oc_CosNaming_Binding),
    (char *) &_oc_CosNaming_Binding,
    0,
    sizeof (CosNaming::Binding)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_Binding =
    &_tc_TAO_tc_CosNaming_Binding;
}

// TAO_IDL - Generated from 
// be/be_visitor_structure/structure_cs.cpp:66

void 
CosNaming::Binding::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  Binding *_tao_tmp_pointer =
    static_cast<Binding *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

// TAO_IDL - Generated from 
// be/be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_COSNAMING_BINDINGLIST_CS_)
#define _COSNAMING_BINDINGLIST_CS_

CosNaming::BindingList::BindingList (void)
{}

CosNaming::BindingList::BindingList (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosNaming::Binding
      >
    (max)
{}

CosNaming::BindingList::BindingList (
    CORBA::ULong max,
    CORBA::ULong length,
    CosNaming::Binding * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CosNaming::Binding
      >
    (max, length, buffer, release)
{}

CosNaming::BindingList::BindingList (
    const BindingList &seq
  )
  : TAO_Unbounded_Sequence<
        CosNaming::Binding
      >
    (seq)
{}

CosNaming::BindingList::~BindingList (void)
{}

void CosNaming::BindingList::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  BindingList * _tao_tmp_pointer =
    static_cast<BindingList *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

#endif /* end #if !defined */

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_BindingList[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4269), 
  ACE_NTOHL (0x6e64696e), 
  ACE_NTOHL (0x674c6973), 
  ACE_NTOHL (0x743a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/BindingList:1.0
    12,
  ACE_NTOHL (0x42696e64), 
  ACE_NTOHL (0x696e674c), 
  ACE_NTOHL (0x69737400),  // name = BindingList
    CORBA::tk_sequence, // typecode kind
  540, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    524, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      34,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f734e), 
      ACE_NTOHL (0x616d696e), 
      ACE_NTOHL (0x672f4269), 
      ACE_NTOHL (0x6e64696e), 
      ACE_NTOHL (0x673a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Binding:1.0
            8,
      ACE_NTOHL (0x42696e64), 
      ACE_NTOHL (0x696e6700),  // name = Binding
      2, // member count
            13,
      ACE_NTOHL (0x62696e64), 
      ACE_NTOHL (0x696e675f), 
      ACE_NTOHL (0x6e616d65), 
      ACE_NTOHL (0x0),  // name = binding_name
            CORBA::tk_alias, // typecode kind for typedefs
      312, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        31,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4e61), 
        ACE_NTOHL (0x6d653a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/Name:1.0
                5,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = Name
                CORBA::tk_sequence, // typecode kind
        252, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          CORBA::tk_struct, // typecode kind
          236, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            40,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f734e), 
            ACE_NTOHL (0x616d696e), 
            ACE_NTOHL (0x672f4e61), 
            ACE_NTOHL (0x6d65436f), 
            ACE_NTOHL (0x6d706f6e), 
            ACE_NTOHL (0x656e743a), 
            ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
                        14,
            ACE_NTOHL (0x4e616d65), 
            ACE_NTOHL (0x436f6d70), 
            ACE_NTOHL (0x6f6e656e), 
            ACE_NTOHL (0x74000000),  // name = NameComponent
            2, // member count
                        3,
            ACE_NTOHL (0x69640000),  // name = id
                        CORBA::tk_alias, // typecode kind for typedefs
            64, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              34,
              ACE_NTOHL (0x49444c3a), 
              ACE_NTOHL (0x6f6d672e), 
              ACE_NTOHL (0x6f72672f), 
              ACE_NTOHL (0x436f734e), 
              ACE_NTOHL (0x616d696e), 
              ACE_NTOHL (0x672f4973), 
              ACE_NTOHL (0x7472696e), 
              ACE_NTOHL (0x673a312e), 
              ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                            8,
              ACE_NTOHL (0x49737472), 
              ACE_NTOHL (0x696e6700),  // name = Istring
                            CORBA::tk_string, 
              0U, // string length

            5,
            ACE_NTOHL (0x6b696e64), 
            ACE_NTOHL (0x0),  // name = kind
                        CORBA::tk_alias, // typecode kind for typedefs
            64, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              34,
              ACE_NTOHL (0x49444c3a), 
              ACE_NTOHL (0x6f6d672e), 
              ACE_NTOHL (0x6f72672f), 
              ACE_NTOHL (0x436f734e), 
              ACE_NTOHL (0x616d696e), 
              ACE_NTOHL (0x672f4973), 
              ACE_NTOHL (0x7472696e), 
              ACE_NTOHL (0x673a312e), 
              ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                            8,
              ACE_NTOHL (0x49737472), 
              ACE_NTOHL (0x696e6700),  // name = Istring
                            CORBA::tk_string, 
              0U, // string length


          0U,


      13,
      ACE_NTOHL (0x62696e64), 
      ACE_NTOHL (0x696e675f), 
      ACE_NTOHL (0x74797065), 
      ACE_NTOHL (0x0),  // name = binding_type
            CORBA::tk_enum, // typecode kind
      96, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
        38,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4269), 
        ACE_NTOHL (0x6e64696e), 
        ACE_NTOHL (0x67547970), 
        ACE_NTOHL (0x653a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/BindingType:1.0
        12,
        ACE_NTOHL (0x42696e64), 
        ACE_NTOHL (0x696e6754), 
        ACE_NTOHL (0x79706500),  // name = BindingType
        2, // member count
        8,
        ACE_NTOHL (0x6e6f626a), 
        ACE_NTOHL (0x65637400),  // name = nobject
        9,
        ACE_NTOHL (0x6e636f6e), 
        ACE_NTOHL (0x74657874), 
        ACE_NTOHL (0x0),  // name = ncontext
        

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_BindingList (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_BindingList),
    (char *) &_oc_CosNaming_BindingList,
    0,
    sizeof (CosNaming::BindingList)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_BindingList =
    &_tc_TAO_tc_CosNaming_BindingList;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60

// Traits specializations for CosNaming::NamingContext.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::NamingContext_ptr
TAO::Objref_Traits<CosNaming::NamingContext>::tao_duplicate (
    CosNaming::NamingContext_ptr p
  )
{
  return CosNaming::NamingContext::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosNaming::NamingContext>::tao_release (
    CosNaming::NamingContext_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::NamingContext_ptr
TAO::Objref_Traits<CosNaming::NamingContext>::tao_nil (void)
{
  return CosNaming::NamingContext::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosNaming::NamingContext>::tao_marshal (
    CosNaming::NamingContext_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer) (
    CORBA::Object_ptr obj
  ) = 0;

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_NotFoundReason[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  55,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x52656173), 
  ACE_NTOHL (0x6f6e3a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0
  15,
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x52656173), 
  ACE_NTOHL (0x6f6e0000),  // name = NotFoundReason
  3, // member count
  13,
  ACE_NTOHL (0x6d697373), 
  ACE_NTOHL (0x696e675f), 
  ACE_NTOHL (0x6e6f6465), 
  ACE_NTOHL (0x0),  // name = missing_node
  12,
  ACE_NTOHL (0x6e6f745f), 
  ACE_NTOHL (0x636f6e74), 
  ACE_NTOHL (0x65787400),  // name = not_context
  11,
  ACE_NTOHL (0x6e6f745f), 
  ACE_NTOHL (0x6f626a65), 
  ACE_NTOHL (0x63740000),  // name = not_object
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_NotFoundReason (
    CORBA::tk_enum,
    sizeof (_oc_CosNaming_NamingContext_NotFoundReason),
    (char *) &_oc_CosNaming_NamingContext_NotFoundReason,
    0,
    sizeof (CosNaming::NamingContext::NotFoundReason)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_NotFoundReason =
  &_tc_TAO_tc_CosNaming_NamingContext_NotFoundReason;

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContext::NotFound::NotFound (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        "NotFound"
      )
{
}

CosNaming::NamingContext::NotFound::~NotFound (void)
{
}

CosNaming::NamingContext::NotFound::NotFound (const ::CosNaming::NamingContext::NotFound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->why = _tao_excp.why;
  this->rest_of_name = _tao_excp.rest_of_name;
}

CosNaming::NamingContext::NotFound&
CosNaming::NamingContext::NotFound::operator= (const ::CosNaming::NamingContext::NotFound &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->why = _tao_excp.why;
  this->rest_of_name = _tao_excp.rest_of_name;
  return *this;
}

void CosNaming::NamingContext::NotFound::_tao_any_destructor (void *_tao_void_pointer)
{
  NotFound *_tao_tmp_pointer =
    static_cast<NotFound*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContext::NotFound *
CosNaming::NamingContext::NotFound::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<NotFound *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContext::NotFound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContext::NotFound, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContext::NotFound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContext::NotFound (*this),
      0
    );
  return result;
}

void CosNaming::NamingContext::NotFound::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContext::NotFound::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContext::NotFound::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}



// TAO_IDL - Generated from
// be/be_visitor_exception/exception_ctor.cpp:66

CosNaming::NamingContext::NotFound::NotFound (
    CosNaming::NamingContext::NotFoundReason _tao_why,
    const CosNaming::Name & _tao_rest_of_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        "NotFound"
      )
{
  this->why = _tao_why;
  this->rest_of_name = _tao_rest_of_name;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContext::NotFound::_type (void) const
{
  return ::CosNaming::NamingContext::_tc_NotFound;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_NotFound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    9,
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x0),  // name = NotFound
  2, // member count
    4,
  ACE_NTOHL (0x77687900),  // name = why
    CORBA::tk_enum, // typecode kind
  140, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    55,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4e61), 
    ACE_NTOHL (0x6d696e67), 
    ACE_NTOHL (0x436f6e74), 
    ACE_NTOHL (0x6578742f), 
    ACE_NTOHL (0x4e6f7446), 
    ACE_NTOHL (0x6f756e64), 
    ACE_NTOHL (0x52656173), 
    ACE_NTOHL (0x6f6e3a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0
    15,
    ACE_NTOHL (0x4e6f7446), 
    ACE_NTOHL (0x6f756e64), 
    ACE_NTOHL (0x52656173), 
    ACE_NTOHL (0x6f6e0000),  // name = NotFoundReason
    3, // member count
    13,
    ACE_NTOHL (0x6d697373), 
    ACE_NTOHL (0x696e675f), 
    ACE_NTOHL (0x6e6f6465), 
    ACE_NTOHL (0x0),  // name = missing_node
    12,
    ACE_NTOHL (0x6e6f745f), 
    ACE_NTOHL (0x636f6e74), 
    ACE_NTOHL (0x65787400),  // name = not_context
    11,
    ACE_NTOHL (0x6e6f745f), 
    ACE_NTOHL (0x6f626a65), 
    ACE_NTOHL (0x63740000),  // name = not_object
    
  13,
  ACE_NTOHL (0x72657374), 
  ACE_NTOHL (0x5f6f665f), 
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = rest_of_name
    CORBA::tk_alias, // typecode kind for typedefs
  312, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    31,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = Name
        CORBA::tk_sequence, // typecode kind
    252, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      236, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        40,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4e61), 
        ACE_NTOHL (0x6d65436f), 
        ACE_NTOHL (0x6d706f6e), 
        ACE_NTOHL (0x656e743a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
                14,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x436f6d70), 
        ACE_NTOHL (0x6f6e656e), 
        ACE_NTOHL (0x74000000),  // name = NameComponent
        2, // member count
                3,
        ACE_NTOHL (0x69640000),  // name = id
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length

        5,
        ACE_NTOHL (0x6b696e64), 
        ACE_NTOHL (0x0),  // name = kind
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length


      0U,


};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_NotFound (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContext_NotFound),
    (char *) &_oc_CosNaming_NamingContext_NotFound,
    0,
    sizeof (CosNaming::NamingContext::NotFound)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_NotFound =
  &_tc_TAO_tc_CosNaming_NamingContext_NotFound;

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContext::CannotProceed::CannotProceed (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        "CannotProceed"
      )
{
}

CosNaming::NamingContext::CannotProceed::~CannotProceed (void)
{
}

CosNaming::NamingContext::CannotProceed::CannotProceed (const ::CosNaming::NamingContext::CannotProceed &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->cxt = CosNaming::NamingContext::_duplicate (_tao_excp.cxt.in ());
  this->rest_of_name = _tao_excp.rest_of_name;
}

CosNaming::NamingContext::CannotProceed&
CosNaming::NamingContext::CannotProceed::operator= (const ::CosNaming::NamingContext::CannotProceed &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->cxt = CosNaming::NamingContext::_duplicate (_tao_excp.cxt.in ());
  this->rest_of_name = _tao_excp.rest_of_name;
  return *this;
}

void CosNaming::NamingContext::CannotProceed::_tao_any_destructor (void *_tao_void_pointer)
{
  CannotProceed *_tao_tmp_pointer =
    static_cast<CannotProceed*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContext::CannotProceed *
CosNaming::NamingContext::CannotProceed::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<CannotProceed *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContext::CannotProceed::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContext::CannotProceed, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContext::CannotProceed::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContext::CannotProceed (*this),
      0
    );
  return result;
}

void CosNaming::NamingContext::CannotProceed::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContext::CannotProceed::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContext::CannotProceed::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}



// TAO_IDL - Generated from
// be/be_visitor_exception/exception_ctor.cpp:66

CosNaming::NamingContext::CannotProceed::CannotProceed (
    const CosNaming::NamingContext_ptr _tao_cxt,
    const CosNaming::Name & _tao_rest_of_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        "CannotProceed"
      )
{
  this->cxt = CosNaming::NamingContext::_duplicate (_tao_cxt);
  this->rest_of_name = _tao_rest_of_name;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContext::CannotProceed::_type (void) const
{
  return ::CosNaming::NamingContext::_tc_CannotProceed;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_CannotProceed[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x43616e6e), 
  ACE_NTOHL (0x6f745072), 
  ACE_NTOHL (0x6f636565), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0
    14,
  ACE_NTOHL (0x43616e6e), 
  ACE_NTOHL (0x6f745072), 
  ACE_NTOHL (0x6f636565), 
  ACE_NTOHL (0x64000000),  // name = CannotProceed
  2, // member count
    4,
  ACE_NTOHL (0x63787400),  // name = cxt
    CORBA::tk_objref, // typecode kind
  68, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4e61), 
    ACE_NTOHL (0x6d696e67), 
    ACE_NTOHL (0x436f6e74), 
    ACE_NTOHL (0x6578743a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NamingContext:1.0
        14,
    ACE_NTOHL (0x4e616d69), 
    ACE_NTOHL (0x6e67436f), 
    ACE_NTOHL (0x6e746578), 
    ACE_NTOHL (0x74000000),  // name = NamingContext
    
  13,
  ACE_NTOHL (0x72657374), 
  ACE_NTOHL (0x5f6f665f), 
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = rest_of_name
    CORBA::tk_alias, // typecode kind for typedefs
  312, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    31,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f734e), 
    ACE_NTOHL (0x616d696e), 
    ACE_NTOHL (0x672f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = Name
        CORBA::tk_sequence, // typecode kind
    252, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      236, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        40,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f734e), 
        ACE_NTOHL (0x616d696e), 
        ACE_NTOHL (0x672f4e61), 
        ACE_NTOHL (0x6d65436f), 
        ACE_NTOHL (0x6d706f6e), 
        ACE_NTOHL (0x656e743a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NameComponent:1.0
                14,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x436f6d70), 
        ACE_NTOHL (0x6f6e656e), 
        ACE_NTOHL (0x74000000),  // name = NameComponent
        2, // member count
                3,
        ACE_NTOHL (0x69640000),  // name = id
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length

        5,
        ACE_NTOHL (0x6b696e64), 
        ACE_NTOHL (0x0),  // name = kind
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          34,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f734e), 
          ACE_NTOHL (0x616d696e), 
          ACE_NTOHL (0x672f4973), 
          ACE_NTOHL (0x7472696e), 
          ACE_NTOHL (0x673a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length


      0U,


};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_CannotProceed (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContext_CannotProceed),
    (char *) &_oc_CosNaming_NamingContext_CannotProceed,
    0,
    sizeof (CosNaming::NamingContext::CannotProceed)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_CannotProceed =
  &_tc_TAO_tc_CosNaming_NamingContext_CannotProceed;

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContext::InvalidName::InvalidName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        "InvalidName"
      )
{
}

CosNaming::NamingContext::InvalidName::~InvalidName (void)
{
}

CosNaming::NamingContext::InvalidName::InvalidName (const ::CosNaming::NamingContext::InvalidName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

CosNaming::NamingContext::InvalidName&
CosNaming::NamingContext::InvalidName::operator= (const ::CosNaming::NamingContext::InvalidName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  return *this;
}

void CosNaming::NamingContext::InvalidName::_tao_any_destructor (void *_tao_void_pointer)
{
  InvalidName *_tao_tmp_pointer =
    static_cast<InvalidName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContext::InvalidName *
CosNaming::NamingContext::InvalidName::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<InvalidName *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContext::InvalidName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContext::InvalidName, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContext::InvalidName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContext::InvalidName (*this),
      0
    );
  return result;
}

void CosNaming::NamingContext::InvalidName::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContext::InvalidName::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContext::InvalidName::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContext::InvalidName::_type (void) const
{
  return ::CosNaming::NamingContext::_tc_InvalidName;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_InvalidName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  52,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c69644e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0
    12,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c69644e), 
  ACE_NTOHL (0x616d6500),  // name = InvalidName
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_InvalidName (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContext_InvalidName),
    (char *) &_oc_CosNaming_NamingContext_InvalidName,
    0,
    sizeof (CosNaming::NamingContext::InvalidName)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_InvalidName =
  &_tc_TAO_tc_CosNaming_NamingContext_InvalidName;

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContext::AlreadyBound::AlreadyBound (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0",
        "AlreadyBound"
      )
{
}

CosNaming::NamingContext::AlreadyBound::~AlreadyBound (void)
{
}

CosNaming::NamingContext::AlreadyBound::AlreadyBound (const ::CosNaming::NamingContext::AlreadyBound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

CosNaming::NamingContext::AlreadyBound&
CosNaming::NamingContext::AlreadyBound::operator= (const ::CosNaming::NamingContext::AlreadyBound &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  return *this;
}

void CosNaming::NamingContext::AlreadyBound::_tao_any_destructor (void *_tao_void_pointer)
{
  AlreadyBound *_tao_tmp_pointer =
    static_cast<AlreadyBound*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContext::AlreadyBound *
CosNaming::NamingContext::AlreadyBound::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<AlreadyBound *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContext::AlreadyBound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContext::AlreadyBound, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContext::AlreadyBound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContext::AlreadyBound (*this),
      0
    );
  return result;
}

void CosNaming::NamingContext::AlreadyBound::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContext::AlreadyBound::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContext::AlreadyBound::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContext::AlreadyBound::_type (void) const
{
  return ::CosNaming::NamingContext::_tc_AlreadyBound;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_AlreadyBound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x416c7265), 
  ACE_NTOHL (0x61647942), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0
    13,
  ACE_NTOHL (0x416c7265), 
  ACE_NTOHL (0x61647942), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x0),  // name = AlreadyBound
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_AlreadyBound (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContext_AlreadyBound),
    (char *) &_oc_CosNaming_NamingContext_AlreadyBound,
    0,
    sizeof (CosNaming::NamingContext::AlreadyBound)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_AlreadyBound =
  &_tc_TAO_tc_CosNaming_NamingContext_AlreadyBound;

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContext::NotEmpty::NotEmpty (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0",
        "NotEmpty"
      )
{
}

CosNaming::NamingContext::NotEmpty::~NotEmpty (void)
{
}

CosNaming::NamingContext::NotEmpty::NotEmpty (const ::CosNaming::NamingContext::NotEmpty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

CosNaming::NamingContext::NotEmpty&
CosNaming::NamingContext::NotEmpty::operator= (const ::CosNaming::NamingContext::NotEmpty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  return *this;
}

void CosNaming::NamingContext::NotEmpty::_tao_any_destructor (void *_tao_void_pointer)
{
  NotEmpty *_tao_tmp_pointer =
    static_cast<NotEmpty*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContext::NotEmpty *
CosNaming::NamingContext::NotEmpty::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<NotEmpty *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContext::NotEmpty::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContext::NotEmpty, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContext::NotEmpty::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContext::NotEmpty (*this),
      0
    );
  return result;
}

void CosNaming::NamingContext::NotEmpty::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContext::NotEmpty::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContext::NotEmpty::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContext::NotEmpty::_type (void) const
{
  return ::CosNaming::NamingContext::_tc_NotEmpty;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext_NotEmpty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578742f), 
  ACE_NTOHL (0x4e6f7445), 
  ACE_NTOHL (0x6d707479), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0
    9,
  ACE_NTOHL (0x4e6f7445), 
  ACE_NTOHL (0x6d707479), 
  ACE_NTOHL (0x0),  // name = NotEmpty
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext_NotEmpty (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContext_NotEmpty),
    (char *) &_oc_CosNaming_NamingContext_NotEmpty,
    0,
    sizeof (CosNaming::NamingContext::NotEmpty)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContext::_tc_NotEmpty =
  &_tc_TAO_tc_CosNaming_NamingContext_NotEmpty;

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::bind (
    const ::CosNaming::Name & n,
    ::CORBA::Object_ptr obj
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName,
    ::CosNaming::NamingContext::AlreadyBound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_obj (obj);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_obj
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_bind_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0",
        CosNaming::NamingContext::AlreadyBound::_alloc,
        CosNaming::NamingContext::_tc_AlreadyBound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "bind",
      4,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_bind_exceptiondata,
      4
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::rebind (
    const ::CosNaming::Name & n,
    ::CORBA::Object_ptr obj
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_obj (obj);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_obj
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_rebind_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "rebind",
      6,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_rebind_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::bind_context (
    const ::CosNaming::Name & n,
    ::CosNaming::NamingContext_ptr nc
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName,
    ::CosNaming::NamingContext::AlreadyBound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< ::CosNaming::NamingContext>::in_arg_val _tao_nc (nc);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_nc
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_bind_context_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0",
        CosNaming::NamingContext::AlreadyBound::_alloc,
        CosNaming::NamingContext::_tc_AlreadyBound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "bind_context",
      12,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_bind_context_exceptiondata,
      4
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::rebind_context (
    const ::CosNaming::Name & n,
    ::CosNaming::NamingContext_ptr nc
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< ::CosNaming::NamingContext>::in_arg_val _tao_nc (nc);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_nc
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_rebind_context_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "rebind_context",
      14,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_rebind_context_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

CORBA::Object_ptr CosNaming::NamingContext::resolve (
    const ::CosNaming::Name & n
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Object>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_resolve_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "resolve",
      7,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_resolve_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::unbind (
    const ::CosNaming::Name & n
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_unbind_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unbind",
      6,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_unbind_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CosNaming::NamingContext_ptr CosNaming::NamingContext::new_context (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNaming::NamingContext>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "new_context",
      11,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CosNaming::NamingContext_ptr CosNaming::NamingContext::bind_new_context (
    const ::CosNaming::Name & n
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::AlreadyBound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNaming::NamingContext>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_bind_new_context_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0",
        CosNaming::NamingContext::AlreadyBound::_alloc,
        CosNaming::NamingContext::_tc_AlreadyBound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "bind_new_context",
      16,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_bind_new_context_exceptiondata,
      4
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::destroy (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotEmpty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContext_destroy_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0",
        CosNaming::NamingContext::NotEmpty::_alloc,
        CosNaming::NamingContext::_tc_NotEmpty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "destroy",
      7,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContext_destroy_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::NamingContext::list (
    ::CORBA::ULong how_many,
    ::CosNaming::BindingList_out bl,
    ::CosNaming::BindingIterator_out bi
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContext_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContext_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_how_many (how_many);
  TAO::Arg_Traits< ::CosNaming::BindingList>::out_arg_val _tao_bl (bl);
  TAO::Arg_Traits< ::CosNaming::BindingIterator>::out_arg_val _tao_bi (bi);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_how_many,
      &_tao_bl,
      &_tao_bi
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "list",
      4,
      this->the_TAO_NamingContext_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosNaming::NamingContext::NamingContext (void)
 : the_TAO_NamingContext_Proxy_Broker_ (0)
{
  this->CosNaming_NamingContext_setup_collocation ();
}

void
CosNaming::NamingContext::CosNaming_NamingContext_setup_collocation ()
{
  if (::CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_NamingContext_Proxy_Broker_ =
        ::CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosNaming::NamingContext::~NamingContext (void)
{}

void 
CosNaming::NamingContext::_tao_any_destructor (void *_tao_void_pointer)
{
  NamingContext *_tao_tmp_pointer =
    static_cast<NamingContext *> (_tao_void_pointer);
  CORBA::release (_tao_tmp_pointer);
}

CosNaming::NamingContext_ptr
CosNaming::NamingContext::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<NamingContext>::narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/NamingContext:1.0",
        CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::NamingContext_ptr
CosNaming::NamingContext::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<NamingContext>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/NamingContext:1.0",
        CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::NamingContext_ptr
CosNaming::NamingContext::_duplicate (NamingContext_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
CosNaming::NamingContext::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CosNaming/NamingContext:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return this->ACE_NESTED_CLASS (CORBA, Object)::_is_a (
          value
          ACE_ENV_ARG_PARAMETER
        );
    }
}

const char* CosNaming::NamingContext::_interface_repository_id (void) const
{
  return "IDL:omg.org/CosNaming/NamingContext:1.0";
}

CORBA::Boolean
CosNaming::NamingContext::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContext[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x6578743a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosNaming/NamingContext:1.0
    14,
  ACE_NTOHL (0x4e616d69), 
  ACE_NTOHL (0x6e67436f), 
  ACE_NTOHL (0x6e746578), 
  ACE_NTOHL (0x74000000),  // name = NamingContext
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContext (
    CORBA::tk_objref,
    sizeof (_oc_CosNaming_NamingContext),
    (char *) &_oc_CosNaming_NamingContext,
    0,
    sizeof (CosNaming::NamingContext)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_NamingContext =
    &_tc_TAO_tc_CosNaming_NamingContext;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60

// Traits specializations for CosNaming::BindingIterator.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::BindingIterator_ptr
TAO::Objref_Traits<CosNaming::BindingIterator>::tao_duplicate (
    CosNaming::BindingIterator_ptr p
  )
{
  return CosNaming::BindingIterator::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosNaming::BindingIterator>::tao_release (
    CosNaming::BindingIterator_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::BindingIterator_ptr
TAO::Objref_Traits<CosNaming::BindingIterator>::tao_nil (void)
{
  return CosNaming::BindingIterator::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosNaming::BindingIterator>::tao_marshal (
    CosNaming::BindingIterator_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer) (
    CORBA::Object_ptr obj
  ) = 0;

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

CORBA::Boolean CosNaming::BindingIterator::next_one (
    ::CosNaming::Binding_out b
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_BindingIterator_Proxy_Broker_ == 0)
    {
      CosNaming_BindingIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Binding>::out_arg_val _tao_b (b);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_b
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "next_one",
      8,
      this->the_TAO_BindingIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

CORBA::Boolean CosNaming::BindingIterator::next_n (
    ::CORBA::ULong how_many,
    ::CosNaming::BindingList_out bl
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_BindingIterator_Proxy_Broker_ == 0)
    {
      CosNaming_BindingIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_how_many (how_many);
  TAO::Arg_Traits< ::CosNaming::BindingList>::out_arg_val _tao_bl (bl);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_how_many,
      &_tao_bl
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "next_n",
      6,
      this->the_TAO_BindingIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

void CosNaming::BindingIterator::destroy (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_BindingIterator_Proxy_Broker_ == 0)
    {
      CosNaming_BindingIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "destroy",
      7,
      this->the_TAO_BindingIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosNaming::BindingIterator::BindingIterator (void)
 : the_TAO_BindingIterator_Proxy_Broker_ (0)
{
  this->CosNaming_BindingIterator_setup_collocation ();
}

void
CosNaming::BindingIterator::CosNaming_BindingIterator_setup_collocation ()
{
  if (::CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_BindingIterator_Proxy_Broker_ =
        ::CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosNaming::BindingIterator::~BindingIterator (void)
{}

void 
CosNaming::BindingIterator::_tao_any_destructor (void *_tao_void_pointer)
{
  BindingIterator *_tao_tmp_pointer =
    static_cast<BindingIterator *> (_tao_void_pointer);
  CORBA::release (_tao_tmp_pointer);
}

CosNaming::BindingIterator_ptr
CosNaming::BindingIterator::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<BindingIterator>::narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/BindingIterator:1.0",
        CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::BindingIterator_ptr
CosNaming::BindingIterator::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<BindingIterator>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/BindingIterator:1.0",
        CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::BindingIterator_ptr
CosNaming::BindingIterator::_duplicate (BindingIterator_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
CosNaming::BindingIterator::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CosNaming/BindingIterator:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return this->ACE_NESTED_CLASS (CORBA, Object)::_is_a (
          value
          ACE_ENV_ARG_PARAMETER
        );
    }
}

const char* CosNaming::BindingIterator::_interface_repository_id (void) const
{
  return "IDL:omg.org/CosNaming/BindingIterator:1.0";
}

CORBA::Boolean
CosNaming::BindingIterator::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_BindingIterator[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4269), 
  ACE_NTOHL (0x6e64696e), 
  ACE_NTOHL (0x67497465), 
  ACE_NTOHL (0x7261746f), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/BindingIterator:1.0
    16,
  ACE_NTOHL (0x42696e64), 
  ACE_NTOHL (0x696e6749), 
  ACE_NTOHL (0x74657261), 
  ACE_NTOHL (0x746f7200),  // name = BindingIterator
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_BindingIterator (
    CORBA::tk_objref,
    sizeof (_oc_CosNaming_BindingIterator),
    (char *) &_oc_CosNaming_BindingIterator,
    0,
    sizeof (CosNaming::BindingIterator)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_BindingIterator =
    &_tc_TAO_tc_CosNaming_BindingIterator;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60

// Traits specializations for CosNaming::NamingContextExt.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::NamingContextExt_ptr
TAO::Objref_Traits<CosNaming::NamingContextExt>::tao_duplicate (
    CosNaming::NamingContextExt_ptr p
  )
{
  return CosNaming::NamingContextExt::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosNaming::NamingContextExt>::tao_release (
    CosNaming::NamingContextExt_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosNaming::NamingContextExt_ptr
TAO::Objref_Traits<CosNaming::NamingContextExt>::tao_nil (void)
{
  return CosNaming::NamingContextExt::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosNaming::NamingContextExt>::tao_marshal (
    CosNaming::NamingContextExt_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer) (
    CORBA::Object_ptr obj
  ) = 0;

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContextExt_StringName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x65787445), 
  ACE_NTOHL (0x78742f53), 
  ACE_NTOHL (0x7472696e), 
  ACE_NTOHL (0x674e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/NamingContextExt/StringName:1.0
    11,
  ACE_NTOHL (0x53747269), 
  ACE_NTOHL (0x6e674e61), 
  ACE_NTOHL (0x6d650000),  // name = StringName
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContextExt_StringName (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_NamingContextExt_StringName),
    (char *) &_oc_CosNaming_NamingContextExt_StringName,
    0,
    sizeof (CosNaming::NamingContextExt::StringName)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContextExt::_tc_StringName =
  &_tc_TAO_tc_CosNaming_NamingContextExt_StringName;

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContextExt_Address[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  51,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x65787445), 
  ACE_NTOHL (0x78742f41), 
  ACE_NTOHL (0x64647265), 
  ACE_NTOHL (0x73733a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/NamingContextExt/Address:1.0
    8,
  ACE_NTOHL (0x41646472), 
  ACE_NTOHL (0x65737300),  // name = Address
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContextExt_Address (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_NamingContextExt_Address),
    (char *) &_oc_CosNaming_NamingContextExt_Address,
    0,
    sizeof (CosNaming::NamingContextExt::Address)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContextExt::_tc_Address =
  &_tc_TAO_tc_CosNaming_NamingContextExt_Address;

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContextExt_URLString[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x65787445), 
  ACE_NTOHL (0x78742f55), 
  ACE_NTOHL (0x524c5374), 
  ACE_NTOHL (0x72696e67), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosNaming/NamingContextExt/URLString:1.0
    10,
  ACE_NTOHL (0x55524c53), 
  ACE_NTOHL (0x7472696e), 
  ACE_NTOHL (0x67000000),  // name = URLString
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContextExt_URLString (
    CORBA::tk_alias,
    sizeof (_oc_CosNaming_NamingContextExt_URLString),
    (char *) &_oc_CosNaming_NamingContextExt_URLString,
    0,
    sizeof (CosNaming::NamingContextExt::URLString)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContextExt::_tc_URLString =
  &_tc_TAO_tc_CosNaming_NamingContextExt_URLString;

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

char * CosNaming::NamingContextExt::to_string (
    const ::CosNaming::Name & n
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContextExt_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContextExt_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::StringName>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::Name>::in_arg_val _tao_n (n);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContextExt_to_string_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "to_string",
      9,
      this->the_TAO_NamingContextExt_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContextExt_to_string_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

::CosNaming::Name * CosNaming::NamingContextExt::to_name (
    const char * sn
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContextExt_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContextExt_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNaming::Name>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::StringName>::in_arg_val _tao_sn (sn);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_sn
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContextExt_to_name_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "to_name",
      7,
      this->the_TAO_NamingContextExt_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContextExt_to_name_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/exception_cs.cpp:63

CosNaming::NamingContextExt::InvalidAddress::InvalidAddress (void)
  : CORBA::UserException (
        "IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0",
        "InvalidAddress"
      )
{
}

CosNaming::NamingContextExt::InvalidAddress::~InvalidAddress (void)
{
}

CosNaming::NamingContextExt::InvalidAddress::InvalidAddress (const ::CosNaming::NamingContextExt::InvalidAddress &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

CosNaming::NamingContextExt::InvalidAddress&
CosNaming::NamingContextExt::InvalidAddress::operator= (const ::CosNaming::NamingContextExt::InvalidAddress &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  return *this;
}

void CosNaming::NamingContextExt::InvalidAddress::_tao_any_destructor (void *_tao_void_pointer)
{
  InvalidAddress *_tao_tmp_pointer =
    static_cast<InvalidAddress*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

CosNaming::NamingContextExt::InvalidAddress *
CosNaming::NamingContextExt::InvalidAddress::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0", _tao_excp->_rep_id ()))
    {
      return dynamic_cast<InvalidAddress *> (_tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *CosNaming::NamingContextExt::InvalidAddress::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosNaming::NamingContextExt::InvalidAddress, 0);
  return retval;
}

CORBA::Exception *
CosNaming::NamingContextExt::InvalidAddress::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosNaming::NamingContextExt::InvalidAddress (*this),
      0
    );
  return result;
}

void CosNaming::NamingContextExt::InvalidAddress::_raise (void) const
{
  TAO_RAISE (*this);
}

void CosNaming::NamingContextExt::InvalidAddress::_tao_encode (
    TAO_OutputCDR &cdr
    ACE_ENV_ARG_DECL
  ) const
{
  if (cdr << *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

void CosNaming::NamingContextExt::InvalidAddress::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosNaming::NamingContextExt::InvalidAddress::_type (void) const
{
  return ::CosNaming::NamingContextExt::_tc_InvalidAddress;
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContextExt_InvalidAddress[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  58,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x65787445), 
  ACE_NTOHL (0x78742f49), 
  ACE_NTOHL (0x6e76616c), 
  ACE_NTOHL (0x69644164), 
  ACE_NTOHL (0x64726573), 
  ACE_NTOHL (0x733a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0
    15,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c696441), 
  ACE_NTOHL (0x64647265), 
  ACE_NTOHL (0x73730000),  // name = InvalidAddress
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContextExt_InvalidAddress (
    CORBA::tk_except,
    sizeof (_oc_CosNaming_NamingContextExt_InvalidAddress),
    (char *) &_oc_CosNaming_NamingContextExt_InvalidAddress,
    0,
    sizeof (CosNaming::NamingContextExt::InvalidAddress)
  );

::CORBA::TypeCode_ptr CosNaming::NamingContextExt::_tc_InvalidAddress =
  &_tc_TAO_tc_CosNaming_NamingContextExt_InvalidAddress;

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

char * CosNaming::NamingContextExt::to_url (
    const char * addr,
    const char * sn
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContextExt::InvalidAddress,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContextExt_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContextExt_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::URLString>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::Address>::in_arg_val _tao_addr (addr);
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::StringName>::in_arg_val _tao_sn (sn);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_addr,
      &_tao_sn
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContextExt_to_url_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0",
        CosNaming::NamingContextExt::InvalidAddress::_alloc,
        CosNaming::NamingContextExt::_tc_InvalidAddress
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "to_url",
      6,
      this->the_TAO_NamingContextExt_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContextExt_to_url_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78

CORBA::Object_ptr CosNaming::NamingContextExt::resolve_str (
    const char * n
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNaming::NamingContext::NotFound,
    ::CosNaming::NamingContext::CannotProceed,
    ::CosNaming::NamingContext::InvalidName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_NamingContextExt_Proxy_Broker_ == 0)
    {
      CosNaming_NamingContextExt_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Object>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNaming::NamingContextExt::StringName>::in_arg_val _tao_n (n);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n
    };
  
  static TAO::Exception_Data
  _tao_CosNaming_NamingContextExt_resolve_str_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0",
        CosNaming::NamingContext::NotFound::_alloc,
        CosNaming::NamingContext::_tc_NotFound
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0",
        CosNaming::NamingContext::CannotProceed::_alloc,
        CosNaming::NamingContext::_tc_CannotProceed
      },
      
      {
        "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0",
        CosNaming::NamingContext::InvalidName::_alloc,
        CosNaming::NamingContext::_tc_InvalidName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "resolve_str",
      11,
      this->the_TAO_NamingContextExt_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosNaming_NamingContextExt_resolve_str_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosNaming::NamingContextExt::NamingContextExt (void)
 : the_TAO_NamingContextExt_Proxy_Broker_ (0)
{
  this->CosNaming_NamingContextExt_setup_collocation ();
}

void
CosNaming::NamingContextExt::CosNaming_NamingContextExt_setup_collocation ()
{
  if (::CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_NamingContextExt_Proxy_Broker_ =
        ::CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosNaming_NamingContext_setup_collocation ();
}

CosNaming::NamingContextExt::~NamingContextExt (void)
{}

void 
CosNaming::NamingContextExt::_tao_any_destructor (void *_tao_void_pointer)
{
  NamingContextExt *_tao_tmp_pointer =
    static_cast<NamingContextExt *> (_tao_void_pointer);
  CORBA::release (_tao_tmp_pointer);
}

CosNaming::NamingContextExt_ptr
CosNaming::NamingContextExt::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<NamingContextExt>::narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/NamingContextExt:1.0",
        CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::NamingContextExt_ptr
CosNaming::NamingContextExt::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<NamingContextExt>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosNaming/NamingContextExt:1.0",
        CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosNaming::NamingContextExt_ptr
CosNaming::NamingContextExt::_duplicate (NamingContextExt_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
CosNaming::NamingContextExt::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CosNaming/NamingContext:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CosNaming/NamingContextExt:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return this->ACE_NESTED_CLASS (CORBA, Object)::_is_a (
          value
          ACE_ENV_ARG_PARAMETER
        );
    }
}

const char* CosNaming::NamingContextExt::_interface_repository_id (void) const
{
  return "IDL:omg.org/CosNaming/NamingContextExt:1.0";
}

CORBA::Boolean
CosNaming::NamingContextExt::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:290

static const CORBA::Long _oc_CosNaming_NamingContextExt[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f734e), 
  ACE_NTOHL (0x616d696e), 
  ACE_NTOHL (0x672f4e61), 
  ACE_NTOHL (0x6d696e67), 
  ACE_NTOHL (0x436f6e74), 
  ACE_NTOHL (0x65787445), 
  ACE_NTOHL (0x78743a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosNaming/NamingContextExt:1.0
    17,
  ACE_NTOHL (0x4e616d69), 
  ACE_NTOHL (0x6e67436f), 
  ACE_NTOHL (0x6e746578), 
  ACE_NTOHL (0x74457874), 
  ACE_NTOHL (0x0),  // name = NamingContextExt
  };

static CORBA::TypeCode _tc_TAO_tc_CosNaming_NamingContextExt (
    CORBA::tk_objref,
    sizeof (_oc_CosNaming_NamingContextExt),
    (char *) &_oc_CosNaming_NamingContextExt,
    0,
    sizeof (CosNaming::NamingContextExt)
  );

namespace CosNaming
{
  ::CORBA::TypeCode_ptr _tc_NamingContextExt =
    &_tc_TAO_tc_CosNaming_NamingContextExt;
}

// TAO_IDL - Generated from 
// be/be_visitor_structure/any_op_cs.cpp:54

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NameComponent &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NameComponent>::insert_copy (
      _tao_any,
      CosNaming::NameComponent::_tao_any_destructor,
      CosNaming::_tc_NameComponent,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NameComponent *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NameComponent>::insert (
      _tao_any,
      CosNaming::NameComponent::_tao_any_destructor,
      CosNaming::_tc_NameComponent,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NameComponent *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NameComponent *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NameComponent *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NameComponent>::extract (
        _tao_any,
        CosNaming::NameComponent::_tao_any_destructor,
        CosNaming::_tc_NameComponent,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_sequence/any_op_cs.cpp:54

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::Name &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::Name>::insert_copy (
      _tao_any,
      CosNaming::Name::_tao_any_destructor,
      CosNaming::_tc_Name,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::Name *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::Name>::insert (
      _tao_any,
      CosNaming::Name::_tao_any_destructor,
      CosNaming::_tc_Name,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::Name *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::Name *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::Name *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::Name>::extract (
        _tao_any,
        CosNaming::Name::_tao_any_destructor,
        CosNaming::_tc_Name,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_enum/any_op_cs.cpp:52

void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::BindingType _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosNaming::BindingType>::insert (
      _tao_any,
      CosNaming::_tc_BindingType,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::BindingType &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosNaming::BindingType>::extract (
        _tao_any,
        CosNaming::_tc_BindingType,
        _tao_elem 
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_structure/any_op_cs.cpp:54

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::Binding &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::Binding>::insert_copy (
      _tao_any,
      CosNaming::Binding::_tao_any_destructor,
      CosNaming::_tc_Binding,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::Binding *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::Binding>::insert (
      _tao_any,
      CosNaming::Binding::_tao_any_destructor,
      CosNaming::_tc_Binding,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::Binding *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::Binding *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::Binding *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::Binding>::extract (
        _tao_any,
        CosNaming::Binding::_tao_any_destructor,
        CosNaming::_tc_Binding,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_sequence/any_op_cs.cpp:54

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::BindingList &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::BindingList>::insert_copy (
      _tao_any,
      CosNaming::BindingList::_tao_any_destructor,
      CosNaming::_tc_BindingList,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::BindingList *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::BindingList>::insert (
      _tao_any,
      CosNaming::BindingList::_tao_any_destructor,
      CosNaming::_tc_BindingList,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::BindingList *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::BindingList *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::BindingList *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::BindingList>::extract (
        _tao_any,
        CosNaming::BindingList::_tao_any_destructor,
        CosNaming::_tc_BindingList,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosNaming::NamingContext>::to_object (
    CORBA::Object_ptr &_tao_elem
  ) const
{
  _tao_elem = CORBA::Object::_duplicate (this->value_);
  return 1;
}

// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext_ptr _tao_elem
  )
{
  CosNaming::NamingContext_ptr _tao_objptr =
    CosNaming::NamingContext::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosNaming::NamingContext>::insert (
      _tao_any,
      CosNaming::NamingContext::_tao_any_destructor,
      CosNaming::_tc_NamingContext,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosNaming::NamingContext>::extract (
        _tao_any,
        CosNaming::NamingContext::_tao_any_destructor,
        CosNaming::_tc_NamingContext,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_enum/any_op_cs.cpp:52

void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotFoundReason _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosNaming::NamingContext::NotFoundReason>::insert (
      _tao_any,
      CosNaming::NamingContext::_tc_NotFoundReason,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotFoundReason &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosNaming::NamingContext::NotFoundReason>::extract (
        _tao_any,
        CosNaming::NamingContext::_tc_NotFoundReason,
        _tao_elem 
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotFound>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContext::NotFound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotFound>::insert_copy (
      _tao_any,
      CosNaming::NamingContext::NotFound::_tao_any_destructor,
      CosNaming::NamingContext::_tc_NotFound,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotFound *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotFound>::insert (
      _tao_any,
      CosNaming::NamingContext::NotFound::_tao_any_destructor,
      CosNaming::NamingContext::_tc_NotFound,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotFound *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContext::NotFound *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContext::NotFound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotFound>::extract (
        _tao_any,
        CosNaming::NamingContext::NotFound::_tao_any_destructor,
        CosNaming::NamingContext::_tc_NotFound,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContext::CannotProceed>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContext::CannotProceed &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::CannotProceed>::insert_copy (
      _tao_any,
      CosNaming::NamingContext::CannotProceed::_tao_any_destructor,
      CosNaming::NamingContext::_tc_CannotProceed,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::CannotProceed *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::CannotProceed>::insert (
      _tao_any,
      CosNaming::NamingContext::CannotProceed::_tao_any_destructor,
      CosNaming::NamingContext::_tc_CannotProceed,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::CannotProceed *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContext::CannotProceed *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContext::CannotProceed *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContext::CannotProceed>::extract (
        _tao_any,
        CosNaming::NamingContext::CannotProceed::_tao_any_destructor,
        CosNaming::NamingContext::_tc_CannotProceed,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContext::InvalidName>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContext::InvalidName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::InvalidName>::insert_copy (
      _tao_any,
      CosNaming::NamingContext::InvalidName::_tao_any_destructor,
      CosNaming::NamingContext::_tc_InvalidName,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::InvalidName *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::InvalidName>::insert (
      _tao_any,
      CosNaming::NamingContext::InvalidName::_tao_any_destructor,
      CosNaming::NamingContext::_tc_InvalidName,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::InvalidName *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContext::InvalidName *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContext::InvalidName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContext::InvalidName>::extract (
        _tao_any,
        CosNaming::NamingContext::InvalidName::_tao_any_destructor,
        CosNaming::NamingContext::_tc_InvalidName,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContext::AlreadyBound>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContext::AlreadyBound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::AlreadyBound>::insert_copy (
      _tao_any,
      CosNaming::NamingContext::AlreadyBound::_tao_any_destructor,
      CosNaming::NamingContext::_tc_AlreadyBound,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::AlreadyBound *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::AlreadyBound>::insert (
      _tao_any,
      CosNaming::NamingContext::AlreadyBound::_tao_any_destructor,
      CosNaming::NamingContext::_tc_AlreadyBound,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::AlreadyBound *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContext::AlreadyBound *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContext::AlreadyBound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContext::AlreadyBound>::extract (
        _tao_any,
        CosNaming::NamingContext::AlreadyBound::_tao_any_destructor,
        CosNaming::NamingContext::_tc_AlreadyBound,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotEmpty>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContext::NotEmpty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotEmpty>::insert_copy (
      _tao_any,
      CosNaming::NamingContext::NotEmpty::_tao_any_destructor,
      CosNaming::NamingContext::_tc_NotEmpty,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotEmpty *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotEmpty>::insert (
      _tao_any,
      CosNaming::NamingContext::NotEmpty::_tao_any_destructor,
      CosNaming::NamingContext::_tc_NotEmpty,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContext::NotEmpty *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContext::NotEmpty *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContext::NotEmpty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContext::NotEmpty>::extract (
        _tao_any,
        CosNaming::NamingContext::NotEmpty::_tao_any_destructor,
        CosNaming::NamingContext::_tc_NotEmpty,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosNaming::BindingIterator>::to_object (
    CORBA::Object_ptr &_tao_elem
  ) const
{
  _tao_elem = CORBA::Object::_duplicate (this->value_);
  return 1;
}

// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::BindingIterator_ptr _tao_elem
  )
{
  CosNaming::BindingIterator_ptr _tao_objptr =
    CosNaming::BindingIterator::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::BindingIterator_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosNaming::BindingIterator>::insert (
      _tao_any,
      CosNaming::BindingIterator::_tao_any_destructor,
      CosNaming::_tc_BindingIterator,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::BindingIterator_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosNaming::BindingIterator>::extract (
        _tao_any,
        CosNaming::BindingIterator::_tao_any_destructor,
        CosNaming::_tc_BindingIterator,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosNaming::NamingContextExt>::to_object (
    CORBA::Object_ptr &_tao_elem
  ) const
{
  _tao_elem = CORBA::Object::_duplicate (this->value_);
  return 1;
}

// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContextExt_ptr _tao_elem
  )
{
  CosNaming::NamingContextExt_ptr _tao_objptr =
    CosNaming::NamingContextExt::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContextExt_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosNaming::NamingContextExt>::insert (
      _tao_any,
      CosNaming::NamingContextExt::_tao_any_destructor,
      CosNaming::_tc_NamingContextExt,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContextExt_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosNaming::NamingContextExt>::extract (
        _tao_any,
        CosNaming::NamingContextExt::_tao_any_destructor,
        CosNaming::_tc_NamingContextExt,
        _tao_elem
      );
}

// TAO_IDL - Generated from 
// be/be_visitor_exception/any_op_cs.cpp:50

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosNaming::NamingContextExt::InvalidAddress>::demarshal_value (
    TAO_InputCDR & cdr
  )
{
  CORBA::String_var id;
  
  if ((cdr >> id.out ()) == 0)
    {
      return 0;
    }
  
  ACE_TRY_NEW_ENV
    {
      this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return 0;
    }
  ACE_ENDTRY;
  
  return 1;
}

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosNaming::NamingContextExt::InvalidAddress &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContextExt::InvalidAddress>::insert_copy (
      _tao_any,
      CosNaming::NamingContextExt::InvalidAddress::_tao_any_destructor,
      CosNaming::NamingContextExt::_tc_InvalidAddress,
      _tao_elem
    );
}

// Non-copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    CosNaming::NamingContextExt::InvalidAddress *_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosNaming::NamingContextExt::InvalidAddress>::insert (
      _tao_any,
      CosNaming::NamingContextExt::InvalidAddress::_tao_any_destructor,
      CosNaming::NamingContextExt::_tc_InvalidAddress,
      _tao_elem
    );
}

// Extraction to non-const pointer (deprecated).
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosNaming::NamingContextExt::InvalidAddress *&_tao_elem
  )
{
  return _tao_any >>= const_cast<
      const CosNaming::NamingContextExt::InvalidAddress *&> (
      _tao_elem
    );
}

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosNaming::NamingContextExt::InvalidAddress *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosNaming::NamingContextExt::InvalidAddress>::extract (
        _tao_any,
        CosNaming::NamingContextExt::InvalidAddress::_tao_any_destructor,
        CosNaming::NamingContextExt::_tc_InvalidAddress,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_structure/cdr_op_cs.cpp:61

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NameComponent &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.id.in ()) &&
    (strm << _tao_aggregate.kind.in ());
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::NameComponent &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.id.out ()) &&
    (strm >> _tao_aggregate.kind.out ());
}

// TAO_IDL - Generated from
// be/be_visitor_sequence/cdr_op_cs.cpp:96

#if !defined _TAO_CDR_OP_CosNaming_Name_CPP_
#define _TAO_CDR_OP_CosNaming_Name_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::Name &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm << _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::Name &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len;
  
  if (strm >> _tao_seq_len)
    {
      // Add a check to the length of the sequence
      // to make sure it does not exceed the length
      // of the stream. (See bug 58.)
      if (_tao_seq_len > strm.length ())
        {
          return 0;
        }
      
      // Set the length of the sequence.
      _tao_sequence.length (_tao_seq_len);
      
      // If length is 0 we return true.
      if (0 >= _tao_seq_len) 
        {
          return 1;
        }
      
      // Retrieve all the elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm >> _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosNaming_Name_CPP_ */

// TAO_IDL - Generated from
// be/be_visitor_enum/cdr_op_cs.cpp:51

CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CosNaming::BindingType &_tao_enumval)
{
  CORBA::ULong _tao_temp = _tao_enumval;
  return strm << _tao_temp;
}

CORBA::Boolean operator>> (TAO_InputCDR &strm, CosNaming::BindingType &_tao_enumval)
{
  CORBA::ULong _tao_temp = 0;
  CORBA::Boolean _tao_result = strm >> _tao_temp;
  
  if (_tao_result == 1)
    {
      _tao_enumval = static_cast<CosNaming::BindingType> (_tao_temp);
    }
  
  return _tao_result;
}

// TAO_IDL - Generated from
// be/be_visitor_structure/cdr_op_cs.cpp:61

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::Binding &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.binding_name) &&
    (strm << _tao_aggregate.binding_type);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::Binding &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.binding_name) &&
    (strm >> _tao_aggregate.binding_type);
}

// TAO_IDL - Generated from
// be/be_visitor_sequence/cdr_op_cs.cpp:96

#if !defined _TAO_CDR_OP_CosNaming_BindingList_CPP_
#define _TAO_CDR_OP_CosNaming_BindingList_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::BindingList &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm << _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::BindingList &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len;
  
  if (strm >> _tao_seq_len)
    {
      // Add a check to the length of the sequence
      // to make sure it does not exceed the length
      // of the stream. (See bug 58.)
      if (_tao_seq_len > strm.length ())
        {
          return 0;
        }
      
      // Set the length of the sequence.
      _tao_sequence.length (_tao_seq_len);
      
      // If length is 0 we return true.
      if (0 >= _tao_seq_len) 
        {
          return 1;
        }
      
      // Retrieve all the elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm >> _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosNaming_BindingList_CPP_ */

// TAO_IDL - Generated from
// be/be_visitor_enum/cdr_op_cs.cpp:51

CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CosNaming::NamingContext::NotFoundReason &_tao_enumval)
{
  CORBA::ULong _tao_temp = _tao_enumval;
  return strm << _tao_temp;
}

CORBA::Boolean operator>> (TAO_InputCDR &strm, CosNaming::NamingContext::NotFoundReason &_tao_enumval)
{
  CORBA::ULong _tao_temp = 0;
  CORBA::Boolean _tao_result = strm >> _tao_temp;
  
  if (_tao_result == 1)
    {
      _tao_enumval = static_cast<CosNaming::NamingContext::NotFoundReason> (_tao_temp);
    }
  
  return _tao_result;
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext::NotFound &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.why) &&
        (strm << _tao_aggregate.rest_of_name)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::NamingContext::NotFound &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.why) &&
    (strm >> _tao_aggregate.rest_of_name)
  )
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext::CannotProceed &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        CORBA::Object::marshal (
            _tao_aggregate.cxt.in (),
            strm
          ) &&
        (strm << _tao_aggregate.rest_of_name)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::NamingContext::CannotProceed &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.cxt.out ()) &&
    (strm >> _tao_aggregate.rest_of_name)
  )
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext::InvalidName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosNaming::NamingContext::InvalidName&
  )
{
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext::AlreadyBound &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosNaming::NamingContext::AlreadyBound&
  )
{
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext::NotEmpty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosNaming::NamingContext::NotEmpty&
  )
{
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContext_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::NamingContext_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosNaming::NamingContext RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosNaming__TAO_NamingContext_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::BindingIterator_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::BindingIterator_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosNaming::BindingIterator RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosNaming__TAO_BindingIterator_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContextExt::InvalidAddress &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosNaming::NamingContextExt::InvalidAddress&
  )
{
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosNaming::NamingContextExt_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosNaming::NamingContextExt_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosNaming::NamingContextExt RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosNaming__TAO_NamingContextExt_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

