// -*- 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 "PortableGroupC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Messaging/Asynch_Invocation_Adapter.h"
#include "tao/Valuetype/ValueFactory.h"
#include "tao/Object_T.h"
#include "tao/ORB_Core.h"
#include "tao/Typecode.h"
#include "tao/Any_Impl_T.h"
#include "tao/Any_Dual_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 "PortableGroupC.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:582

#if !defined (_CORBA_ANY__ARG_TRAITS_CS_)
#define _CORBA_ANY__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<CORBA::Any>
    : public
        Var_Size_Arg_Traits_T<
            CORBA::Any,
            CORBA::Any_var,
            CORBA::Any_out
          >
  {
  };

#endif /* end #if !defined */
  
  // 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_PortableGroup_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_PortableGroup_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_PortableGroup_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_PortableGroup_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_PortableGroup_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_arg_traits.cpp:379

#if !defined (_PORTABLEGROUP_OBJECTGROUPS__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_OBJECTGROUPS__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::ObjectGroups>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::ObjectGroups,
            PortableGroup::ObjectGroups_var,
            PortableGroup::ObjectGroups_out
          >
  {
  };

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

#if !defined (_PORTABLEGROUP_PROPERTIES__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_PROPERTIES__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::Properties>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::Properties,
            PortableGroup::Properties_var,
            PortableGroup::Properties_out
          >
  {
  };

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

#if !defined (_PORTABLEGROUP_LOCATIONS__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_LOCATIONS__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::Locations>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::Locations,
            PortableGroup::Locations_var,
            PortableGroup::Locations_out
          >
  {
  };

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

#if !defined (_PORTABLEGROUP_FACTORYINFO__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_FACTORYINFO__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::FactoryInfo>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::FactoryInfo,
            PortableGroup::FactoryInfo_var,
            PortableGroup::FactoryInfo_out
          >
  {
  };

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

#if !defined (_PORTABLEGROUP_FACTORYINFOS__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_FACTORYINFOS__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::FactoryInfos>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::FactoryInfos,
            PortableGroup::FactoryInfos_var,
            PortableGroup::FactoryInfos_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_PORTABLEGROUP_AMI_PROPERTYMANAGEREXCEPTIONHOLDER__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_AMI_PROPERTYMANAGEREXCEPTIONHOLDER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::AMI_PropertyManagerExceptionHolder>
    : public
        Object_Arg_Traits_T<
            PortableGroup::AMI_PropertyManagerExceptionHolder *,
            PortableGroup::AMI_PropertyManagerExceptionHolder_var,
            PortableGroup::AMI_PropertyManagerExceptionHolder_out,
            TAO::Value_Traits<PortableGroup::AMI_PropertyManagerExceptionHolder>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_PORTABLEGROUP_AMI_OBJECTGROUPMANAGEREXCEPTIONHOLDER__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_AMI_OBJECTGROUPMANAGEREXCEPTIONHOLDER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>
    : public
        Object_Arg_Traits_T<
            PortableGroup::AMI_ObjectGroupManagerExceptionHolder *,
            PortableGroup::AMI_ObjectGroupManagerExceptionHolder_var,
            PortableGroup::AMI_ObjectGroupManagerExceptionHolder_out,
            TAO::Value_Traits<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_PORTABLEGROUP_AMI_GENERICFACTORYEXCEPTIONHOLDER__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_AMI_GENERICFACTORYEXCEPTIONHOLDER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::AMI_GenericFactoryExceptionHolder>
    : public
        Object_Arg_Traits_T<
            PortableGroup::AMI_GenericFactoryExceptionHolder *,
            PortableGroup::AMI_GenericFactoryExceptionHolder_var,
            PortableGroup::AMI_GenericFactoryExceptionHolder_out,
            TAO::Value_Traits<PortableGroup::AMI_GenericFactoryExceptionHolder>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_PORTABLEGROUP_AMI_FACTORYREGISTRYEXCEPTIONHOLDER__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_AMI_FACTORYREGISTRYEXCEPTIONHOLDER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::AMI_FactoryRegistryExceptionHolder>
    : public
        Object_Arg_Traits_T<
            PortableGroup::AMI_FactoryRegistryExceptionHolder *,
            PortableGroup::AMI_FactoryRegistryExceptionHolder_var,
            PortableGroup::AMI_FactoryRegistryExceptionHolder_out,
            TAO::Value_Traits<PortableGroup::AMI_FactoryRegistryExceptionHolder>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_PORTABLEGROUP_AMI_TAO_UPDATEOBJECTGROUPEXCEPTIONHOLDER__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_AMI_TAO_UPDATEOBJECTGROUPEXCEPTIONHOLDER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_PortableGroup_Export Arg_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>
    : public
        Object_Arg_Traits_T<
            PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *,
            PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder_var,
            PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder_out,
            TAO::Value_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>
          >
  {
  };

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


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

#if !defined (_PORTABLEGROUP_GROUPIIOPPROFILE_CS_)
#define _PORTABLEGROUP_GROUPIIOPPROFILE_CS_

PortableGroup::GroupIIOPProfile::GroupIIOPProfile (void)
{}

PortableGroup::GroupIIOPProfile::GroupIIOPProfile (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (max)
{}

PortableGroup::GroupIIOPProfile::GroupIIOPProfile (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Octet * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (max, length, buffer, release)
{}

PortableGroup::GroupIIOPProfile::GroupIIOPProfile (
    const GroupIIOPProfile &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (seq)
{}

PortableGroup::GroupIIOPProfile::~GroupIIOPProfile (void)
{}

void PortableGroup::GroupIIOPProfile::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  GroupIIOPProfile * _tao_tmp_pointer =
    static_cast<GroupIIOPProfile *> (_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_PortableGroup_GroupIIOPProfile[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4772), 
  ACE_NTOHL (0x6f757049), 
  ACE_NTOHL (0x494f5050), 
  ACE_NTOHL (0x726f6669), 
  ACE_NTOHL (0x6c653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/GroupIIOPProfile:1.0
    17,
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x7049494f), 
  ACE_NTOHL (0x5050726f), 
  ACE_NTOHL (0x66696c65), 
  ACE_NTOHL (0x0),  // name = GroupIIOPProfile
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_octet,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_GroupIIOPProfile (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_GroupIIOPProfile),
    (char *) &_oc_PortableGroup_GroupIIOPProfile,
    0,
    sizeof (PortableGroup::GroupIIOPProfile)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_GroupIIOPProfile =
    &_tc_TAO_tc_PortableGroup_GroupIIOPProfile;
}

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

static const CORBA::Long _oc_PortableGroup_TypeId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  37,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5479), 
  ACE_NTOHL (0x70654964), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/TypeId:1.0
    7,
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x49640000),  // name = TypeId
    CORBA::tk_alias, // typecode kind for typedefs
  72, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x434f5242), 
    ACE_NTOHL (0x412f5265), 
    ACE_NTOHL (0x706f7369), 
    ACE_NTOHL (0x746f7279), 
    ACE_NTOHL (0x49643a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CORBA/RepositoryId:1.0
        13,
    ACE_NTOHL (0x5265706f), 
    ACE_NTOHL (0x7369746f), 
    ACE_NTOHL (0x72794964), 
    ACE_NTOHL (0x0),  // name = RepositoryId
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_TypeId (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_TypeId),
    (char *) &_oc_PortableGroup_TypeId,
    0,
    sizeof (PortableGroup::TypeId)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_TypeId =
    &_tc_TAO_tc_PortableGroup_TypeId;
}

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

static const CORBA::Long _oc_PortableGroup_ObjectGroup[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x703a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/ObjectGroup:1.0
    12,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f757000),  // name = ObjectGroup
    CORBA::tk_objref,
  52, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    29,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x434f5242), 
    ACE_NTOHL (0x412f4f62), 
    ACE_NTOHL (0x6a656374), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CORBA/Object:1.0
        7,
    ACE_NTOHL (0x4f626a65), 
    ACE_NTOHL (0x63740000),  // name = Object
    
};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectGroup (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_ObjectGroup),
    (char *) &_oc_PortableGroup_ObjectGroup,
    0,
    sizeof (PortableGroup::ObjectGroup)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectGroup =
    &_tc_TAO_tc_PortableGroup_ObjectGroup;
}

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

#if !defined (_PORTABLEGROUP_OBJECTGROUPS_CS_)
#define _PORTABLEGROUP_OBJECTGROUPS_CS_

PortableGroup::ObjectGroups::ObjectGroups (void)
{}

PortableGroup::ObjectGroups::ObjectGroups (
    CORBA::ULong max
  )
  : TAO_Unbounded_Pseudo_Sequence<
        PortableGroup::ObjectGroup
      >
    (max)
{}

PortableGroup::ObjectGroups::ObjectGroups (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Object_ptr * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Pseudo_Sequence<
        PortableGroup::ObjectGroup
      >
    (max, length, buffer, release)
{}

PortableGroup::ObjectGroups::ObjectGroups (
    const ObjectGroups &seq
  )
  : TAO_Unbounded_Pseudo_Sequence<
        PortableGroup::ObjectGroup
      >
    (seq)
{}

PortableGroup::ObjectGroups::~ObjectGroups (void)
{}

void PortableGroup::ObjectGroups::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  ObjectGroups * _tao_tmp_pointer =
    static_cast<ObjectGroups *> (_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_PortableGroup_ObjectGroups[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x70733a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/ObjectGroups:1.0
    13,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f757073), 
  ACE_NTOHL (0x0),  // name = ObjectGroups
    CORBA::tk_sequence, // typecode kind
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    128, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      42,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f4f62), 
      ACE_NTOHL (0x6a656374), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x703a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/ObjectGroup:1.0
            12,
      ACE_NTOHL (0x4f626a65), 
      ACE_NTOHL (0x63744772), 
      ACE_NTOHL (0x6f757000),  // name = ObjectGroup
            CORBA::tk_objref,
      52, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        29,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x434f5242), 
        ACE_NTOHL (0x412f4f62), 
        ACE_NTOHL (0x6a656374), 
        ACE_NTOHL (0x3a312e30), 
        ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CORBA/Object:1.0
                7,
        ACE_NTOHL (0x4f626a65), 
        ACE_NTOHL (0x63740000),  // name = Object
        

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectGroups (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_ObjectGroups),
    (char *) &_oc_PortableGroup_ObjectGroups,
    0,
    sizeof (PortableGroup::ObjectGroups)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectGroups =
    &_tc_TAO_tc_PortableGroup_ObjectGroups;
}

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

static const CORBA::Long _oc_PortableGroup_Name[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  35,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
    5,
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = 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_PortableGroup_Name (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Name),
    (char *) &_oc_PortableGroup_Name,
    0,
    sizeof (PortableGroup::Name)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Name =
    &_tc_TAO_tc_PortableGroup_Name;
}

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

static const CORBA::Long _oc_PortableGroup_Value[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  36,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5661), 
  ACE_NTOHL (0x6c75653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
    6,
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x65000000),  // name = Value
    CORBA::tk_any,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_Value (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Value),
    (char *) &_oc_PortableGroup_Value,
    0,
    sizeof (PortableGroup::Value)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Value =
    &_tc_TAO_tc_PortableGroup_Value;
}

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

static const CORBA::Long _oc_PortableGroup_Property[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74793a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
    9,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x0),  // name = Property
  2, // member count
    4,
  ACE_NTOHL (0x6e616d00),  // name = nam
    CORBA::tk_alias, // typecode kind for typedefs
  376, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = 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,



  4,
  ACE_NTOHL (0x76616c00),  // name = val
    CORBA::tk_alias, // typecode kind for typedefs
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f5661), 
    ACE_NTOHL (0x6c75653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
        6,
    ACE_NTOHL (0x56616c75), 
    ACE_NTOHL (0x65000000),  // name = Value
        CORBA::tk_any,


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_Property (
    CORBA::tk_struct,
    sizeof (_oc_PortableGroup_Property),
    (char *) &_oc_PortableGroup_Property,
    0,
    sizeof (PortableGroup::Property)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Property =
    &_tc_TAO_tc_PortableGroup_Property;
}

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

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

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

#if !defined (_PORTABLEGROUP_PROPERTIES_CS_)
#define _PORTABLEGROUP_PROPERTIES_CS_

PortableGroup::Properties::Properties (void)
{}

PortableGroup::Properties::Properties (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Property
      >
    (max)
{}

PortableGroup::Properties::Properties (
    CORBA::ULong max,
    CORBA::ULong length,
    PortableGroup::Property * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Property
      >
    (max, length, buffer, release)
{}

PortableGroup::Properties::Properties (
    const Properties &seq
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Property
      >
    (seq)
{}

PortableGroup::Properties::~Properties (void)
{}

void PortableGroup::Properties::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  Properties * _tao_tmp_pointer =
    static_cast<Properties *> (_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_PortableGroup_Properties[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74696573), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
    11,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727469), 
  ACE_NTOHL (0x65730000),  // name = Properties
    CORBA::tk_sequence, // typecode kind
  552, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    536, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74793a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
            9,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x0),  // name = Property
      2, // member count
            4,
      ACE_NTOHL (0x6e616d00),  // name = nam
            CORBA::tk_alias, // typecode kind for typedefs
      376, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        35,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4e61), 
        ACE_NTOHL (0x6d653a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                5,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = 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,



      4,
      ACE_NTOHL (0x76616c00),  // name = val
            CORBA::tk_alias, // typecode kind for typedefs
      60, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        36,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f5661), 
        ACE_NTOHL (0x6c75653a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                6,
        ACE_NTOHL (0x56616c75), 
        ACE_NTOHL (0x65000000),  // name = Value
                CORBA::tk_any,



    0U,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_Properties (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Properties),
    (char *) &_oc_PortableGroup_Properties,
    0,
    sizeof (PortableGroup::Properties)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Properties =
    &_tc_TAO_tc_PortableGroup_Properties;
}

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

static const CORBA::Long _oc_PortableGroup_Location[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4c6f), 
  ACE_NTOHL (0x63617469), 
  ACE_NTOHL (0x6f6e3a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
    9,
  ACE_NTOHL (0x4c6f6361), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x0),  // name = Location
    CORBA::tk_alias, // typecode kind for typedefs
  376, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = 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_PortableGroup_Location (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Location),
    (char *) &_oc_PortableGroup_Location,
    0,
    sizeof (PortableGroup::Location)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Location =
    &_tc_TAO_tc_PortableGroup_Location;
}

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

#if !defined (_PORTABLEGROUP_LOCATIONS_CS_)
#define _PORTABLEGROUP_LOCATIONS_CS_

PortableGroup::Locations::Locations (void)
{}

PortableGroup::Locations::Locations (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Location
      >
    (max)
{}

PortableGroup::Locations::Locations (
    CORBA::ULong max,
    CORBA::ULong length,
    PortableGroup::Location * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Location
      >
    (max, length, buffer, release)
{}

PortableGroup::Locations::Locations (
    const Locations &seq
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::Location
      >
    (seq)
{}

PortableGroup::Locations::~Locations (void)
{}

void PortableGroup::Locations::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  Locations * _tao_tmp_pointer =
    static_cast<Locations *> (_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_PortableGroup_Locations[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4c6f), 
  ACE_NTOHL (0x63617469), 
  ACE_NTOHL (0x6f6e733a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Locations:1.0
    10,
  ACE_NTOHL (0x4c6f6361), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x73000000),  // name = Locations
    CORBA::tk_sequence, // typecode kind
  464, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    448, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f4c6f), 
      ACE_NTOHL (0x63617469), 
      ACE_NTOHL (0x6f6e3a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
            9,
      ACE_NTOHL (0x4c6f6361), 
      ACE_NTOHL (0x74696f6e), 
      ACE_NTOHL (0x0),  // name = Location
            CORBA::tk_alias, // typecode kind for typedefs
      376, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        35,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4e61), 
        ACE_NTOHL (0x6d653a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                5,
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = 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,




    0U,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_Locations (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Locations),
    (char *) &_oc_PortableGroup_Locations,
    0,
    sizeof (PortableGroup::Locations)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Locations =
    &_tc_TAO_tc_PortableGroup_Locations;
}

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

static const CORBA::Long _oc_PortableGroup_Criteria[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4372), 
  ACE_NTOHL (0x69746572), 
  ACE_NTOHL (0x69613a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
    9,
  ACE_NTOHL (0x43726974), 
  ACE_NTOHL (0x65726961), 
  ACE_NTOHL (0x0),  // name = Criteria
    CORBA::tk_alias, // typecode kind for typedefs
  628, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    41,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f5072), 
    ACE_NTOHL (0x6f706572), 
    ACE_NTOHL (0x74696573), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
        11,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727469), 
    ACE_NTOHL (0x65730000),  // name = Properties
        CORBA::tk_sequence, // typecode kind
    552, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      536, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        39,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f5072), 
        ACE_NTOHL (0x6f706572), 
        ACE_NTOHL (0x74793a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                9,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x0),  // name = Property
        2, // member count
                4,
        ACE_NTOHL (0x6e616d00),  // name = nam
                CORBA::tk_alias, // typecode kind for typedefs
        376, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          35,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f4e61), 
          ACE_NTOHL (0x6d653a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                    5,
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = 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,



        4,
        ACE_NTOHL (0x76616c00),  // name = val
                CORBA::tk_alias, // typecode kind for typedefs
        60, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          36,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f5661), 
          ACE_NTOHL (0x6c75653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                    6,
          ACE_NTOHL (0x56616c75), 
          ACE_NTOHL (0x65000000),  // name = Value
                    CORBA::tk_any,



      0U,


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_Criteria (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_Criteria),
    (char *) &_oc_PortableGroup_Criteria,
    0,
    sizeof (PortableGroup::Criteria)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_Criteria =
    &_tc_TAO_tc_PortableGroup_Criteria;
}

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

static const CORBA::Long _oc_PortableGroup_FactoryInfo[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4661), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x79496e66), 
  ACE_NTOHL (0x6f3a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/FactoryInfo:1.0
    12,
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727949), 
  ACE_NTOHL (0x6e666f00),  // name = FactoryInfo
  3, // member count
    12,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x66616374), 
  ACE_NTOHL (0x6f727900),  // name = the_factory
    CORBA::tk_objref, // typecode kind
  76, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    45,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4765), 
    ACE_NTOHL (0x6e657269), 
    ACE_NTOHL (0x63466163), 
    ACE_NTOHL (0x746f7279), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/GenericFactory:1.0
        15,
    ACE_NTOHL (0x47656e65), 
    ACE_NTOHL (0x72696346), 
    ACE_NTOHL (0x6163746f), 
    ACE_NTOHL (0x72790000),  // name = GenericFactory
    
  13,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x6c6f6361), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x0),  // name = the_location
    CORBA::tk_alias, // typecode kind for typedefs
  448, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4c6f), 
    ACE_NTOHL (0x63617469), 
    ACE_NTOHL (0x6f6e3a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
        9,
    ACE_NTOHL (0x4c6f6361), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = Location
        CORBA::tk_alias, // typecode kind for typedefs
    376, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f4e61), 
      ACE_NTOHL (0x6d653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
            5,
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x0),  // name = 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 (0x7468655f), 
  ACE_NTOHL (0x63726974), 
  ACE_NTOHL (0x65726961), 
  ACE_NTOHL (0x0),  // name = the_criteria
    CORBA::tk_alias, // typecode kind for typedefs
  700, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4372), 
    ACE_NTOHL (0x69746572), 
    ACE_NTOHL (0x69613a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
        9,
    ACE_NTOHL (0x43726974), 
    ACE_NTOHL (0x65726961), 
    ACE_NTOHL (0x0),  // name = Criteria
        CORBA::tk_alias, // typecode kind for typedefs
    628, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      41,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74696573), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
            11,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727469), 
      ACE_NTOHL (0x65730000),  // name = Properties
            CORBA::tk_sequence, // typecode kind
      552, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_struct, // typecode kind
        536, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f5072), 
          ACE_NTOHL (0x6f706572), 
          ACE_NTOHL (0x74793a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                    9,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x0),  // name = Property
          2, // member count
                    4,
          ACE_NTOHL (0x6e616d00),  // name = nam
                    CORBA::tk_alias, // typecode kind for typedefs
          376, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f4e61), 
            ACE_NTOHL (0x6d653a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                        5,
            ACE_NTOHL (0x4e616d65), 
            ACE_NTOHL (0x0),  // name = 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,



          4,
          ACE_NTOHL (0x76616c00),  // name = val
                    CORBA::tk_alias, // typecode kind for typedefs
          60, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            36,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f5661), 
            ACE_NTOHL (0x6c75653a), 
            ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                        6,
            ACE_NTOHL (0x56616c75), 
            ACE_NTOHL (0x65000000),  // name = Value
                        CORBA::tk_any,



        0U,



};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_FactoryInfo (
    CORBA::tk_struct,
    sizeof (_oc_PortableGroup_FactoryInfo),
    (char *) &_oc_PortableGroup_FactoryInfo,
    0,
    sizeof (PortableGroup::FactoryInfo)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_FactoryInfo =
    &_tc_TAO_tc_PortableGroup_FactoryInfo;
}

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

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

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

#if !defined (_PORTABLEGROUP_FACTORYINFOS_CS_)
#define _PORTABLEGROUP_FACTORYINFOS_CS_

PortableGroup::FactoryInfos::FactoryInfos (void)
{}

PortableGroup::FactoryInfos::FactoryInfos (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::FactoryInfo
      >
    (max)
{}

PortableGroup::FactoryInfos::FactoryInfos (
    CORBA::ULong max,
    CORBA::ULong length,
    PortableGroup::FactoryInfo * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::FactoryInfo
      >
    (max, length, buffer, release)
{}

PortableGroup::FactoryInfos::FactoryInfos (
    const FactoryInfos &seq
  )
  : TAO_Unbounded_Sequence<
        PortableGroup::FactoryInfo
      >
    (seq)
{}

PortableGroup::FactoryInfos::~FactoryInfos (void)
{}

void PortableGroup::FactoryInfos::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  FactoryInfos * _tao_tmp_pointer =
    static_cast<FactoryInfos *> (_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_PortableGroup_FactoryInfos[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4661), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x79496e66), 
  ACE_NTOHL (0x6f733a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/FactoryInfos:1.0
    13,
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727949), 
  ACE_NTOHL (0x6e666f73), 
  ACE_NTOHL (0x0),  // name = FactoryInfos
    CORBA::tk_sequence, // typecode kind
  1392, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    1376, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      42,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f4661), 
      ACE_NTOHL (0x63746f72), 
      ACE_NTOHL (0x79496e66), 
      ACE_NTOHL (0x6f3a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/FactoryInfo:1.0
            12,
      ACE_NTOHL (0x46616374), 
      ACE_NTOHL (0x6f727949), 
      ACE_NTOHL (0x6e666f00),  // name = FactoryInfo
      3, // member count
            12,
      ACE_NTOHL (0x7468655f), 
      ACE_NTOHL (0x66616374), 
      ACE_NTOHL (0x6f727900),  // name = the_factory
            CORBA::tk_objref, // typecode kind
      76, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        45,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4765), 
        ACE_NTOHL (0x6e657269), 
        ACE_NTOHL (0x63466163), 
        ACE_NTOHL (0x746f7279), 
        ACE_NTOHL (0x3a312e30), 
        ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/GenericFactory:1.0
                15,
        ACE_NTOHL (0x47656e65), 
        ACE_NTOHL (0x72696346), 
        ACE_NTOHL (0x6163746f), 
        ACE_NTOHL (0x72790000),  // name = GenericFactory
        
      13,
      ACE_NTOHL (0x7468655f), 
      ACE_NTOHL (0x6c6f6361), 
      ACE_NTOHL (0x74696f6e), 
      ACE_NTOHL (0x0),  // name = the_location
            CORBA::tk_alias, // typecode kind for typedefs
      448, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        39,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4c6f), 
        ACE_NTOHL (0x63617469), 
        ACE_NTOHL (0x6f6e3a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
                9,
        ACE_NTOHL (0x4c6f6361), 
        ACE_NTOHL (0x74696f6e), 
        ACE_NTOHL (0x0),  // name = Location
                CORBA::tk_alias, // typecode kind for typedefs
        376, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          35,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f4e61), 
          ACE_NTOHL (0x6d653a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                    5,
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = 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 (0x7468655f), 
      ACE_NTOHL (0x63726974), 
      ACE_NTOHL (0x65726961), 
      ACE_NTOHL (0x0),  // name = the_criteria
            CORBA::tk_alias, // typecode kind for typedefs
      700, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        39,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4372), 
        ACE_NTOHL (0x69746572), 
        ACE_NTOHL (0x69613a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
                9,
        ACE_NTOHL (0x43726974), 
        ACE_NTOHL (0x65726961), 
        ACE_NTOHL (0x0),  // name = Criteria
                CORBA::tk_alias, // typecode kind for typedefs
        628, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          41,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f5072), 
          ACE_NTOHL (0x6f706572), 
          ACE_NTOHL (0x74696573), 
          ACE_NTOHL (0x3a312e30), 
          ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
                    11,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727469), 
          ACE_NTOHL (0x65730000),  // name = Properties
                    CORBA::tk_sequence, // typecode kind
          552, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            CORBA::tk_struct, // typecode kind
            536, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              39,
              ACE_NTOHL (0x49444c3a), 
              ACE_NTOHL (0x6f6d672e), 
              ACE_NTOHL (0x6f72672f), 
              ACE_NTOHL (0x506f7274), 
              ACE_NTOHL (0x61626c65), 
              ACE_NTOHL (0x47726f75), 
              ACE_NTOHL (0x702f5072), 
              ACE_NTOHL (0x6f706572), 
              ACE_NTOHL (0x74793a31), 
              ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                            9,
              ACE_NTOHL (0x50726f70), 
              ACE_NTOHL (0x65727479), 
              ACE_NTOHL (0x0),  // name = Property
              2, // member count
                            4,
              ACE_NTOHL (0x6e616d00),  // name = nam
                            CORBA::tk_alias, // typecode kind for typedefs
              376, // encapsulation length
                TAO_ENCAP_BYTE_ORDER, // byte order
                35,
                ACE_NTOHL (0x49444c3a), 
                ACE_NTOHL (0x6f6d672e), 
                ACE_NTOHL (0x6f72672f), 
                ACE_NTOHL (0x506f7274), 
                ACE_NTOHL (0x61626c65), 
                ACE_NTOHL (0x47726f75), 
                ACE_NTOHL (0x702f4e61), 
                ACE_NTOHL (0x6d653a31), 
                ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                                5,
                ACE_NTOHL (0x4e616d65), 
                ACE_NTOHL (0x0),  // name = 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,



              4,
              ACE_NTOHL (0x76616c00),  // name = val
                            CORBA::tk_alias, // typecode kind for typedefs
              60, // encapsulation length
                TAO_ENCAP_BYTE_ORDER, // byte order
                36,
                ACE_NTOHL (0x49444c3a), 
                ACE_NTOHL (0x6f6d672e), 
                ACE_NTOHL (0x6f72672f), 
                ACE_NTOHL (0x506f7274), 
                ACE_NTOHL (0x61626c65), 
                ACE_NTOHL (0x47726f75), 
                ACE_NTOHL (0x702f5661), 
                ACE_NTOHL (0x6c75653a), 
                ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                                6,
                ACE_NTOHL (0x56616c75), 
                ACE_NTOHL (0x65000000),  // name = Value
                                CORBA::tk_any,



            0U,




    0U,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_FactoryInfos (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_FactoryInfos),
    (char *) &_oc_PortableGroup_FactoryInfos,
    0,
    sizeof (PortableGroup::FactoryInfos)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_FactoryInfos =
    &_tc_TAO_tc_PortableGroup_FactoryInfos;
}

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

static const CORBA::Long _oc_PortableGroup_MembershipStyleValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  51,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4d65), 
  ACE_NTOHL (0x6d626572), 
  ACE_NTOHL (0x73686970), 
  ACE_NTOHL (0x5374796c), 
  ACE_NTOHL (0x6556616c), 
  ACE_NTOHL (0x75653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/MembershipStyleValue:1.0
    21,
  ACE_NTOHL (0x4d656d62), 
  ACE_NTOHL (0x65727368), 
  ACE_NTOHL (0x69705374), 
  ACE_NTOHL (0x796c6556), 
  ACE_NTOHL (0x616c7565), 
  ACE_NTOHL (0x0),  // name = MembershipStyleValue
    CORBA::tk_long,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_MembershipStyleValue (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_MembershipStyleValue),
    (char *) &_oc_PortableGroup_MembershipStyleValue,
    0,
    sizeof (PortableGroup::MembershipStyleValue)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_MembershipStyleValue =
    &_tc_TAO_tc_PortableGroup_MembershipStyleValue;
}

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

static const CORBA::Long _oc_PortableGroup_FactoriesValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4661), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x69657356), 
  ACE_NTOHL (0x616c7565), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/FactoriesValue:1.0
    15,
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f726965), 
  ACE_NTOHL (0x7356616c), 
  ACE_NTOHL (0x75650000),  // name = FactoriesValue
    CORBA::tk_alias, // typecode kind for typedefs
  1472, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4661), 
    ACE_NTOHL (0x63746f72), 
    ACE_NTOHL (0x79496e66), 
    ACE_NTOHL (0x6f733a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/FactoryInfos:1.0
        13,
    ACE_NTOHL (0x46616374), 
    ACE_NTOHL (0x6f727949), 
    ACE_NTOHL (0x6e666f73), 
    ACE_NTOHL (0x0),  // name = FactoryInfos
        CORBA::tk_sequence, // typecode kind
    1392, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      1376, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        42,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x506f7274), 
        ACE_NTOHL (0x61626c65), 
        ACE_NTOHL (0x47726f75), 
        ACE_NTOHL (0x702f4661), 
        ACE_NTOHL (0x63746f72), 
        ACE_NTOHL (0x79496e66), 
        ACE_NTOHL (0x6f3a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/FactoryInfo:1.0
                12,
        ACE_NTOHL (0x46616374), 
        ACE_NTOHL (0x6f727949), 
        ACE_NTOHL (0x6e666f00),  // name = FactoryInfo
        3, // member count
                12,
        ACE_NTOHL (0x7468655f), 
        ACE_NTOHL (0x66616374), 
        ACE_NTOHL (0x6f727900),  // name = the_factory
                CORBA::tk_objref, // typecode kind
        76, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          45,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f4765), 
          ACE_NTOHL (0x6e657269), 
          ACE_NTOHL (0x63466163), 
          ACE_NTOHL (0x746f7279), 
          ACE_NTOHL (0x3a312e30), 
          ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/GenericFactory:1.0
                    15,
          ACE_NTOHL (0x47656e65), 
          ACE_NTOHL (0x72696346), 
          ACE_NTOHL (0x6163746f), 
          ACE_NTOHL (0x72790000),  // name = GenericFactory
          
        13,
        ACE_NTOHL (0x7468655f), 
        ACE_NTOHL (0x6c6f6361), 
        ACE_NTOHL (0x74696f6e), 
        ACE_NTOHL (0x0),  // name = the_location
                CORBA::tk_alias, // typecode kind for typedefs
        448, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f4c6f), 
          ACE_NTOHL (0x63617469), 
          ACE_NTOHL (0x6f6e3a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
                    9,
          ACE_NTOHL (0x4c6f6361), 
          ACE_NTOHL (0x74696f6e), 
          ACE_NTOHL (0x0),  // name = Location
                    CORBA::tk_alias, // typecode kind for typedefs
          376, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f4e61), 
            ACE_NTOHL (0x6d653a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                        5,
            ACE_NTOHL (0x4e616d65), 
            ACE_NTOHL (0x0),  // name = 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 (0x7468655f), 
        ACE_NTOHL (0x63726974), 
        ACE_NTOHL (0x65726961), 
        ACE_NTOHL (0x0),  // name = the_criteria
                CORBA::tk_alias, // typecode kind for typedefs
        700, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f4372), 
          ACE_NTOHL (0x69746572), 
          ACE_NTOHL (0x69613a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
                    9,
          ACE_NTOHL (0x43726974), 
          ACE_NTOHL (0x65726961), 
          ACE_NTOHL (0x0),  // name = Criteria
                    CORBA::tk_alias, // typecode kind for typedefs
          628, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            41,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f5072), 
            ACE_NTOHL (0x6f706572), 
            ACE_NTOHL (0x74696573), 
            ACE_NTOHL (0x3a312e30), 
            ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
                        11,
            ACE_NTOHL (0x50726f70), 
            ACE_NTOHL (0x65727469), 
            ACE_NTOHL (0x65730000),  // name = Properties
                        CORBA::tk_sequence, // typecode kind
            552, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              CORBA::tk_struct, // typecode kind
              536, // encapsulation length
                TAO_ENCAP_BYTE_ORDER, // byte order
                39,
                ACE_NTOHL (0x49444c3a), 
                ACE_NTOHL (0x6f6d672e), 
                ACE_NTOHL (0x6f72672f), 
                ACE_NTOHL (0x506f7274), 
                ACE_NTOHL (0x61626c65), 
                ACE_NTOHL (0x47726f75), 
                ACE_NTOHL (0x702f5072), 
                ACE_NTOHL (0x6f706572), 
                ACE_NTOHL (0x74793a31), 
                ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                                9,
                ACE_NTOHL (0x50726f70), 
                ACE_NTOHL (0x65727479), 
                ACE_NTOHL (0x0),  // name = Property
                2, // member count
                                4,
                ACE_NTOHL (0x6e616d00),  // name = nam
                                CORBA::tk_alias, // typecode kind for typedefs
                376, // encapsulation length
                  TAO_ENCAP_BYTE_ORDER, // byte order
                  35,
                  ACE_NTOHL (0x49444c3a), 
                  ACE_NTOHL (0x6f6d672e), 
                  ACE_NTOHL (0x6f72672f), 
                  ACE_NTOHL (0x506f7274), 
                  ACE_NTOHL (0x61626c65), 
                  ACE_NTOHL (0x47726f75), 
                  ACE_NTOHL (0x702f4e61), 
                  ACE_NTOHL (0x6d653a31), 
                  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                                    5,
                  ACE_NTOHL (0x4e616d65), 
                  ACE_NTOHL (0x0),  // name = 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,



                4,
                ACE_NTOHL (0x76616c00),  // name = val
                                CORBA::tk_alias, // typecode kind for typedefs
                60, // encapsulation length
                  TAO_ENCAP_BYTE_ORDER, // byte order
                  36,
                  ACE_NTOHL (0x49444c3a), 
                  ACE_NTOHL (0x6f6d672e), 
                  ACE_NTOHL (0x6f72672f), 
                  ACE_NTOHL (0x506f7274), 
                  ACE_NTOHL (0x61626c65), 
                  ACE_NTOHL (0x47726f75), 
                  ACE_NTOHL (0x702f5661), 
                  ACE_NTOHL (0x6c75653a), 
                  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                                    6,
                  ACE_NTOHL (0x56616c75), 
                  ACE_NTOHL (0x65000000),  // name = Value
                                    CORBA::tk_any,



              0U,




      0U,


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_FactoriesValue (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_FactoriesValue),
    (char *) &_oc_PortableGroup_FactoriesValue,
    0,
    sizeof (PortableGroup::FactoriesValue)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_FactoriesValue =
    &_tc_TAO_tc_PortableGroup_FactoriesValue;
}

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

static const CORBA::Long _oc_PortableGroup_InitialNumberMembersValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  56,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f496e), 
  ACE_NTOHL (0x69746961), 
  ACE_NTOHL (0x6c4e756d), 
  ACE_NTOHL (0x6265724d), 
  ACE_NTOHL (0x656d6265), 
  ACE_NTOHL (0x72735661), 
  ACE_NTOHL (0x6c75653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/InitialNumberMembersValue:1.0
    26,
  ACE_NTOHL (0x496e6974), 
  ACE_NTOHL (0x69616c4e), 
  ACE_NTOHL (0x756d6265), 
  ACE_NTOHL (0x724d656d), 
  ACE_NTOHL (0x62657273), 
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x65000000),  // name = InitialNumberMembersValue
    CORBA::tk_ushort,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_InitialNumberMembersValue (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_InitialNumberMembersValue),
    (char *) &_oc_PortableGroup_InitialNumberMembersValue,
    0,
    sizeof (PortableGroup::InitialNumberMembersValue)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_InitialNumberMembersValue =
    &_tc_TAO_tc_PortableGroup_InitialNumberMembersValue;
}

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

static const CORBA::Long _oc_PortableGroup_MinimumNumberMembersValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  56,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4d69), 
  ACE_NTOHL (0x6e696d75), 
  ACE_NTOHL (0x6d4e756d), 
  ACE_NTOHL (0x6265724d), 
  ACE_NTOHL (0x656d6265), 
  ACE_NTOHL (0x72735661), 
  ACE_NTOHL (0x6c75653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/MinimumNumberMembersValue:1.0
    26,
  ACE_NTOHL (0x4d696e69), 
  ACE_NTOHL (0x6d756d4e), 
  ACE_NTOHL (0x756d6265), 
  ACE_NTOHL (0x724d656d), 
  ACE_NTOHL (0x62657273), 
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x65000000),  // name = MinimumNumberMembersValue
    CORBA::tk_ushort,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_MinimumNumberMembersValue (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_MinimumNumberMembersValue),
    (char *) &_oc_PortableGroup_MinimumNumberMembersValue,
    0,
    sizeof (PortableGroup::MinimumNumberMembersValue)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_MinimumNumberMembersValue =
    &_tc_TAO_tc_PortableGroup_MinimumNumberMembersValue;
}

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

PortableGroup::InterfaceNotFound::InterfaceNotFound (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/InterfaceNotFound:1.0",
        "InterfaceNotFound"
      )
{
}

PortableGroup::InterfaceNotFound::~InterfaceNotFound (void)
{
}

PortableGroup::InterfaceNotFound::InterfaceNotFound (const ::PortableGroup::InterfaceNotFound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::InterfaceNotFound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::InterfaceNotFound, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::InterfaceNotFound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::InterfaceNotFound (*this),
      0
    );
  return result;
}

void PortableGroup::InterfaceNotFound::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::InterfaceNotFound::_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 PortableGroup::InterfaceNotFound::_type (void) const
{
  return ::PortableGroup::_tc_InterfaceNotFound;
}

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

static const CORBA::Long _oc_PortableGroup_InterfaceNotFound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  48,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f496e), 
  ACE_NTOHL (0x74657266), 
  ACE_NTOHL (0x6163654e), 
  ACE_NTOHL (0x6f74466f), 
  ACE_NTOHL (0x756e643a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/InterfaceNotFound:1.0
    18,
  ACE_NTOHL (0x496e7465), 
  ACE_NTOHL (0x72666163), 
  ACE_NTOHL (0x654e6f74), 
  ACE_NTOHL (0x466f756e), 
  ACE_NTOHL (0x64000000),  // name = InterfaceNotFound
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_InterfaceNotFound (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_InterfaceNotFound),
    (char *) &_oc_PortableGroup_InterfaceNotFound,
    0,
    sizeof (PortableGroup::InterfaceNotFound)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_InterfaceNotFound =
    &_tc_TAO_tc_PortableGroup_InterfaceNotFound;
}

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

PortableGroup::ObjectGroupNotFound::ObjectGroupNotFound (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        "ObjectGroupNotFound"
      )
{
}

PortableGroup::ObjectGroupNotFound::~ObjectGroupNotFound (void)
{
}

PortableGroup::ObjectGroupNotFound::ObjectGroupNotFound (const ::PortableGroup::ObjectGroupNotFound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::ObjectGroupNotFound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::ObjectGroupNotFound, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::ObjectGroupNotFound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::ObjectGroupNotFound (*this),
      0
    );
  return result;
}

void PortableGroup::ObjectGroupNotFound::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::ObjectGroupNotFound::_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 PortableGroup::ObjectGroupNotFound::_type (void) const
{
  return ::PortableGroup::_tc_ObjectGroupNotFound;
}

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

static const CORBA::Long _oc_PortableGroup_ObjectGroupNotFound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  50,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x704e6f74), 
  ACE_NTOHL (0x466f756e), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0
    20,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75704e), 
  ACE_NTOHL (0x6f74466f), 
  ACE_NTOHL (0x756e6400),  // name = ObjectGroupNotFound
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectGroupNotFound (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_ObjectGroupNotFound),
    (char *) &_oc_PortableGroup_ObjectGroupNotFound,
    0,
    sizeof (PortableGroup::ObjectGroupNotFound)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectGroupNotFound =
    &_tc_TAO_tc_PortableGroup_ObjectGroupNotFound;
}

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

PortableGroup::MemberNotFound::MemberNotFound (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
        "MemberNotFound"
      )
{
}

PortableGroup::MemberNotFound::~MemberNotFound (void)
{
}

PortableGroup::MemberNotFound::MemberNotFound (const ::PortableGroup::MemberNotFound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::MemberNotFound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::MemberNotFound, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::MemberNotFound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::MemberNotFound (*this),
      0
    );
  return result;
}

void PortableGroup::MemberNotFound::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::MemberNotFound::_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 PortableGroup::MemberNotFound::_type (void) const
{
  return ::PortableGroup::_tc_MemberNotFound;
}

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

static const CORBA::Long _oc_PortableGroup_MemberNotFound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4d65), 
  ACE_NTOHL (0x6d626572), 
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/MemberNotFound:1.0
    15,
  ACE_NTOHL (0x4d656d62), 
  ACE_NTOHL (0x65724e6f), 
  ACE_NTOHL (0x74466f75), 
  ACE_NTOHL (0x6e640000),  // name = MemberNotFound
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_MemberNotFound (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_MemberNotFound),
    (char *) &_oc_PortableGroup_MemberNotFound,
    0,
    sizeof (PortableGroup::MemberNotFound)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_MemberNotFound =
    &_tc_TAO_tc_PortableGroup_MemberNotFound;
}

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

PortableGroup::ObjectNotFound::ObjectNotFound (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/ObjectNotFound:1.0",
        "ObjectNotFound"
      )
{
}

PortableGroup::ObjectNotFound::~ObjectNotFound (void)
{
}

PortableGroup::ObjectNotFound::ObjectNotFound (const ::PortableGroup::ObjectNotFound &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::ObjectNotFound::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::ObjectNotFound, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::ObjectNotFound::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::ObjectNotFound (*this),
      0
    );
  return result;
}

void PortableGroup::ObjectNotFound::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::ObjectNotFound::_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 PortableGroup::ObjectNotFound::_type (void) const
{
  return ::PortableGroup::_tc_ObjectNotFound;
}

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

static const CORBA::Long _oc_PortableGroup_ObjectNotFound[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x4e6f7446), 
  ACE_NTOHL (0x6f756e64), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/ObjectNotFound:1.0
    15,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744e6f), 
  ACE_NTOHL (0x74466f75), 
  ACE_NTOHL (0x6e640000),  // name = ObjectNotFound
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectNotFound (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_ObjectNotFound),
    (char *) &_oc_PortableGroup_ObjectNotFound,
    0,
    sizeof (PortableGroup::ObjectNotFound)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectNotFound =
    &_tc_TAO_tc_PortableGroup_ObjectNotFound;
}

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

PortableGroup::MemberAlreadyPresent::MemberAlreadyPresent (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
        "MemberAlreadyPresent"
      )
{
}

PortableGroup::MemberAlreadyPresent::~MemberAlreadyPresent (void)
{
}

PortableGroup::MemberAlreadyPresent::MemberAlreadyPresent (const ::PortableGroup::MemberAlreadyPresent &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::MemberAlreadyPresent::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::MemberAlreadyPresent, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::MemberAlreadyPresent::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::MemberAlreadyPresent (*this),
      0
    );
  return result;
}

void PortableGroup::MemberAlreadyPresent::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::MemberAlreadyPresent::_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 PortableGroup::MemberAlreadyPresent::_type (void) const
{
  return ::PortableGroup::_tc_MemberAlreadyPresent;
}

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

static const CORBA::Long _oc_PortableGroup_MemberAlreadyPresent[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  51,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4d65), 
  ACE_NTOHL (0x6d626572), 
  ACE_NTOHL (0x416c7265), 
  ACE_NTOHL (0x61647950), 
  ACE_NTOHL (0x72657365), 
  ACE_NTOHL (0x6e743a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0
    21,
  ACE_NTOHL (0x4d656d62), 
  ACE_NTOHL (0x6572416c), 
  ACE_NTOHL (0x72656164), 
  ACE_NTOHL (0x79507265), 
  ACE_NTOHL (0x73656e74), 
  ACE_NTOHL (0x0),  // name = MemberAlreadyPresent
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_MemberAlreadyPresent (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_MemberAlreadyPresent),
    (char *) &_oc_PortableGroup_MemberAlreadyPresent,
    0,
    sizeof (PortableGroup::MemberAlreadyPresent)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_MemberAlreadyPresent =
    &_tc_TAO_tc_PortableGroup_MemberAlreadyPresent;
}

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

PortableGroup::ObjectNotCreated::ObjectNotCreated (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/ObjectNotCreated:1.0",
        "ObjectNotCreated"
      )
{
}

PortableGroup::ObjectNotCreated::~ObjectNotCreated (void)
{
}

PortableGroup::ObjectNotCreated::ObjectNotCreated (const ::PortableGroup::ObjectNotCreated &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::ObjectNotCreated::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::ObjectNotCreated, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::ObjectNotCreated::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::ObjectNotCreated (*this),
      0
    );
  return result;
}

void PortableGroup::ObjectNotCreated::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::ObjectNotCreated::_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 PortableGroup::ObjectNotCreated::_type (void) const
{
  return ::PortableGroup::_tc_ObjectNotCreated;
}

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

static const CORBA::Long _oc_PortableGroup_ObjectNotCreated[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x4e6f7443), 
  ACE_NTOHL (0x72656174), 
  ACE_NTOHL (0x65643a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/ObjectNotCreated:1.0
    17,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744e6f), 
  ACE_NTOHL (0x74437265), 
  ACE_NTOHL (0x61746564), 
  ACE_NTOHL (0x0),  // name = ObjectNotCreated
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectNotCreated (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_ObjectNotCreated),
    (char *) &_oc_PortableGroup_ObjectNotCreated,
    0,
    sizeof (PortableGroup::ObjectNotCreated)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectNotCreated =
    &_tc_TAO_tc_PortableGroup_ObjectNotCreated;
}

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

PortableGroup::ObjectNotAdded::ObjectNotAdded (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/ObjectNotAdded:1.0",
        "ObjectNotAdded"
      )
{
}

PortableGroup::ObjectNotAdded::~ObjectNotAdded (void)
{
}

PortableGroup::ObjectNotAdded::ObjectNotAdded (const ::PortableGroup::ObjectNotAdded &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::ObjectNotAdded::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::ObjectNotAdded, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::ObjectNotAdded::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::ObjectNotAdded (*this),
      0
    );
  return result;
}

void PortableGroup::ObjectNotAdded::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::ObjectNotAdded::_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 PortableGroup::ObjectNotAdded::_type (void) const
{
  return ::PortableGroup::_tc_ObjectNotAdded;
}

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

static const CORBA::Long _oc_PortableGroup_ObjectNotAdded[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x4e6f7441), 
  ACE_NTOHL (0x64646564), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/ObjectNotAdded:1.0
    15,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744e6f), 
  ACE_NTOHL (0x74416464), 
  ACE_NTOHL (0x65640000),  // name = ObjectNotAdded
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectNotAdded (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_ObjectNotAdded),
    (char *) &_oc_PortableGroup_ObjectNotAdded,
    0,
    sizeof (PortableGroup::ObjectNotAdded)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectNotAdded =
    &_tc_TAO_tc_PortableGroup_ObjectNotAdded;
}

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

PortableGroup::TypeConflict::TypeConflict (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/TypeConflict:1.0",
        "TypeConflict"
      )
{
}

PortableGroup::TypeConflict::~TypeConflict (void)
{
}

PortableGroup::TypeConflict::TypeConflict (const ::PortableGroup::TypeConflict &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

CORBA::Exception *PortableGroup::TypeConflict::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::TypeConflict, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::TypeConflict::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::TypeConflict (*this),
      0
    );
  return result;
}

void PortableGroup::TypeConflict::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::TypeConflict::_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 PortableGroup::TypeConflict::_type (void) const
{
  return ::PortableGroup::_tc_TypeConflict;
}

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

static const CORBA::Long _oc_PortableGroup_TypeConflict[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5479), 
  ACE_NTOHL (0x7065436f), 
  ACE_NTOHL (0x6e666c69), 
  ACE_NTOHL (0x63743a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/TypeConflict:1.0
    13,
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x436f6e66), 
  ACE_NTOHL (0x6c696374), 
  ACE_NTOHL (0x0),  // name = TypeConflict
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_TypeConflict (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_TypeConflict),
    (char *) &_oc_PortableGroup_TypeConflict,
    0,
    sizeof (PortableGroup::TypeConflict)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_TypeConflict =
    &_tc_TAO_tc_PortableGroup_TypeConflict;
}

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

PortableGroup::UnsupportedProperty::UnsupportedProperty (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        "UnsupportedProperty"
      )
{
}

PortableGroup::UnsupportedProperty::~UnsupportedProperty (void)
{
}

PortableGroup::UnsupportedProperty::UnsupportedProperty (const ::PortableGroup::UnsupportedProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->nam = _tao_excp.nam;
  this->val = _tao_excp.val;
}

PortableGroup::UnsupportedProperty&
PortableGroup::UnsupportedProperty::operator= (const ::PortableGroup::UnsupportedProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->nam = _tao_excp.nam;
  this->val = _tao_excp.val;
  return *this;
}

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

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

CORBA::Exception *PortableGroup::UnsupportedProperty::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::UnsupportedProperty, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::UnsupportedProperty::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::UnsupportedProperty (*this),
      0
    );
  return result;
}

void PortableGroup::UnsupportedProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::UnsupportedProperty::_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

PortableGroup::UnsupportedProperty::UnsupportedProperty (
    const PortableGroup::Name & _tao_nam,
    const PortableGroup::Value & _tao_val
  )
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        "UnsupportedProperty"
      )
{
  this->nam = _tao_nam;
  this->val = _tao_val;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableGroup::UnsupportedProperty::_type (void) const
{
  return ::PortableGroup::_tc_UnsupportedProperty;
}

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

static const CORBA::Long _oc_PortableGroup_UnsupportedProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  50,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f556e), 
  ACE_NTOHL (0x73757070), 
  ACE_NTOHL (0x6f727465), 
  ACE_NTOHL (0x6450726f), 
  ACE_NTOHL (0x70657274), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/UnsupportedProperty:1.0
    20,
  ACE_NTOHL (0x556e7375), 
  ACE_NTOHL (0x70706f72), 
  ACE_NTOHL (0x74656450), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747900),  // name = UnsupportedProperty
  2, // member count
    4,
  ACE_NTOHL (0x6e616d00),  // name = nam
    CORBA::tk_alias, // typecode kind for typedefs
  376, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = 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,



  4,
  ACE_NTOHL (0x76616c00),  // name = val
    CORBA::tk_alias, // typecode kind for typedefs
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f5661), 
    ACE_NTOHL (0x6c75653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
        6,
    ACE_NTOHL (0x56616c75), 
    ACE_NTOHL (0x65000000),  // name = Value
        CORBA::tk_any,


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_UnsupportedProperty (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_UnsupportedProperty),
    (char *) &_oc_PortableGroup_UnsupportedProperty,
    0,
    sizeof (PortableGroup::UnsupportedProperty)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_UnsupportedProperty =
    &_tc_TAO_tc_PortableGroup_UnsupportedProperty;
}

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

PortableGroup::InvalidProperty::InvalidProperty (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        "InvalidProperty"
      )
{
}

PortableGroup::InvalidProperty::~InvalidProperty (void)
{
}

PortableGroup::InvalidProperty::InvalidProperty (const ::PortableGroup::InvalidProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->nam = _tao_excp.nam;
  this->val = _tao_excp.val;
}

PortableGroup::InvalidProperty&
PortableGroup::InvalidProperty::operator= (const ::PortableGroup::InvalidProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->nam = _tao_excp.nam;
  this->val = _tao_excp.val;
  return *this;
}

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

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

CORBA::Exception *PortableGroup::InvalidProperty::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::InvalidProperty, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::InvalidProperty::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::InvalidProperty (*this),
      0
    );
  return result;
}

void PortableGroup::InvalidProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::InvalidProperty::_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

PortableGroup::InvalidProperty::InvalidProperty (
    const PortableGroup::Name & _tao_nam,
    const PortableGroup::Value & _tao_val
  )
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        "InvalidProperty"
      )
{
  this->nam = _tao_nam;
  this->val = _tao_val;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableGroup::InvalidProperty::_type (void) const
{
  return ::PortableGroup::_tc_InvalidProperty;
}

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

static const CORBA::Long _oc_PortableGroup_InvalidProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f496e), 
  ACE_NTOHL (0x76616c69), 
  ACE_NTOHL (0x6450726f), 
  ACE_NTOHL (0x70657274), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/InvalidProperty:1.0
    16,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c696450), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747900),  // name = InvalidProperty
  2, // member count
    4,
  ACE_NTOHL (0x6e616d00),  // name = nam
    CORBA::tk_alias, // typecode kind for typedefs
  376, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
        5,
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = 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,



  4,
  ACE_NTOHL (0x76616c00),  // name = val
    CORBA::tk_alias, // typecode kind for typedefs
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f5661), 
    ACE_NTOHL (0x6c75653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
        6,
    ACE_NTOHL (0x56616c75), 
    ACE_NTOHL (0x65000000),  // name = Value
        CORBA::tk_any,


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_InvalidProperty (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_InvalidProperty),
    (char *) &_oc_PortableGroup_InvalidProperty,
    0,
    sizeof (PortableGroup::InvalidProperty)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_InvalidProperty =
    &_tc_TAO_tc_PortableGroup_InvalidProperty;
}

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

PortableGroup::NoFactory::NoFactory (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/NoFactory:1.0",
        "NoFactory"
      )
{
}

PortableGroup::NoFactory::~NoFactory (void)
{
}

PortableGroup::NoFactory::NoFactory (const ::PortableGroup::NoFactory &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->the_location = _tao_excp.the_location;
  this->type_id = CORBA::string_dup (_tao_excp.type_id.in ());
}

PortableGroup::NoFactory&
PortableGroup::NoFactory::operator= (const ::PortableGroup::NoFactory &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->the_location = _tao_excp.the_location;
  this->type_id = CORBA::string_dup (_tao_excp.type_id.in ());
  return *this;
}

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

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

CORBA::Exception *PortableGroup::NoFactory::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::NoFactory, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::NoFactory::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::NoFactory (*this),
      0
    );
  return result;
}

void PortableGroup::NoFactory::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::NoFactory::_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

PortableGroup::NoFactory::NoFactory (
    const PortableGroup::Location & _tao_the_location,
    const char * _tao_type_id
  )
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/NoFactory:1.0",
        "NoFactory"
      )
{
  this->the_location = _tao_the_location;
  this->type_id = CORBA::string_dup (_tao_type_id);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableGroup::NoFactory::_type (void) const
{
  return ::PortableGroup::_tc_NoFactory;
}

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

static const CORBA::Long _oc_PortableGroup_NoFactory[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4e6f), 
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f72793a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/NoFactory:1.0
    10,
  ACE_NTOHL (0x4e6f4661), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x79000000),  // name = NoFactory
  2, // member count
    13,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x6c6f6361), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x0),  // name = the_location
    CORBA::tk_alias, // typecode kind for typedefs
  448, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4c6f), 
    ACE_NTOHL (0x63617469), 
    ACE_NTOHL (0x6f6e3a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Location:1.0
        9,
    ACE_NTOHL (0x4c6f6361), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = Location
        CORBA::tk_alias, // typecode kind for typedefs
    376, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f4e61), 
      ACE_NTOHL (0x6d653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
            5,
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x0),  // name = 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,




  8,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x5f696400),  // name = type_id
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    37,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f5479), 
    ACE_NTOHL (0x70654964), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/TypeId:1.0
        7,
    ACE_NTOHL (0x54797065), 
    ACE_NTOHL (0x49640000),  // name = TypeId
        CORBA::tk_alias, // typecode kind for typedefs
    72, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x434f5242), 
      ACE_NTOHL (0x412f5265), 
      ACE_NTOHL (0x706f7369), 
      ACE_NTOHL (0x746f7279), 
      ACE_NTOHL (0x49643a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CORBA/RepositoryId:1.0
            13,
      ACE_NTOHL (0x5265706f), 
      ACE_NTOHL (0x7369746f), 
      ACE_NTOHL (0x72794964), 
      ACE_NTOHL (0x0),  // name = RepositoryId
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_NoFactory (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_NoFactory),
    (char *) &_oc_PortableGroup_NoFactory,
    0,
    sizeof (PortableGroup::NoFactory)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_NoFactory =
    &_tc_TAO_tc_PortableGroup_NoFactory;
}

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

PortableGroup::InvalidCriteria::InvalidCriteria (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
        "InvalidCriteria"
      )
{
}

PortableGroup::InvalidCriteria::~InvalidCriteria (void)
{
}

PortableGroup::InvalidCriteria::InvalidCriteria (const ::PortableGroup::InvalidCriteria &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->invalid_criteria = _tao_excp.invalid_criteria;
}

PortableGroup::InvalidCriteria&
PortableGroup::InvalidCriteria::operator= (const ::PortableGroup::InvalidCriteria &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->invalid_criteria = _tao_excp.invalid_criteria;
  return *this;
}

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

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

CORBA::Exception *PortableGroup::InvalidCriteria::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::InvalidCriteria, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::InvalidCriteria::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::InvalidCriteria (*this),
      0
    );
  return result;
}

void PortableGroup::InvalidCriteria::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::InvalidCriteria::_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

PortableGroup::InvalidCriteria::InvalidCriteria (
    const PortableGroup::Criteria & _tao_invalid_criteria
  )
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
        "InvalidCriteria"
      )
{
  this->invalid_criteria = _tao_invalid_criteria;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableGroup::InvalidCriteria::_type (void) const
{
  return ::PortableGroup::_tc_InvalidCriteria;
}

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

static const CORBA::Long _oc_PortableGroup_InvalidCriteria[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f496e), 
  ACE_NTOHL (0x76616c69), 
  ACE_NTOHL (0x64437269), 
  ACE_NTOHL (0x74657269), 
  ACE_NTOHL (0x613a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/InvalidCriteria:1.0
    16,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c696443), 
  ACE_NTOHL (0x72697465), 
  ACE_NTOHL (0x72696100),  // name = InvalidCriteria
  1, // member count
    17,
  ACE_NTOHL (0x696e7661), 
  ACE_NTOHL (0x6c69645f), 
  ACE_NTOHL (0x63726974), 
  ACE_NTOHL (0x65726961), 
  ACE_NTOHL (0x0),  // name = invalid_criteria
    CORBA::tk_alias, // typecode kind for typedefs
  700, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4372), 
    ACE_NTOHL (0x69746572), 
    ACE_NTOHL (0x69613a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
        9,
    ACE_NTOHL (0x43726974), 
    ACE_NTOHL (0x65726961), 
    ACE_NTOHL (0x0),  // name = Criteria
        CORBA::tk_alias, // typecode kind for typedefs
    628, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      41,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74696573), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
            11,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727469), 
      ACE_NTOHL (0x65730000),  // name = Properties
            CORBA::tk_sequence, // typecode kind
      552, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_struct, // typecode kind
        536, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f5072), 
          ACE_NTOHL (0x6f706572), 
          ACE_NTOHL (0x74793a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                    9,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x0),  // name = Property
          2, // member count
                    4,
          ACE_NTOHL (0x6e616d00),  // name = nam
                    CORBA::tk_alias, // typecode kind for typedefs
          376, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f4e61), 
            ACE_NTOHL (0x6d653a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                        5,
            ACE_NTOHL (0x4e616d65), 
            ACE_NTOHL (0x0),  // name = 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,



          4,
          ACE_NTOHL (0x76616c00),  // name = val
                    CORBA::tk_alias, // typecode kind for typedefs
          60, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            36,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f5661), 
            ACE_NTOHL (0x6c75653a), 
            ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                        6,
            ACE_NTOHL (0x56616c75), 
            ACE_NTOHL (0x65000000),  // name = Value
                        CORBA::tk_any,



        0U,



};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_InvalidCriteria (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_InvalidCriteria),
    (char *) &_oc_PortableGroup_InvalidCriteria,
    0,
    sizeof (PortableGroup::InvalidCriteria)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_InvalidCriteria =
    &_tc_TAO_tc_PortableGroup_InvalidCriteria;
}

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

PortableGroup::CannotMeetCriteria::CannotMeetCriteria (void)
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
        "CannotMeetCriteria"
      )
{
}

PortableGroup::CannotMeetCriteria::~CannotMeetCriteria (void)
{
}

PortableGroup::CannotMeetCriteria::CannotMeetCriteria (const ::PortableGroup::CannotMeetCriteria &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->unmet_criteria = _tao_excp.unmet_criteria;
}

PortableGroup::CannotMeetCriteria&
PortableGroup::CannotMeetCriteria::operator= (const ::PortableGroup::CannotMeetCriteria &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->unmet_criteria = _tao_excp.unmet_criteria;
  return *this;
}

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

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

CORBA::Exception *PortableGroup::CannotMeetCriteria::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::PortableGroup::CannotMeetCriteria, 0);
  return retval;
}

CORBA::Exception *
PortableGroup::CannotMeetCriteria::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::PortableGroup::CannotMeetCriteria (*this),
      0
    );
  return result;
}

void PortableGroup::CannotMeetCriteria::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void PortableGroup::CannotMeetCriteria::_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

PortableGroup::CannotMeetCriteria::CannotMeetCriteria (
    const PortableGroup::Criteria & _tao_unmet_criteria
  )
  : CORBA::UserException (
        "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
        "CannotMeetCriteria"
      )
{
  this->unmet_criteria = _tao_unmet_criteria;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableGroup::CannotMeetCriteria::_type (void) const
{
  return ::PortableGroup::_tc_CannotMeetCriteria;
}

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

static const CORBA::Long _oc_PortableGroup_CannotMeetCriteria[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4361), 
  ACE_NTOHL (0x6e6e6f74), 
  ACE_NTOHL (0x4d656574), 
  ACE_NTOHL (0x43726974), 
  ACE_NTOHL (0x65726961), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0
    19,
  ACE_NTOHL (0x43616e6e), 
  ACE_NTOHL (0x6f744d65), 
  ACE_NTOHL (0x65744372), 
  ACE_NTOHL (0x69746572), 
  ACE_NTOHL (0x69610000),  // name = CannotMeetCriteria
  1, // member count
    15,
  ACE_NTOHL (0x756e6d65), 
  ACE_NTOHL (0x745f6372), 
  ACE_NTOHL (0x69746572), 
  ACE_NTOHL (0x69610000),  // name = unmet_criteria
    CORBA::tk_alias, // typecode kind for typedefs
  700, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x506f7274), 
    ACE_NTOHL (0x61626c65), 
    ACE_NTOHL (0x47726f75), 
    ACE_NTOHL (0x702f4372), 
    ACE_NTOHL (0x69746572), 
    ACE_NTOHL (0x69613a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Criteria:1.0
        9,
    ACE_NTOHL (0x43726974), 
    ACE_NTOHL (0x65726961), 
    ACE_NTOHL (0x0),  // name = Criteria
        CORBA::tk_alias, // typecode kind for typedefs
    628, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      41,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x506f7274), 
      ACE_NTOHL (0x61626c65), 
      ACE_NTOHL (0x47726f75), 
      ACE_NTOHL (0x702f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74696573), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/Properties:1.0
            11,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727469), 
      ACE_NTOHL (0x65730000),  // name = Properties
            CORBA::tk_sequence, // typecode kind
      552, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_struct, // typecode kind
        536, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x506f7274), 
          ACE_NTOHL (0x61626c65), 
          ACE_NTOHL (0x47726f75), 
          ACE_NTOHL (0x702f5072), 
          ACE_NTOHL (0x6f706572), 
          ACE_NTOHL (0x74793a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Property:1.0
                    9,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x0),  // name = Property
          2, // member count
                    4,
          ACE_NTOHL (0x6e616d00),  // name = nam
                    CORBA::tk_alias, // typecode kind for typedefs
          376, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f4e61), 
            ACE_NTOHL (0x6d653a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/Name:1.0
                        5,
            ACE_NTOHL (0x4e616d65), 
            ACE_NTOHL (0x0),  // name = 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,



          4,
          ACE_NTOHL (0x76616c00),  // name = val
                    CORBA::tk_alias, // typecode kind for typedefs
          60, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            36,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x506f7274), 
            ACE_NTOHL (0x61626c65), 
            ACE_NTOHL (0x47726f75), 
            ACE_NTOHL (0x702f5661), 
            ACE_NTOHL (0x6c75653a), 
            ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/Value:1.0
                        6,
            ACE_NTOHL (0x56616c75), 
            ACE_NTOHL (0x65000000),  // name = Value
                        CORBA::tk_any,



        0U,



};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_CannotMeetCriteria (
    CORBA::tk_except,
    sizeof (_oc_PortableGroup_CannotMeetCriteria),
    (char *) &_oc_PortableGroup_CannotMeetCriteria,
    0,
    sizeof (PortableGroup::CannotMeetCriteria)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_CannotMeetCriteria =
    &_tc_TAO_tc_PortableGroup_CannotMeetCriteria;
}

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

// Traits specializations for PortableGroup::PropertyManager.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::PropertyManager_ptr
TAO::Objref_Traits<PortableGroup::PropertyManager>::tao_duplicate (
    PortableGroup::PropertyManager_ptr p
  )
{
  return PortableGroup::PropertyManager::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::PropertyManager>::tao_release (
    PortableGroup::PropertyManager_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::PropertyManager_ptr
TAO::Objref_Traits<PortableGroup::PropertyManager>::tao_nil (void)
{
  return PortableGroup::PropertyManager::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::PropertyManager>::tao_marshal (
    PortableGroup::PropertyManager_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::PropertyManager::set_default_properties (
    const ::PortableGroup::Properties & props
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::UnsupportedProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_props
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_set_default_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        PortableGroup::UnsupportedProperty::_alloc,
        PortableGroup::_tc_UnsupportedProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_default_properties",
      22,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_set_default_properties_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_set_default_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    const ::PortableGroup::Properties & props
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_props
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_default_properties",
      22,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::set_default_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::Properties * PortableGroup::PropertyManager::get_default_properties (
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::Properties>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "get_default_properties",
      22,
      this->the_TAO_PropertyManager_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/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_get_default_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "get_default_properties",
      22,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::get_default_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::PropertyManager::remove_default_properties (
    const ::PortableGroup::Properties & props
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::UnsupportedProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_props
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_remove_default_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        PortableGroup::UnsupportedProperty::_alloc,
        PortableGroup::_tc_UnsupportedProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_default_properties",
      25,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_remove_default_properties_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_remove_default_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    const ::PortableGroup::Properties & props
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_props
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_default_properties",
      25,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::remove_default_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::PropertyManager::set_type_properties (
    const char * type_id,
    const ::PortableGroup::Properties & overrides
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::UnsupportedProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_overrides (overrides);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_overrides
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_set_type_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        PortableGroup::UnsupportedProperty::_alloc,
        PortableGroup::_tc_UnsupportedProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "set_type_properties",
      19,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_set_type_properties_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_set_type_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    const char * type_id,
    const ::PortableGroup::Properties & overrides
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_overrides (overrides);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_overrides
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "set_type_properties",
      19,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::set_type_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::Properties * PortableGroup::PropertyManager::get_type_properties (
    const char * type_id
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::Properties>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_type_properties",
      19,
      this->the_TAO_PropertyManager_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/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_get_type_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    const char * type_id
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_type_properties",
      19,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::get_type_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::PropertyManager::remove_type_properties (
    const char * type_id,
    const ::PortableGroup::Properties & props
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::UnsupportedProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_props
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_remove_type_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        PortableGroup::UnsupportedProperty::_alloc,
        PortableGroup::_tc_UnsupportedProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "remove_type_properties",
      22,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_remove_type_properties_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_remove_type_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    const char * type_id,
    const ::PortableGroup::Properties & props
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_props (props);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_props
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "remove_type_properties",
      22,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::remove_type_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::PropertyManager::set_properties_dynamically (
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Properties & overrides
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::UnsupportedProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_overrides (overrides);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_overrides
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_set_properties_dynamically_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      },
      
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
        PortableGroup::UnsupportedProperty::_alloc,
        PortableGroup::_tc_UnsupportedProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "set_properties_dynamically",
      26,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_set_properties_dynamically_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_set_properties_dynamically (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Properties & overrides
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_overrides (overrides);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_overrides
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "set_properties_dynamically",
      26,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::set_properties_dynamically_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::Properties * PortableGroup::PropertyManager::get_properties (
    ::PortableGroup::ObjectGroup_ptr object_group
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::Properties>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_PropertyManager_get_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_properties",
      14,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_PropertyManager_get_properties_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::PropertyManager::sendc_get_properties (
    ::PortableGroup::AMI_PropertyManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group
    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_PropertyManager_Proxy_Broker_ == 0)
    {
      PortableGroup_PropertyManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_properties",
      14,
      this->the_TAO_PropertyManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_PropertyManagerHandler::get_properties_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

PortableGroup::PropertyManager::PropertyManager (void)
 : the_TAO_PropertyManager_Proxy_Broker_ (0)
{
  this->PortableGroup_PropertyManager_setup_collocation ();
}

void
PortableGroup::PropertyManager::PortableGroup_PropertyManager_setup_collocation ()
{
  if (::PortableGroup__TAO_PropertyManager_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_PropertyManager_Proxy_Broker_ =
        ::PortableGroup__TAO_PropertyManager_Proxy_Broker_Factory_function_pointer (this);
    }
}

PortableGroup::PropertyManager::~PropertyManager (void)
{}

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

PortableGroup::PropertyManager_ptr
PortableGroup::PropertyManager::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PropertyManager>::narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/PropertyManager:1.0",
        PortableGroup__TAO_PropertyManager_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::PropertyManager_ptr
PortableGroup::PropertyManager::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PropertyManager>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/PropertyManager:1.0",
        PortableGroup__TAO_PropertyManager_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::PropertyManager_ptr
PortableGroup::PropertyManager::_duplicate (PropertyManager_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::PropertyManager::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/PortableGroup/PropertyManager: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* PortableGroup::PropertyManager::_interface_repository_id (void) const
{
  return "IDL:omg.org/PortableGroup/PropertyManager:1.0";
}

CORBA::Boolean
PortableGroup::PropertyManager::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_PropertyManager[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74794d61), 
  ACE_NTOHL (0x6e616765), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/PropertyManager:1.0
    16,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4d616e61), 
  ACE_NTOHL (0x67657200),  // name = PropertyManager
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_PropertyManager (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_PropertyManager),
    (char *) &_oc_PortableGroup_PropertyManager,
    0,
    sizeof (PortableGroup::PropertyManager)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_PropertyManager =
    &_tc_TAO_tc_PortableGroup_PropertyManager;
}

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

static const CORBA::Long _oc_PortableGroup_AMI_PropertyManagerExceptionHolder[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  9,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL::1.0
    35,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4d616e61), 
  ACE_NTOHL (0x67657245), 
  ACE_NTOHL (0x78636570), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x486f6c64), 
  ACE_NTOHL (0x65720000),  // name = AMI_PropertyManagerExceptionHolder
    0, // value modifier
  CORBA::tk_value, // typecode kind
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    24,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x6465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:ExceptionHolder:1.0
        16,
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x64657200),  // name = ExceptionHolder
        0, // value modifier
    CORBA::tk_null, // no stateful base valuetype

0, // member count
    
0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_PropertyManagerExceptionHolder (
    CORBA::tk_value,
    sizeof (_oc_PortableGroup_AMI_PropertyManagerExceptionHolder),
    (char *) &_oc_PortableGroup_AMI_PropertyManagerExceptionHolder,
    0,
    sizeof (PortableGroup::AMI_PropertyManagerExceptionHolder)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_PropertyManagerExceptionHolder =
    &_tc_TAO_tc_PortableGroup_AMI_PropertyManagerExceptionHolder;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_cs.cpp:66

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_PropertyManagerExceptionHolder>::tao_add_ref (
    PortableGroup::AMI_PropertyManagerExceptionHolder * p
  )
{
  CORBA::add_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_PropertyManagerExceptionHolder>::tao_remove_ref (
    PortableGroup::AMI_PropertyManagerExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_PropertyManagerExceptionHolder>::tao_release (
    PortableGroup::AMI_PropertyManagerExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

PortableGroup::AMI_PropertyManagerExceptionHolder *
PortableGroup::AMI_PropertyManagerExceptionHolder::_downcast (CORBA::ValueBase *v)
{
  if (v == 0)
    {
      return 0;
    }
  
  return dynamic_cast< ::PortableGroup::AMI_PropertyManagerExceptionHolder * > (v);
}

const char *
PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_obv_repository_id (void) const
{
  return this->_tao_obv_static_repository_id ();
}

void
PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_any_destructor (void *_tao_void_pointer)
{
  AMI_PropertyManagerExceptionHolder *_tao_tmp_pointer =
    static_cast<
        AMI_PropertyManagerExceptionHolder *> (
        _tao_void_pointer
      );
  CORBA::remove_ref (_tao_tmp_pointer);
}

CORBA::Boolean PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm)
{
  return this->_tao_marshal__PortableGroup_AMI_PropertyManagerExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm)
{
  return this->_tao_unmarshal__PortableGroup_AMI_PropertyManagerExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_unmarshal (
    TAO_InputCDR &strm,
    AMI_PropertyManagerExceptionHolder *&new_object
  )
{
  CORBA::ValueBase *base = 0;
  CORBA::ValueFactory_var factory;
  CORBA::Boolean retval =
    CORBA::ValueBase::_tao_unmarshal_pre (
        strm,
        factory.out (),
        base,
        AMI_PropertyManagerExceptionHolder::_tao_obv_static_repository_id ()
      );
  
  if (retval == 0)
    {
      return 0;
    }
  
  if (factory.in () != 0)
    {
      base = factory->create_for_unmarshal ();
      
      if (base == 0)
        {
          return 0;  // %! except.?
        }
      
      retval = base->_tao_unmarshal_v (strm);
      
      if (retval == 0)
        {
          return 0;
        }
    }
  
  // Now base must be null or point to the unmarshaled object.
  // Align the pointer to the right subobject.
  new_object = AMI_PropertyManagerExceptionHolder::_downcast (base);
  return retval;
}

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

// Traits specializations for PortableGroup::AMI_PropertyManagerHandler.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_PropertyManagerHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_PropertyManagerHandler>::tao_duplicate (
    PortableGroup::AMI_PropertyManagerHandler_ptr p
  )
{
  return PortableGroup::AMI_PropertyManagerHandler::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::AMI_PropertyManagerHandler>::tao_release (
    PortableGroup::AMI_PropertyManagerHandler_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_PropertyManagerHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_PropertyManagerHandler>::tao_nil (void)
{
  return PortableGroup::AMI_PropertyManagerHandler::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::AMI_PropertyManagerHandler>::tao_marshal (
    PortableGroup::AMI_PropertyManagerHandler_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::AMI_PropertyManagerHandler::set_default_properties (
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_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,
      "set_default_properties",
      22,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::set_default_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->set_default_properties (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->set_default_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::set_default_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_default_properties_excep",
      28,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::get_default_properties (
    const ::PortableGroup::Properties & ami_return_val
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_default_properties",
      22,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::get_default_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::Properties ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_default_properties (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_default_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::get_default_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_default_properties_excep",
      28,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::remove_default_properties (
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_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,
      "remove_default_properties",
      25,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::remove_default_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->remove_default_properties (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->remove_default_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::remove_default_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_default_properties_excep",
      31,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::set_type_properties (
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_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,
      "set_type_properties",
      19,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::set_type_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->set_type_properties (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->set_type_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::set_type_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_type_properties_excep",
      25,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::get_type_properties (
    const ::PortableGroup::Properties & ami_return_val
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_type_properties",
      19,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::get_type_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::Properties ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_type_properties (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_type_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::get_type_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_type_properties_excep",
      25,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::remove_type_properties (
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_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,
      "remove_type_properties",
      22,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::remove_type_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->remove_type_properties (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->remove_type_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::remove_type_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_type_properties_excep",
      28,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::set_properties_dynamically (
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_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,
      "set_properties_dynamically",
      26,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::set_properties_dynamically_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->set_properties_dynamically (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->set_properties_dynamically_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::set_properties_dynamically_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_properties_dynamically_excep",
      32,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_PropertyManagerHandler::get_properties (
    const ::PortableGroup::Properties & ami_return_val
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_properties",
      14,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_PropertyManagerHandler::get_properties_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_PropertyManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_PropertyManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::Properties ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_properties (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_PropertyManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_properties_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_PropertyManagerHandler::get_properties_excep (
    ::PortableGroup::AMI_PropertyManagerExceptionHolder * excep_holder
    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_AMI_PropertyManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_PropertyManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_properties_excep",
      20,
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

PortableGroup::AMI_PropertyManagerHandler::AMI_PropertyManagerHandler (void)
 : the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_ (0)
{
  this->PortableGroup_AMI_PropertyManagerHandler_setup_collocation ();
}

void
PortableGroup::AMI_PropertyManagerHandler::PortableGroup_AMI_PropertyManagerHandler_setup_collocation ()
{
  if (::PortableGroup__TAO_AMI_PropertyManagerHandler_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_AMI_PropertyManagerHandler_Proxy_Broker_ =
        ::PortableGroup__TAO_AMI_PropertyManagerHandler_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->Messaging_ReplyHandler_setup_collocation ();
}

PortableGroup::AMI_PropertyManagerHandler::~AMI_PropertyManagerHandler (void)
{}

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

PortableGroup::AMI_PropertyManagerHandler_ptr
PortableGroup::AMI_PropertyManagerHandler::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_PropertyManagerHandler>::narrow (
        _tao_objref,
        "IDL:AMI_PropertyManagerHandler:1.0",
        PortableGroup__TAO_AMI_PropertyManagerHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_PropertyManagerHandler_ptr
PortableGroup::AMI_PropertyManagerHandler::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_PropertyManagerHandler>::unchecked_narrow (
        _tao_objref,
        "IDL:AMI_PropertyManagerHandler:1.0",
        PortableGroup__TAO_AMI_PropertyManagerHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_PropertyManagerHandler_ptr
PortableGroup::AMI_PropertyManagerHandler::_duplicate (AMI_PropertyManagerHandler_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::AMI_PropertyManagerHandler::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:ReplyHandler:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:AMI_PropertyManagerHandler: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* PortableGroup::AMI_PropertyManagerHandler::_interface_repository_id (void) const
{
  return "IDL:AMI_PropertyManagerHandler:1.0";
}

CORBA::Boolean
PortableGroup::AMI_PropertyManagerHandler::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_AMI_PropertyManagerHandler[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  35,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4d616e61), 
  ACE_NTOHL (0x67657248), 
  ACE_NTOHL (0x616e646c), 
  ACE_NTOHL (0x65723a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:AMI_PropertyManagerHandler:1.0
    27,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4d616e61), 
  ACE_NTOHL (0x67657248), 
  ACE_NTOHL (0x616e646c), 
  ACE_NTOHL (0x65720000),  // name = AMI_PropertyManagerHandler
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_PropertyManagerHandler (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_AMI_PropertyManagerHandler),
    (char *) &_oc_PortableGroup_AMI_PropertyManagerHandler,
    0,
    sizeof (PortableGroup::AMI_PropertyManagerHandler)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_PropertyManagerHandler =
    &_tc_TAO_tc_PortableGroup_AMI_PropertyManagerHandler;
}

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

// Traits specializations for PortableGroup::ObjectGroupManager.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::ObjectGroupManager_ptr
TAO::Objref_Traits<PortableGroup::ObjectGroupManager>::tao_duplicate (
    PortableGroup::ObjectGroupManager_ptr p
  )
{
  return PortableGroup::ObjectGroupManager::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::ObjectGroupManager>::tao_release (
    PortableGroup::ObjectGroupManager_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::ObjectGroupManager_ptr
TAO::Objref_Traits<PortableGroup::ObjectGroupManager>::tao_nil (void)
{
  return PortableGroup::ObjectGroupManager::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::ObjectGroupManager>::tao_marshal (
    PortableGroup::ObjectGroupManager_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

PortableGroup::ObjectGroup_ptr PortableGroup::ObjectGroupManager::create_member (
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location,
    const char * type_id,
    const ::PortableGroup::Criteria & the_criteria
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound,
    ::PortableGroup::MemberAlreadyPresent,
    ::PortableGroup::NoFactory,
    ::PortableGroup::ObjectNotCreated,
    ::PortableGroup::InvalidCriteria,
    ::PortableGroup::CannotMeetCriteria
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Criteria>::in_arg_val _tao_the_criteria (the_criteria);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location,
      &_tao_type_id,
      &_tao_the_criteria
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_create_member_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      },
      
      {
        "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
        PortableGroup::MemberAlreadyPresent::_alloc,
        PortableGroup::_tc_MemberAlreadyPresent
      },
      
      {
        "IDL:omg.org/PortableGroup/NoFactory:1.0",
        PortableGroup::NoFactory::_alloc,
        PortableGroup::_tc_NoFactory
      },
      
      {
        "IDL:omg.org/PortableGroup/ObjectNotCreated:1.0",
        PortableGroup::ObjectNotCreated::_alloc,
        PortableGroup::_tc_ObjectNotCreated
      },
      
      {
        "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
        PortableGroup::InvalidCriteria::_alloc,
        PortableGroup::_tc_InvalidCriteria
      },
      
      {
        "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
        PortableGroup::CannotMeetCriteria::_alloc,
        PortableGroup::_tc_CannotMeetCriteria
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      5,
      "create_member",
      13,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_create_member_exceptiondata,
      6
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_create_member (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location,
    const char * type_id,
    const ::PortableGroup::Criteria & the_criteria
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Criteria>::in_arg_val _tao_the_criteria (the_criteria);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location,
      &_tao_type_id,
      &_tao_the_criteria
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      5,
      "create_member",
      13,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::create_member_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

PortableGroup::ObjectGroup_ptr PortableGroup::ObjectGroupManager::add_member (
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location,
    ::CORBA::Object_ptr member
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound,
    ::PortableGroup::MemberAlreadyPresent,
    ::PortableGroup::ObjectNotAdded
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_member (member);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location,
      &_tao_member
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_add_member_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      },
      
      {
        "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
        PortableGroup::MemberAlreadyPresent::_alloc,
        PortableGroup::_tc_MemberAlreadyPresent
      },
      
      {
        "IDL:omg.org/PortableGroup/ObjectNotAdded:1.0",
        PortableGroup::ObjectNotAdded::_alloc,
        PortableGroup::_tc_ObjectNotAdded
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "add_member",
      10,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_add_member_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_add_member (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location,
    ::CORBA::Object_ptr member
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_member (member);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location,
      &_tao_member
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "add_member",
      10,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::add_member_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

PortableGroup::ObjectGroup_ptr PortableGroup::ObjectGroupManager::remove_member (
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound,
    ::PortableGroup::MemberNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_remove_member_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      },
      
      {
        "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
        PortableGroup::MemberNotFound::_alloc,
        PortableGroup::_tc_MemberNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "remove_member",
      13,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_remove_member_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_remove_member (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & the_location
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_the_location
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "remove_member",
      13,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::remove_member_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::Locations * PortableGroup::ObjectGroupManager::locations_of_members (
    ::PortableGroup::ObjectGroup_ptr object_group
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::Locations>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_locations_of_members_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "locations_of_members",
      20,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_locations_of_members_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_locations_of_members (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "locations_of_members",
      20,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::locations_of_members_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::ObjectGroups * PortableGroup::ObjectGroupManager::groups_at_location (
    const ::PortableGroup::Location & the_location
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::ObjectGroups>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_the_location
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "groups_at_location",
      18,
      this->the_TAO_ObjectGroupManager_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/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_groups_at_location (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    const ::PortableGroup::Location & the_location
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_the_location (the_location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_the_location
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "groups_at_location",
      18,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::groups_at_location_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

PortableGroup::ObjectGroupId PortableGroup::ObjectGroupManager::get_object_group_id (
    ::PortableGroup::ObjectGroup_ptr object_group
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroupId>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_get_object_group_id_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_id",
      19,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_get_object_group_id_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_get_object_group_id (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_id",
      19,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_id_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

PortableGroup::ObjectGroup_ptr PortableGroup::ObjectGroupManager::get_object_group_ref (
    ::PortableGroup::ObjectGroup_ptr object_group
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_get_object_group_ref_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref",
      20,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_get_object_group_ref_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_get_object_group_ref (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref",
      20,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

CORBA::Object_ptr PortableGroup::ObjectGroupManager::get_member_ref (
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & loc
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound,
    ::PortableGroup::MemberNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Object>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_loc (loc);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_loc
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_get_member_ref_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      },
      
      {
        "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
        PortableGroup::MemberNotFound::_alloc,
        PortableGroup::_tc_MemberNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "get_member_ref",
      14,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_get_member_ref_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_get_member_ref (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroup_ptr object_group,
    const ::PortableGroup::Location & loc
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_object_group (object_group);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_loc (loc);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_object_group,
      &_tao_loc
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "get_member_ref",
      14,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::get_member_ref_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

PortableGroup::ObjectGroup_ptr PortableGroup::ObjectGroupManager::get_object_group_ref_from_id (
    ::PortableGroup::ObjectGroupId group_id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectGroupNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroupId>::in_arg_val _tao_group_id (group_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_group_id
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_ObjectGroupManager_get_object_group_ref_from_id_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
        PortableGroup::ObjectGroupNotFound::_alloc,
        PortableGroup::_tc_ObjectGroupNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref_from_id",
      28,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_ObjectGroupManager_get_object_group_ref_from_id_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::ObjectGroupManager::sendc_get_object_group_ref_from_id (
    ::PortableGroup::AMI_ObjectGroupManagerHandler_ptr ami_handler,
    ::PortableGroup::ObjectGroupId group_id
    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_ObjectGroupManager_Proxy_Broker_ == 0)
    {
      PortableGroup_ObjectGroupManager_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroupId>::in_arg_val _tao_group_id (group_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_group_id
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref_from_id",
      28,
      this->the_TAO_ObjectGroupManager_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_from_id_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

PortableGroup::ObjectGroupManager::ObjectGroupManager (void)
 : the_TAO_ObjectGroupManager_Proxy_Broker_ (0)
{
  this->PortableGroup_ObjectGroupManager_setup_collocation ();
}

void
PortableGroup::ObjectGroupManager::PortableGroup_ObjectGroupManager_setup_collocation ()
{
  if (::PortableGroup__TAO_ObjectGroupManager_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_ObjectGroupManager_Proxy_Broker_ =
        ::PortableGroup__TAO_ObjectGroupManager_Proxy_Broker_Factory_function_pointer (this);
    }
}

PortableGroup::ObjectGroupManager::~ObjectGroupManager (void)
{}

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

PortableGroup::ObjectGroupManager_ptr
PortableGroup::ObjectGroupManager::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ObjectGroupManager>::narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/ObjectGroupManager:1.0",
        PortableGroup__TAO_ObjectGroupManager_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::ObjectGroupManager_ptr
PortableGroup::ObjectGroupManager::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ObjectGroupManager>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/ObjectGroupManager:1.0",
        PortableGroup__TAO_ObjectGroupManager_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::ObjectGroupManager_ptr
PortableGroup::ObjectGroupManager::_duplicate (ObjectGroupManager_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::ObjectGroupManager::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/PortableGroup/ObjectGroupManager: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* PortableGroup::ObjectGroupManager::_interface_repository_id (void) const
{
  return "IDL:omg.org/PortableGroup/ObjectGroupManager:1.0";
}

CORBA::Boolean
PortableGroup::ObjectGroupManager::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_ObjectGroupManager[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x704d616e), 
  ACE_NTOHL (0x61676572), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/ObjectGroupManager:1.0
    19,
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75704d), 
  ACE_NTOHL (0x616e6167), 
  ACE_NTOHL (0x65720000),  // name = ObjectGroupManager
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_ObjectGroupManager (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_ObjectGroupManager),
    (char *) &_oc_PortableGroup_ObjectGroupManager,
    0,
    sizeof (PortableGroup::ObjectGroupManager)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_ObjectGroupManager =
    &_tc_TAO_tc_PortableGroup_ObjectGroupManager;
}

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

static const CORBA::Long _oc_PortableGroup_AMI_ObjectGroupManagerExceptionHolder[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  9,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL::1.0
    38,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75704d), 
  ACE_NTOHL (0x616e6167), 
  ACE_NTOHL (0x65724578), 
  ACE_NTOHL (0x63657074), 
  ACE_NTOHL (0x696f6e48), 
  ACE_NTOHL (0x6f6c6465), 
  ACE_NTOHL (0x72000000),  // name = AMI_ObjectGroupManagerExceptionHolder
    0, // value modifier
  CORBA::tk_value, // typecode kind
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    24,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x6465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:ExceptionHolder:1.0
        16,
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x64657200),  // name = ExceptionHolder
        0, // value modifier
    CORBA::tk_null, // no stateful base valuetype

0, // member count
    
0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_ObjectGroupManagerExceptionHolder (
    CORBA::tk_value,
    sizeof (_oc_PortableGroup_AMI_ObjectGroupManagerExceptionHolder),
    (char *) &_oc_PortableGroup_AMI_ObjectGroupManagerExceptionHolder,
    0,
    sizeof (PortableGroup::AMI_ObjectGroupManagerExceptionHolder)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_ObjectGroupManagerExceptionHolder =
    &_tc_TAO_tc_PortableGroup_AMI_ObjectGroupManagerExceptionHolder;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_cs.cpp:66

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::tao_add_ref (
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder * p
  )
{
  CORBA::add_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::tao_remove_ref (
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::tao_release (
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

PortableGroup::AMI_ObjectGroupManagerExceptionHolder *
PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_downcast (CORBA::ValueBase *v)
{
  if (v == 0)
    {
      return 0;
    }
  
  return dynamic_cast< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * > (v);
}

const char *
PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_obv_repository_id (void) const
{
  return this->_tao_obv_static_repository_id ();
}

void
PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_any_destructor (void *_tao_void_pointer)
{
  AMI_ObjectGroupManagerExceptionHolder *_tao_tmp_pointer =
    static_cast<
        AMI_ObjectGroupManagerExceptionHolder *> (
        _tao_void_pointer
      );
  CORBA::remove_ref (_tao_tmp_pointer);
}

CORBA::Boolean PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm)
{
  return this->_tao_marshal__PortableGroup_AMI_ObjectGroupManagerExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm)
{
  return this->_tao_unmarshal__PortableGroup_AMI_ObjectGroupManagerExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_unmarshal (
    TAO_InputCDR &strm,
    AMI_ObjectGroupManagerExceptionHolder *&new_object
  )
{
  CORBA::ValueBase *base = 0;
  CORBA::ValueFactory_var factory;
  CORBA::Boolean retval =
    CORBA::ValueBase::_tao_unmarshal_pre (
        strm,
        factory.out (),
        base,
        AMI_ObjectGroupManagerExceptionHolder::_tao_obv_static_repository_id ()
      );
  
  if (retval == 0)
    {
      return 0;
    }
  
  if (factory.in () != 0)
    {
      base = factory->create_for_unmarshal ();
      
      if (base == 0)
        {
          return 0;  // %! except.?
        }
      
      retval = base->_tao_unmarshal_v (strm);
      
      if (retval == 0)
        {
          return 0;
        }
    }
  
  // Now base must be null or point to the unmarshaled object.
  // Align the pointer to the right subobject.
  new_object = AMI_ObjectGroupManagerExceptionHolder::_downcast (base);
  return retval;
}

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

// Traits specializations for PortableGroup::AMI_ObjectGroupManagerHandler.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_ObjectGroupManagerHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_ObjectGroupManagerHandler>::tao_duplicate (
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr p
  )
{
  return PortableGroup::AMI_ObjectGroupManagerHandler::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::AMI_ObjectGroupManagerHandler>::tao_release (
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_ObjectGroupManagerHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_ObjectGroupManagerHandler>::tao_nil (void)
{
  return PortableGroup::AMI_ObjectGroupManagerHandler::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::AMI_ObjectGroupManagerHandler>::tao_marshal (
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::AMI_ObjectGroupManagerHandler::create_member (
    ::PortableGroup::ObjectGroup_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "create_member",
      13,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::create_member_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroup_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->create_member (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->create_member_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::create_member_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "create_member_excep",
      19,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::add_member (
    ::PortableGroup::ObjectGroup_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "add_member",
      10,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::add_member_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroup_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->add_member (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->add_member_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::add_member_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "add_member_excep",
      16,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::remove_member (
    ::PortableGroup::ObjectGroup_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_member",
      13,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::remove_member_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroup_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->remove_member (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->remove_member_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::remove_member_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_member_excep",
      19,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::locations_of_members (
    const ::PortableGroup::Locations & ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Locations>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "locations_of_members",
      20,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::locations_of_members_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::Locations ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->locations_of_members (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->locations_of_members_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::locations_of_members_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "locations_of_members_excep",
      26,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::groups_at_location (
    const ::PortableGroup::ObjectGroups & ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::ObjectGroups>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "groups_at_location",
      18,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::groups_at_location_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroups ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->groups_at_location (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->groups_at_location_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::groups_at_location_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "groups_at_location_excep",
      24,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_id (
    ::PortableGroup::ObjectGroupId ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroupId>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_id",
      19,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_id_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroupId ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_object_group_id (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_object_group_id_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_id_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_id_excep",
      25,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref (
    ::PortableGroup::ObjectGroup_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref",
      20,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroup_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_object_group_ref (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_object_group_ref_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref_excep",
      26,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_member_ref (
    ::CORBA::Object_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_member_ref",
      14,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::get_member_ref_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::CORBA::Object_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_member_ref (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_member_ref_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_member_ref_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_member_ref_excep",
      20,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_from_id (
    ::PortableGroup::ObjectGroup_ptr ami_return_val
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::ObjectGroup>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref_from_id",
      28,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_from_id_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_ObjectGroupManagerHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::ObjectGroup_var ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->get_object_group_ref_from_id (
          
          ami_return_val.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_ObjectGroupManagerExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->get_object_group_ref_from_id_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_ObjectGroupManagerHandler::get_object_group_ref_from_id_excep (
    ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder * excep_holder
    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_AMI_ObjectGroupManagerHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "get_object_group_ref_from_id_excep",
      34,
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

PortableGroup::AMI_ObjectGroupManagerHandler::AMI_ObjectGroupManagerHandler (void)
 : the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_ (0)
{
  this->PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ();
}

void
PortableGroup::AMI_ObjectGroupManagerHandler::PortableGroup_AMI_ObjectGroupManagerHandler_setup_collocation ()
{
  if (::PortableGroup__TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_ =
        ::PortableGroup__TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->Messaging_ReplyHandler_setup_collocation ();
}

PortableGroup::AMI_ObjectGroupManagerHandler::~AMI_ObjectGroupManagerHandler (void)
{}

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

PortableGroup::AMI_ObjectGroupManagerHandler_ptr
PortableGroup::AMI_ObjectGroupManagerHandler::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_ObjectGroupManagerHandler>::narrow (
        _tao_objref,
        "IDL:AMI_ObjectGroupManagerHandler:1.0",
        PortableGroup__TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_ObjectGroupManagerHandler_ptr
PortableGroup::AMI_ObjectGroupManagerHandler::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_ObjectGroupManagerHandler>::unchecked_narrow (
        _tao_objref,
        "IDL:AMI_ObjectGroupManagerHandler:1.0",
        PortableGroup__TAO_AMI_ObjectGroupManagerHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_ObjectGroupManagerHandler_ptr
PortableGroup::AMI_ObjectGroupManagerHandler::_duplicate (AMI_ObjectGroupManagerHandler_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::AMI_ObjectGroupManagerHandler::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:ReplyHandler:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:AMI_ObjectGroupManagerHandler: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* PortableGroup::AMI_ObjectGroupManagerHandler::_interface_repository_id (void) const
{
  return "IDL:AMI_ObjectGroupManagerHandler:1.0";
}

CORBA::Boolean
PortableGroup::AMI_ObjectGroupManagerHandler::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_AMI_ObjectGroupManagerHandler[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75704d), 
  ACE_NTOHL (0x616e6167), 
  ACE_NTOHL (0x65724861), 
  ACE_NTOHL (0x6e646c65), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:AMI_ObjectGroupManagerHandler:1.0
    30,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75704d), 
  ACE_NTOHL (0x616e6167), 
  ACE_NTOHL (0x65724861), 
  ACE_NTOHL (0x6e646c65), 
  ACE_NTOHL (0x72000000),  // name = AMI_ObjectGroupManagerHandler
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_ObjectGroupManagerHandler (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_AMI_ObjectGroupManagerHandler),
    (char *) &_oc_PortableGroup_AMI_ObjectGroupManagerHandler,
    0,
    sizeof (PortableGroup::AMI_ObjectGroupManagerHandler)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_ObjectGroupManagerHandler =
    &_tc_TAO_tc_PortableGroup_AMI_ObjectGroupManagerHandler;
}

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

// Traits specializations for PortableGroup::GenericFactory.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::GenericFactory_ptr
TAO::Objref_Traits<PortableGroup::GenericFactory>::tao_duplicate (
    PortableGroup::GenericFactory_ptr p
  )
{
  return PortableGroup::GenericFactory::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::GenericFactory>::tao_release (
    PortableGroup::GenericFactory_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::GenericFactory_ptr
TAO::Objref_Traits<PortableGroup::GenericFactory>::tao_nil (void)
{
  return PortableGroup::GenericFactory::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::GenericFactory>::tao_marshal (
    PortableGroup::GenericFactory_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*PortableGroup__TAO_GenericFactory_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_PortableGroup_GenericFactory_FactoryCreationId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  63,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4765), 
  ACE_NTOHL (0x6e657269), 
  ACE_NTOHL (0x63466163), 
  ACE_NTOHL (0x746f7279), 
  ACE_NTOHL (0x2f466163), 
  ACE_NTOHL (0x746f7279), 
  ACE_NTOHL (0x43726561), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x49643a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/GenericFactory/FactoryCreationId:1.0
    18,
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727943), 
  ACE_NTOHL (0x72656174), 
  ACE_NTOHL (0x696f6e49), 
  ACE_NTOHL (0x64000000),  // name = FactoryCreationId
    CORBA::tk_any,

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_GenericFactory_FactoryCreationId (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_GenericFactory_FactoryCreationId),
    (char *) &_oc_PortableGroup_GenericFactory_FactoryCreationId,
    0,
    sizeof (PortableGroup::GenericFactory::FactoryCreationId)
  );

::CORBA::TypeCode_ptr PortableGroup::GenericFactory::_tc_FactoryCreationId =
  &_tc_TAO_tc_PortableGroup_GenericFactory_FactoryCreationId;

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

CORBA::Object_ptr PortableGroup::GenericFactory::create_object (
    const char * type_id,
    const ::PortableGroup::Criteria & the_criteria,
    ::PortableGroup::GenericFactory::FactoryCreationId_out factory_creation_id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::NoFactory,
    ::PortableGroup::ObjectNotCreated,
    ::PortableGroup::InvalidCriteria,
    ::PortableGroup::InvalidProperty,
    ::PortableGroup::CannotMeetCriteria
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_GenericFactory_Proxy_Broker_ == 0)
    {
      PortableGroup_GenericFactory_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Object>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Criteria>::in_arg_val _tao_the_criteria (the_criteria);
  TAO::Arg_Traits< PortableGroup::GenericFactory::FactoryCreationId>::out_arg_val _tao_factory_creation_id (factory_creation_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_the_criteria,
      &_tao_factory_creation_id
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_GenericFactory_create_object_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/NoFactory:1.0",
        PortableGroup::NoFactory::_alloc,
        PortableGroup::_tc_NoFactory
      },
      
      {
        "IDL:omg.org/PortableGroup/ObjectNotCreated:1.0",
        PortableGroup::ObjectNotCreated::_alloc,
        PortableGroup::_tc_ObjectNotCreated
      },
      
      {
        "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
        PortableGroup::InvalidCriteria::_alloc,
        PortableGroup::_tc_InvalidCriteria
      },
      
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      },
      
      {
        "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
        PortableGroup::CannotMeetCriteria::_alloc,
        PortableGroup::_tc_CannotMeetCriteria
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "create_object",
      13,
      this->the_TAO_GenericFactory_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_GenericFactory_create_object_exceptiondata,
      5
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::GenericFactory::sendc_create_object (
    ::PortableGroup::AMI_GenericFactoryHandler_ptr ami_handler,
    const char * type_id,
    const ::PortableGroup::Criteria & the_criteria
    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_GenericFactory_Proxy_Broker_ == 0)
    {
      PortableGroup_GenericFactory_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::Criteria>::in_arg_val _tao_the_criteria (the_criteria);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type_id,
      &_tao_the_criteria
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "create_object",
      13,
      this->the_TAO_GenericFactory_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_GenericFactoryHandler::create_object_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::GenericFactory::delete_object (
    const ::PortableGroup::GenericFactory::FactoryCreationId & factory_creation_id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::ObjectNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_GenericFactory_Proxy_Broker_ == 0)
    {
      PortableGroup_GenericFactory_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::GenericFactory::FactoryCreationId>::in_arg_val _tao_factory_creation_id (factory_creation_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_factory_creation_id
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_GenericFactory_delete_object_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/ObjectNotFound:1.0",
        PortableGroup::ObjectNotFound::_alloc,
        PortableGroup::_tc_ObjectNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "delete_object",
      13,
      this->the_TAO_GenericFactory_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_GenericFactory_delete_object_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::GenericFactory::sendc_delete_object (
    ::PortableGroup::AMI_GenericFactoryHandler_ptr ami_handler,
    const ::PortableGroup::GenericFactory::FactoryCreationId & factory_creation_id
    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_GenericFactory_Proxy_Broker_ == 0)
    {
      PortableGroup_GenericFactory_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< PortableGroup::GenericFactory::FactoryCreationId>::in_arg_val _tao_factory_creation_id (factory_creation_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_factory_creation_id
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "delete_object",
      13,
      this->the_TAO_GenericFactory_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_GenericFactoryHandler::delete_object_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

PortableGroup::GenericFactory::GenericFactory (void)
 : the_TAO_GenericFactory_Proxy_Broker_ (0)
{
  this->PortableGroup_GenericFactory_setup_collocation ();
}

void
PortableGroup::GenericFactory::PortableGroup_GenericFactory_setup_collocation ()
{
  if (::PortableGroup__TAO_GenericFactory_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_GenericFactory_Proxy_Broker_ =
        ::PortableGroup__TAO_GenericFactory_Proxy_Broker_Factory_function_pointer (this);
    }
}

PortableGroup::GenericFactory::~GenericFactory (void)
{}

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

PortableGroup::GenericFactory_ptr
PortableGroup::GenericFactory::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<GenericFactory>::narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/GenericFactory:1.0",
        PortableGroup__TAO_GenericFactory_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::GenericFactory_ptr
PortableGroup::GenericFactory::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<GenericFactory>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/GenericFactory:1.0",
        PortableGroup__TAO_GenericFactory_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::GenericFactory_ptr
PortableGroup::GenericFactory::_duplicate (GenericFactory_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::GenericFactory::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/PortableGroup/GenericFactory: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* PortableGroup::GenericFactory::_interface_repository_id (void) const
{
  return "IDL:omg.org/PortableGroup/GenericFactory:1.0";
}

CORBA::Boolean
PortableGroup::GenericFactory::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_GenericFactory[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4765), 
  ACE_NTOHL (0x6e657269), 
  ACE_NTOHL (0x63466163), 
  ACE_NTOHL (0x746f7279), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/PortableGroup/GenericFactory:1.0
    15,
  ACE_NTOHL (0x47656e65), 
  ACE_NTOHL (0x72696346), 
  ACE_NTOHL (0x6163746f), 
  ACE_NTOHL (0x72790000),  // name = GenericFactory
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_GenericFactory (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_GenericFactory),
    (char *) &_oc_PortableGroup_GenericFactory,
    0,
    sizeof (PortableGroup::GenericFactory)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_GenericFactory =
    &_tc_TAO_tc_PortableGroup_GenericFactory;
}

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

static const CORBA::Long _oc_PortableGroup_AMI_GenericFactoryExceptionHolder[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  9,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL::1.0
    34,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x47656e65), 
  ACE_NTOHL (0x72696346), 
  ACE_NTOHL (0x6163746f), 
  ACE_NTOHL (0x72794578), 
  ACE_NTOHL (0x63657074), 
  ACE_NTOHL (0x696f6e48), 
  ACE_NTOHL (0x6f6c6465), 
  ACE_NTOHL (0x72000000),  // name = AMI_GenericFactoryExceptionHolder
    0, // value modifier
  CORBA::tk_value, // typecode kind
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    24,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x6465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:ExceptionHolder:1.0
        16,
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x64657200),  // name = ExceptionHolder
        0, // value modifier
    CORBA::tk_null, // no stateful base valuetype

0, // member count
    
0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_GenericFactoryExceptionHolder (
    CORBA::tk_value,
    sizeof (_oc_PortableGroup_AMI_GenericFactoryExceptionHolder),
    (char *) &_oc_PortableGroup_AMI_GenericFactoryExceptionHolder,
    0,
    sizeof (PortableGroup::AMI_GenericFactoryExceptionHolder)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_GenericFactoryExceptionHolder =
    &_tc_TAO_tc_PortableGroup_AMI_GenericFactoryExceptionHolder;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_cs.cpp:66

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_GenericFactoryExceptionHolder>::tao_add_ref (
    PortableGroup::AMI_GenericFactoryExceptionHolder * p
  )
{
  CORBA::add_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_GenericFactoryExceptionHolder>::tao_remove_ref (
    PortableGroup::AMI_GenericFactoryExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_GenericFactoryExceptionHolder>::tao_release (
    PortableGroup::AMI_GenericFactoryExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

PortableGroup::AMI_GenericFactoryExceptionHolder *
PortableGroup::AMI_GenericFactoryExceptionHolder::_downcast (CORBA::ValueBase *v)
{
  if (v == 0)
    {
      return 0;
    }
  
  return dynamic_cast< ::PortableGroup::AMI_GenericFactoryExceptionHolder * > (v);
}

const char *
PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_obv_repository_id (void) const
{
  return this->_tao_obv_static_repository_id ();
}

void
PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_any_destructor (void *_tao_void_pointer)
{
  AMI_GenericFactoryExceptionHolder *_tao_tmp_pointer =
    static_cast<
        AMI_GenericFactoryExceptionHolder *> (
        _tao_void_pointer
      );
  CORBA::remove_ref (_tao_tmp_pointer);
}

CORBA::Boolean PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm)
{
  return this->_tao_marshal__PortableGroup_AMI_GenericFactoryExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm)
{
  return this->_tao_unmarshal__PortableGroup_AMI_GenericFactoryExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_unmarshal (
    TAO_InputCDR &strm,
    AMI_GenericFactoryExceptionHolder *&new_object
  )
{
  CORBA::ValueBase *base = 0;
  CORBA::ValueFactory_var factory;
  CORBA::Boolean retval =
    CORBA::ValueBase::_tao_unmarshal_pre (
        strm,
        factory.out (),
        base,
        AMI_GenericFactoryExceptionHolder::_tao_obv_static_repository_id ()
      );
  
  if (retval == 0)
    {
      return 0;
    }
  
  if (factory.in () != 0)
    {
      base = factory->create_for_unmarshal ();
      
      if (base == 0)
        {
          return 0;  // %! except.?
        }
      
      retval = base->_tao_unmarshal_v (strm);
      
      if (retval == 0)
        {
          return 0;
        }
    }
  
  // Now base must be null or point to the unmarshaled object.
  // Align the pointer to the right subobject.
  new_object = AMI_GenericFactoryExceptionHolder::_downcast (base);
  return retval;
}

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

// Traits specializations for PortableGroup::AMI_GenericFactoryHandler.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_GenericFactoryHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_GenericFactoryHandler>::tao_duplicate (
    PortableGroup::AMI_GenericFactoryHandler_ptr p
  )
{
  return PortableGroup::AMI_GenericFactoryHandler::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::AMI_GenericFactoryHandler>::tao_release (
    PortableGroup::AMI_GenericFactoryHandler_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_GenericFactoryHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_GenericFactoryHandler>::tao_nil (void)
{
  return PortableGroup::AMI_GenericFactoryHandler::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::AMI_GenericFactoryHandler>::tao_marshal (
    PortableGroup::AMI_GenericFactoryHandler_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::AMI_GenericFactoryHandler::create_object (
    ::CORBA::Object_ptr ami_return_val,
    const ::PortableGroup::GenericFactory::FactoryCreationId & factory_creation_id
    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_AMI_GenericFactoryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_GenericFactoryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_ami_return_val (ami_return_val);
  TAO::Arg_Traits< PortableGroup::GenericFactory::FactoryCreationId>::in_arg_val _tao_factory_creation_id (factory_creation_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val,
      &_tao_factory_creation_id
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "create_object",
      13,
      this->the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_GenericFactoryHandler::create_object_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_GenericFactoryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_GenericFactoryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::CORBA::Object_var ami_return_val;
      ::PortableGroup::GenericFactory::FactoryCreationId factory_creation_id;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val.out ()) &&
            (_tao_in >> factory_creation_id)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->create_object (
          
          ami_return_val.in (),
          
          factory_creation_id
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_GenericFactoryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->create_object_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_GenericFactoryHandler::create_object_excep (
    ::PortableGroup::AMI_GenericFactoryExceptionHolder * excep_holder
    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_AMI_GenericFactoryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_GenericFactoryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_GenericFactoryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "create_object_excep",
      19,
      this->the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_GenericFactoryHandler::delete_object (
    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_AMI_GenericFactoryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_GenericFactoryHandler_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,
      "delete_object",
      13,
      this->the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_GenericFactoryHandler::delete_object_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_GenericFactoryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_GenericFactoryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->delete_object (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_GenericFactoryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->delete_object_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_GenericFactoryHandler::delete_object_excep (
    ::PortableGroup::AMI_GenericFactoryExceptionHolder * excep_holder
    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_AMI_GenericFactoryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_GenericFactoryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_GenericFactoryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "delete_object_excep",
      19,
      this->the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

PortableGroup::AMI_GenericFactoryHandler::AMI_GenericFactoryHandler (void)
 : the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_ (0)
{
  this->PortableGroup_AMI_GenericFactoryHandler_setup_collocation ();
}

void
PortableGroup::AMI_GenericFactoryHandler::PortableGroup_AMI_GenericFactoryHandler_setup_collocation ()
{
  if (::PortableGroup__TAO_AMI_GenericFactoryHandler_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_AMI_GenericFactoryHandler_Proxy_Broker_ =
        ::PortableGroup__TAO_AMI_GenericFactoryHandler_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->Messaging_ReplyHandler_setup_collocation ();
}

PortableGroup::AMI_GenericFactoryHandler::~AMI_GenericFactoryHandler (void)
{}

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

PortableGroup::AMI_GenericFactoryHandler_ptr
PortableGroup::AMI_GenericFactoryHandler::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_GenericFactoryHandler>::narrow (
        _tao_objref,
        "IDL:AMI_GenericFactoryHandler:1.0",
        PortableGroup__TAO_AMI_GenericFactoryHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_GenericFactoryHandler_ptr
PortableGroup::AMI_GenericFactoryHandler::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_GenericFactoryHandler>::unchecked_narrow (
        _tao_objref,
        "IDL:AMI_GenericFactoryHandler:1.0",
        PortableGroup__TAO_AMI_GenericFactoryHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_GenericFactoryHandler_ptr
PortableGroup::AMI_GenericFactoryHandler::_duplicate (AMI_GenericFactoryHandler_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::AMI_GenericFactoryHandler::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:ReplyHandler:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:AMI_GenericFactoryHandler: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* PortableGroup::AMI_GenericFactoryHandler::_interface_repository_id (void) const
{
  return "IDL:AMI_GenericFactoryHandler:1.0";
}

CORBA::Boolean
PortableGroup::AMI_GenericFactoryHandler::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_AMI_GenericFactoryHandler[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  34,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x47656e65), 
  ACE_NTOHL (0x72696346), 
  ACE_NTOHL (0x6163746f), 
  ACE_NTOHL (0x72794861), 
  ACE_NTOHL (0x6e646c65), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:AMI_GenericFactoryHandler:1.0
    26,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x47656e65), 
  ACE_NTOHL (0x72696346), 
  ACE_NTOHL (0x6163746f), 
  ACE_NTOHL (0x72794861), 
  ACE_NTOHL (0x6e646c65), 
  ACE_NTOHL (0x72000000),  // name = AMI_GenericFactoryHandler
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_GenericFactoryHandler (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_AMI_GenericFactoryHandler),
    (char *) &_oc_PortableGroup_AMI_GenericFactoryHandler,
    0,
    sizeof (PortableGroup::AMI_GenericFactoryHandler)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_GenericFactoryHandler =
    &_tc_TAO_tc_PortableGroup_AMI_GenericFactoryHandler;
}

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

static const CORBA::Long _oc_PortableGroup_RoleName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f526f), 
  ACE_NTOHL (0x6c654e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/PortableGroup/RoleName:1.0
    9,
  ACE_NTOHL (0x526f6c65), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = RoleName
    CORBA::tk_alias, // typecode kind for typedefs
  68, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    33,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x434f5242), 
    ACE_NTOHL (0x412f4964), 
    ACE_NTOHL (0x656e7469), 
    ACE_NTOHL (0x66696572), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CORBA/Identifier:1.0
        11,
    ACE_NTOHL (0x4964656e), 
    ACE_NTOHL (0x74696669), 
    ACE_NTOHL (0x65720000),  // name = Identifier
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_RoleName (
    CORBA::tk_alias,
    sizeof (_oc_PortableGroup_RoleName),
    (char *) &_oc_PortableGroup_RoleName,
    0,
    sizeof (PortableGroup::RoleName)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_RoleName =
    &_tc_TAO_tc_PortableGroup_RoleName;
}

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

// Traits specializations for PortableGroup::FactoryRegistry.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::FactoryRegistry_ptr
TAO::Objref_Traits<PortableGroup::FactoryRegistry>::tao_duplicate (
    PortableGroup::FactoryRegistry_ptr p
  )
{
  return PortableGroup::FactoryRegistry::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::FactoryRegistry>::tao_release (
    PortableGroup::FactoryRegistry_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::FactoryRegistry_ptr
TAO::Objref_Traits<PortableGroup::FactoryRegistry>::tao_nil (void)
{
  return PortableGroup::FactoryRegistry::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::FactoryRegistry>::tao_marshal (
    PortableGroup::FactoryRegistry_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::FactoryRegistry::register_factory (
    const char * role,
    const char * type_id,
    const ::PortableGroup::FactoryInfo & factory_info
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::MemberAlreadyPresent,
    ::PortableGroup::TypeConflict
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::FactoryInfo>::in_arg_val _tao_factory_info (factory_info);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role,
      &_tao_type_id,
      &_tao_factory_info
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_FactoryRegistry_register_factory_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
        PortableGroup::MemberAlreadyPresent::_alloc,
        PortableGroup::_tc_MemberAlreadyPresent
      },
      
      {
        "IDL:omg.org/PortableGroup/TypeConflict:1.0",
        PortableGroup::TypeConflict::_alloc,
        PortableGroup::_tc_TypeConflict
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "register_factory",
      16,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_FactoryRegistry_register_factory_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_register_factory (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const char * role,
    const char * type_id,
    const ::PortableGroup::FactoryInfo & factory_info
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  TAO::Arg_Traits< ::PortableGroup::FactoryInfo>::in_arg_val _tao_factory_info (factory_info);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role,
      &_tao_type_id,
      &_tao_factory_info
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "register_factory",
      16,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::register_factory_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::FactoryRegistry::unregister_factory (
    const char * role,
    const ::PortableGroup::Location & location
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::MemberNotFound
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role,
      &_tao_location
    };
  
  static TAO::Exception_Data
  _tao_PortableGroup_FactoryRegistry_unregister_factory_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
        PortableGroup::MemberNotFound::_alloc,
        PortableGroup::_tc_MemberNotFound
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "unregister_factory",
      18,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_PortableGroup_FactoryRegistry_unregister_factory_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_unregister_factory (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const char * role,
    const ::PortableGroup::Location & location
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role,
      &_tao_location
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "unregister_factory",
      18,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::FactoryRegistry::unregister_factory_by_role (
    const char * role
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_role",
      26,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_unregister_factory_by_role (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const char * role
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_role",
      26,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_role_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void PortableGroup::FactoryRegistry::unregister_factory_by_location (
    const ::PortableGroup::Location & location
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_location
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_location",
      30,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_unregister_factory_by_location (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const ::PortableGroup::Location & location
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_location
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_location",
      30,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_location_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::FactoryInfos * PortableGroup::FactoryRegistry::list_factories_by_role (
    const char * role,
    CORBA::String_out type_id
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::FactoryInfos>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::out_arg_val _tao_type_id (type_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role,
      &_tao_type_id
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "list_factories_by_role",
      22,
      this->the_TAO_FactoryRegistry_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/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_list_factories_by_role (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const char * role
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::RoleName>::in_arg_val _tao_role (role);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_role
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_role",
      22,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_role_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::PortableGroup::FactoryInfos * PortableGroup::FactoryRegistry::list_factories_by_location (
    const ::PortableGroup::Location & location
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::PortableGroup::FactoryInfos>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_location
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_location",
      26,
      this->the_TAO_FactoryRegistry_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/ami_cs.cpp:71

void
PortableGroup::FactoryRegistry::sendc_list_factories_by_location (
    ::PortableGroup::AMI_FactoryRegistryHandler_ptr ami_handler,
    const ::PortableGroup::Location & location
    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_FactoryRegistry_Proxy_Broker_ == 0)
    {
      PortableGroup_FactoryRegistry_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Location>::in_arg_val _tao_location (location);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_location
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_location",
      26,
      this->the_TAO_FactoryRegistry_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_location_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

PortableGroup::FactoryRegistry::FactoryRegistry (void)
 : the_TAO_FactoryRegistry_Proxy_Broker_ (0)
{
  this->PortableGroup_FactoryRegistry_setup_collocation ();
}

void
PortableGroup::FactoryRegistry::PortableGroup_FactoryRegistry_setup_collocation ()
{
  if (::PortableGroup__TAO_FactoryRegistry_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_FactoryRegistry_Proxy_Broker_ =
        ::PortableGroup__TAO_FactoryRegistry_Proxy_Broker_Factory_function_pointer (this);
    }
}

PortableGroup::FactoryRegistry::~FactoryRegistry (void)
{}

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

PortableGroup::FactoryRegistry_ptr
PortableGroup::FactoryRegistry::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<FactoryRegistry>::narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/FactoryRegistry:1.0",
        PortableGroup__TAO_FactoryRegistry_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::FactoryRegistry_ptr
PortableGroup::FactoryRegistry::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<FactoryRegistry>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/FactoryRegistry:1.0",
        PortableGroup__TAO_FactoryRegistry_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::FactoryRegistry_ptr
PortableGroup::FactoryRegistry::_duplicate (FactoryRegistry_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::FactoryRegistry::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/PortableGroup/FactoryRegistry: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* PortableGroup::FactoryRegistry::_interface_repository_id (void) const
{
  return "IDL:omg.org/PortableGroup/FactoryRegistry:1.0";
}

CORBA::Boolean
PortableGroup::FactoryRegistry::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_FactoryRegistry[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f4661), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x79526567), 
  ACE_NTOHL (0x69737472), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/PortableGroup/FactoryRegistry:1.0
    16,
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727952), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x74727900),  // name = FactoryRegistry
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_FactoryRegistry (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_FactoryRegistry),
    (char *) &_oc_PortableGroup_FactoryRegistry,
    0,
    sizeof (PortableGroup::FactoryRegistry)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_FactoryRegistry =
    &_tc_TAO_tc_PortableGroup_FactoryRegistry;
}

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

static const CORBA::Long _oc_PortableGroup_AMI_FactoryRegistryExceptionHolder[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  9,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL::1.0
    35,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727952), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x74727945), 
  ACE_NTOHL (0x78636570), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x486f6c64), 
  ACE_NTOHL (0x65720000),  // name = AMI_FactoryRegistryExceptionHolder
    0, // value modifier
  CORBA::tk_value, // typecode kind
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    24,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x6465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:ExceptionHolder:1.0
        16,
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x64657200),  // name = ExceptionHolder
        0, // value modifier
    CORBA::tk_null, // no stateful base valuetype

0, // member count
    
0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_FactoryRegistryExceptionHolder (
    CORBA::tk_value,
    sizeof (_oc_PortableGroup_AMI_FactoryRegistryExceptionHolder),
    (char *) &_oc_PortableGroup_AMI_FactoryRegistryExceptionHolder,
    0,
    sizeof (PortableGroup::AMI_FactoryRegistryExceptionHolder)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_FactoryRegistryExceptionHolder =
    &_tc_TAO_tc_PortableGroup_AMI_FactoryRegistryExceptionHolder;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_cs.cpp:66

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_FactoryRegistryExceptionHolder>::tao_add_ref (
    PortableGroup::AMI_FactoryRegistryExceptionHolder * p
  )
{
  CORBA::add_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_FactoryRegistryExceptionHolder>::tao_remove_ref (
    PortableGroup::AMI_FactoryRegistryExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_FactoryRegistryExceptionHolder>::tao_release (
    PortableGroup::AMI_FactoryRegistryExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

PortableGroup::AMI_FactoryRegistryExceptionHolder *
PortableGroup::AMI_FactoryRegistryExceptionHolder::_downcast (CORBA::ValueBase *v)
{
  if (v == 0)
    {
      return 0;
    }
  
  return dynamic_cast< ::PortableGroup::AMI_FactoryRegistryExceptionHolder * > (v);
}

const char *
PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_obv_repository_id (void) const
{
  return this->_tao_obv_static_repository_id ();
}

void
PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_any_destructor (void *_tao_void_pointer)
{
  AMI_FactoryRegistryExceptionHolder *_tao_tmp_pointer =
    static_cast<
        AMI_FactoryRegistryExceptionHolder *> (
        _tao_void_pointer
      );
  CORBA::remove_ref (_tao_tmp_pointer);
}

CORBA::Boolean PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm)
{
  return this->_tao_marshal__PortableGroup_AMI_FactoryRegistryExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm)
{
  return this->_tao_unmarshal__PortableGroup_AMI_FactoryRegistryExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_unmarshal (
    TAO_InputCDR &strm,
    AMI_FactoryRegistryExceptionHolder *&new_object
  )
{
  CORBA::ValueBase *base = 0;
  CORBA::ValueFactory_var factory;
  CORBA::Boolean retval =
    CORBA::ValueBase::_tao_unmarshal_pre (
        strm,
        factory.out (),
        base,
        AMI_FactoryRegistryExceptionHolder::_tao_obv_static_repository_id ()
      );
  
  if (retval == 0)
    {
      return 0;
    }
  
  if (factory.in () != 0)
    {
      base = factory->create_for_unmarshal ();
      
      if (base == 0)
        {
          return 0;  // %! except.?
        }
      
      retval = base->_tao_unmarshal_v (strm);
      
      if (retval == 0)
        {
          return 0;
        }
    }
  
  // Now base must be null or point to the unmarshaled object.
  // Align the pointer to the right subobject.
  new_object = AMI_FactoryRegistryExceptionHolder::_downcast (base);
  return retval;
}

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

// Traits specializations for PortableGroup::AMI_FactoryRegistryHandler.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_FactoryRegistryHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_FactoryRegistryHandler>::tao_duplicate (
    PortableGroup::AMI_FactoryRegistryHandler_ptr p
  )
{
  return PortableGroup::AMI_FactoryRegistryHandler::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::AMI_FactoryRegistryHandler>::tao_release (
    PortableGroup::AMI_FactoryRegistryHandler_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_FactoryRegistryHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_FactoryRegistryHandler>::tao_nil (void)
{
  return PortableGroup::AMI_FactoryRegistryHandler::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::AMI_FactoryRegistryHandler>::tao_marshal (
    PortableGroup::AMI_FactoryRegistryHandler_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::AMI_FactoryRegistryHandler::register_factory (
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_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,
      "register_factory",
      16,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::register_factory_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->register_factory (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->register_factory_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::register_factory_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "register_factory_excep",
      22,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory (
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_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,
      "unregister_factory",
      18,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->unregister_factory (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->unregister_factory_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_excep",
      24,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_role (
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_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,
      "unregister_factory_by_role",
      26,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_role_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->unregister_factory_by_role (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->unregister_factory_by_role_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_role_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_role_excep",
      32,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_location (
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_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,
      "unregister_factory_by_location",
      30,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_location_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->unregister_factory_by_location (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->unregister_factory_by_location_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::unregister_factory_by_location_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unregister_factory_by_location_excep",
      36,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_role (
    const ::PortableGroup::FactoryInfos & ami_return_val,
    const char * type_id
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::FactoryInfos>::in_arg_val _tao_ami_return_val (ami_return_val);
  TAO::Arg_Traits< ::PortableGroup::TypeId>::in_arg_val _tao_type_id (type_id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val,
      &_tao_type_id
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "list_factories_by_role",
      22,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_role_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::FactoryInfos ami_return_val;
      ::CORBA::String_var type_id;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val) &&
            (_tao_in >> type_id.out ())
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->list_factories_by_role (
          
          ami_return_val,
          
          type_id.in ()
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->list_factories_by_role_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_role_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_role_excep",
      28,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_location (
    const ::PortableGroup::FactoryInfos & ami_return_val
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::FactoryInfos>::in_arg_val _tao_ami_return_val (ami_return_val);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_ami_return_val
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_location",
      26,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_location_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_FactoryRegistryHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_FactoryRegistryHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {

      ::PortableGroup::FactoryInfos ami_return_val;      // Demarshall all the arguments.
      if (!(

            (_tao_in >> ami_return_val)
         ))
        ACE_THROW (CORBA::MARSHAL ());
      
      // Invoke the call back method.
      _tao_reply_handler_object->list_factories_by_location (
          
          ami_return_val
          ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_FactoryRegistryExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->list_factories_by_location_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_FactoryRegistryHandler::list_factories_by_location_excep (
    ::PortableGroup::AMI_FactoryRegistryExceptionHolder * excep_holder
    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_AMI_FactoryRegistryHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_FactoryRegistryExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_factories_by_location_excep",
      32,
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

PortableGroup::AMI_FactoryRegistryHandler::AMI_FactoryRegistryHandler (void)
 : the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_ (0)
{
  this->PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ();
}

void
PortableGroup::AMI_FactoryRegistryHandler::PortableGroup_AMI_FactoryRegistryHandler_setup_collocation ()
{
  if (::PortableGroup__TAO_AMI_FactoryRegistryHandler_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_AMI_FactoryRegistryHandler_Proxy_Broker_ =
        ::PortableGroup__TAO_AMI_FactoryRegistryHandler_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->Messaging_ReplyHandler_setup_collocation ();
}

PortableGroup::AMI_FactoryRegistryHandler::~AMI_FactoryRegistryHandler (void)
{}

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

PortableGroup::AMI_FactoryRegistryHandler_ptr
PortableGroup::AMI_FactoryRegistryHandler::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_FactoryRegistryHandler>::narrow (
        _tao_objref,
        "IDL:AMI_FactoryRegistryHandler:1.0",
        PortableGroup__TAO_AMI_FactoryRegistryHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_FactoryRegistryHandler_ptr
PortableGroup::AMI_FactoryRegistryHandler::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_FactoryRegistryHandler>::unchecked_narrow (
        _tao_objref,
        "IDL:AMI_FactoryRegistryHandler:1.0",
        PortableGroup__TAO_AMI_FactoryRegistryHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_FactoryRegistryHandler_ptr
PortableGroup::AMI_FactoryRegistryHandler::_duplicate (AMI_FactoryRegistryHandler_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::AMI_FactoryRegistryHandler::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:ReplyHandler:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:AMI_FactoryRegistryHandler: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* PortableGroup::AMI_FactoryRegistryHandler::_interface_repository_id (void) const
{
  return "IDL:AMI_FactoryRegistryHandler:1.0";
}

CORBA::Boolean
PortableGroup::AMI_FactoryRegistryHandler::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_AMI_FactoryRegistryHandler[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  35,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727952), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x74727948), 
  ACE_NTOHL (0x616e646c), 
  ACE_NTOHL (0x65723a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:AMI_FactoryRegistryHandler:1.0
    27,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f727952), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x74727948), 
  ACE_NTOHL (0x616e646c), 
  ACE_NTOHL (0x65720000),  // name = AMI_FactoryRegistryHandler
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_FactoryRegistryHandler (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_AMI_FactoryRegistryHandler),
    (char *) &_oc_PortableGroup_AMI_FactoryRegistryHandler,
    0,
    sizeof (PortableGroup::AMI_FactoryRegistryHandler)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_FactoryRegistryHandler =
    &_tc_TAO_tc_PortableGroup_AMI_FactoryRegistryHandler;
}

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

// Traits specializations for PortableGroup::TAO_UpdateObjectGroup.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::TAO_UpdateObjectGroup_ptr
TAO::Objref_Traits<PortableGroup::TAO_UpdateObjectGroup>::tao_duplicate (
    PortableGroup::TAO_UpdateObjectGroup_ptr p
  )
{
  return PortableGroup::TAO_UpdateObjectGroup::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::TAO_UpdateObjectGroup>::tao_release (
    PortableGroup::TAO_UpdateObjectGroup_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::TAO_UpdateObjectGroup_ptr
TAO::Objref_Traits<PortableGroup::TAO_UpdateObjectGroup>::tao_nil (void)
{
  return PortableGroup::TAO_UpdateObjectGroup::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::TAO_UpdateObjectGroup>::tao_marshal (
    PortableGroup::TAO_UpdateObjectGroup_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::TAO_UpdateObjectGroup::tao_update_object_group (
    const char * iogr,
    ::PortableGroup::ObjectGroupRefVersion version,
    ::CORBA::Boolean is_primary
    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_TAO_UpdateObjectGroup_Proxy_Broker_ == 0)
    {
      PortableGroup_TAO_UpdateObjectGroup_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CORBA::Char *>::in_arg_val _tao_iogr (iogr);
  TAO::Arg_Traits< PortableGroup::ObjectGroupRefVersion>::in_arg_val _tao_version (version);
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_is_primary (is_primary);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_iogr,
      &_tao_version,
      &_tao_is_primary
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "tao_update_object_group",
      23,
      this->the_TAO_TAO_UpdateObjectGroup_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

// TAO_IDL - Generated from
// be/be_visitor_operation/ami_cs.cpp:71

void
PortableGroup::TAO_UpdateObjectGroup::sendc_tao_update_object_group (
    ::PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr ami_handler,
    const char * iogr,
    ::PortableGroup::ObjectGroupRefVersion version,
    ::CORBA::Boolean is_primary
    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_TAO_UpdateObjectGroup_Proxy_Broker_ == 0)
    {
      PortableGroup_TAO_UpdateObjectGroup_setup_collocation ();
    }
  
  TAO::Arg_Traits<void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CORBA::Char *>::in_arg_val _tao_iogr (iogr);
  TAO::Arg_Traits< PortableGroup::ObjectGroupRefVersion>::in_arg_val _tao_version (version);
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_is_primary (is_primary);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_iogr,
      &_tao_version,
      &_tao_is_primary
    };
  
  TAO::Asynch_Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "tao_update_object_group",
      23,
      this->the_TAO_TAO_UpdateObjectGroup_Proxy_Broker_
    );
  
  _tao_call.invoke (
      ami_handler,
      &PortableGroup::AMI_TAO_UpdateObjectGroupHandler::tao_update_object_group_reply_stub
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

PortableGroup::TAO_UpdateObjectGroup::TAO_UpdateObjectGroup (void)
 : the_TAO_TAO_UpdateObjectGroup_Proxy_Broker_ (0)
{
  this->PortableGroup_TAO_UpdateObjectGroup_setup_collocation ();
}

void
PortableGroup::TAO_UpdateObjectGroup::PortableGroup_TAO_UpdateObjectGroup_setup_collocation ()
{
  if (::PortableGroup__TAO_TAO_UpdateObjectGroup_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_TAO_UpdateObjectGroup_Proxy_Broker_ =
        ::PortableGroup__TAO_TAO_UpdateObjectGroup_Proxy_Broker_Factory_function_pointer (this);
    }
}

PortableGroup::TAO_UpdateObjectGroup::~TAO_UpdateObjectGroup (void)
{}

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

PortableGroup::TAO_UpdateObjectGroup_ptr
PortableGroup::TAO_UpdateObjectGroup::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<TAO_UpdateObjectGroup>::narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/TAO_UpdateObjectGroup:1.0",
        PortableGroup__TAO_TAO_UpdateObjectGroup_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::TAO_UpdateObjectGroup_ptr
PortableGroup::TAO_UpdateObjectGroup::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<TAO_UpdateObjectGroup>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/PortableGroup/TAO_UpdateObjectGroup:1.0",
        PortableGroup__TAO_TAO_UpdateObjectGroup_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::TAO_UpdateObjectGroup_ptr
PortableGroup::TAO_UpdateObjectGroup::_duplicate (TAO_UpdateObjectGroup_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::TAO_UpdateObjectGroup::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/PortableGroup/TAO_UpdateObjectGroup: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* PortableGroup::TAO_UpdateObjectGroup::_interface_repository_id (void) const
{
  return "IDL:omg.org/PortableGroup/TAO_UpdateObjectGroup:1.0";
}

CORBA::Boolean
PortableGroup::TAO_UpdateObjectGroup::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_TAO_UpdateObjectGroup[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  52,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x506f7274), 
  ACE_NTOHL (0x61626c65), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x702f5441), 
  ACE_NTOHL (0x4f5f5570), 
  ACE_NTOHL (0x64617465), 
  ACE_NTOHL (0x4f626a65), 
  ACE_NTOHL (0x63744772), 
  ACE_NTOHL (0x6f75703a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/PortableGroup/TAO_UpdateObjectGroup:1.0
    22,
  ACE_NTOHL (0x54414f5f), 
  ACE_NTOHL (0x55706461), 
  ACE_NTOHL (0x74654f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x70000000),  // name = TAO_UpdateObjectGroup
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_TAO_UpdateObjectGroup (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_TAO_UpdateObjectGroup),
    (char *) &_oc_PortableGroup_TAO_UpdateObjectGroup,
    0,
    sizeof (PortableGroup::TAO_UpdateObjectGroup)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_TAO_UpdateObjectGroup =
    &_tc_TAO_tc_PortableGroup_TAO_UpdateObjectGroup;
}

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

static const CORBA::Long _oc_PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  9,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL::1.0
    41,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x54414f5f), 
  ACE_NTOHL (0x55706461), 
  ACE_NTOHL (0x74654f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x70457863), 
  ACE_NTOHL (0x65707469), 
  ACE_NTOHL (0x6f6e486f), 
  ACE_NTOHL (0x6c646572), 
  ACE_NTOHL (0x0),  // name = AMI_TAO_UpdateObjectGroupExceptionHolder
    0, // value modifier
  CORBA::tk_value, // typecode kind
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    24,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x6465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:ExceptionHolder:1.0
        16,
    ACE_NTOHL (0x45786365), 
    ACE_NTOHL (0x7074696f), 
    ACE_NTOHL (0x6e486f6c), 
    ACE_NTOHL (0x64657200),  // name = ExceptionHolder
        0, // value modifier
    CORBA::tk_null, // no stateful base valuetype

0, // member count
    
0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder (
    CORBA::tk_value,
    sizeof (_oc_PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder),
    (char *) &_oc_PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder,
    0,
    sizeof (PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_TAO_UpdateObjectGroupExceptionHolder =
    &_tc_TAO_tc_PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_cs.cpp:66

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::tao_add_ref (
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * p
  )
{
  CORBA::add_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::tao_remove_ref (
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION 
void
TAO::Value_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::tao_release (
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * p
  )
{
  CORBA::remove_ref (p);
}

PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *
PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_downcast (CORBA::ValueBase *v)
{
  if (v == 0)
    {
      return 0;
    }
  
  return dynamic_cast< ::PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * > (v);
}

const char *
PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_obv_repository_id (void) const
{
  return this->_tao_obv_static_repository_id ();
}

void
PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_any_destructor (void *_tao_void_pointer)
{
  AMI_TAO_UpdateObjectGroupExceptionHolder *_tao_tmp_pointer =
    static_cast<
        AMI_TAO_UpdateObjectGroupExceptionHolder *> (
        _tao_void_pointer
      );
  CORBA::remove_ref (_tao_tmp_pointer);
}

CORBA::Boolean PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm)
{
  return this->_tao_marshal__PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm)
{
  return this->_tao_unmarshal__PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder (strm);
}

CORBA::Boolean PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_unmarshal (
    TAO_InputCDR &strm,
    AMI_TAO_UpdateObjectGroupExceptionHolder *&new_object
  )
{
  CORBA::ValueBase *base = 0;
  CORBA::ValueFactory_var factory;
  CORBA::Boolean retval =
    CORBA::ValueBase::_tao_unmarshal_pre (
        strm,
        factory.out (),
        base,
        AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_obv_static_repository_id ()
      );
  
  if (retval == 0)
    {
      return 0;
    }
  
  if (factory.in () != 0)
    {
      base = factory->create_for_unmarshal ();
      
      if (base == 0)
        {
          return 0;  // %! except.?
        }
      
      retval = base->_tao_unmarshal_v (strm);
      
      if (retval == 0)
        {
          return 0;
        }
    }
  
  // Now base must be null or point to the unmarshaled object.
  // Align the pointer to the right subobject.
  new_object = AMI_TAO_UpdateObjectGroupExceptionHolder::_downcast (base);
  return retval;
}

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

// Traits specializations for PortableGroup::AMI_TAO_UpdateObjectGroupHandler.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::tao_duplicate (
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr p
  )
{
  return PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::tao_release (
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr
TAO::Objref_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::tao_nil (void)
{
  return PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::tao_marshal (
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void PortableGroup::AMI_TAO_UpdateObjectGroupHandler::tao_update_object_group (
    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_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_TAO_UpdateObjectGroupHandler_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,
      "tao_update_object_group",
      23,
      this->the_TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}
void
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::tao_update_object_group_reply_stub (
  TAO_InputCDR &_tao_in, 
  Messaging::ReplyHandler_ptr _tao_reply_handler,
  CORBA::ULong reply_status
  ACE_ENV_ARG_DECL)
{
  // Retrieve Reply Handler object.
  PortableGroup::AMI_TAO_UpdateObjectGroupHandler_var _tao_reply_handler_object =
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
  
  // Exception handling
  switch (reply_status)
  {
    case TAO_AMI_REPLY_OK:
    {
      // Demarshall all the arguments.
      // Invoke the call back method.
      _tao_reply_handler_object->tao_update_object_group (
          
          ACE_ENV_SINGLE_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_USER_EXCEPTION:
    case TAO_AMI_REPLY_SYSTEM_EXCEPTION:
    {
      const ACE_Message_Block* cdr = _tao_in.start ();
      
      AMI_TAO_UpdateObjectGroupExceptionHolder_var exception_holder_var;
      ACE_NEW (
          exception_holder_var,
          OBV_PortableGroup::_tao_AMI_TAO_UpdateObjectGroupExceptionHolder ()
        );
      
      CORBA::OctetSeq _tao_marshaled_exception (
          cdr->length (),
          cdr->length (),
          (unsigned char*) cdr->rd_ptr (),
          0
        );
      exception_holder_var->marshaled_exception (_tao_marshaled_exception);
      
      if (reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)
        exception_holder_var->is_system_exception (1);
      else
        exception_holder_var->is_system_exception (0);
      
      exception_holder_var->byte_order (_tao_in.byte_order ());
      
      _tao_reply_handler_object->tao_update_object_group_excep (
          exception_holder_var ACE_ENV_ARG_PARAMETER
        );
      ACE_CHECK;
      break;
    }
    case TAO_AMI_REPLY_NOT_OK:
      // @@ Michael: Not even the spec mentions this case.
      //             We have to think about this case.
      break;
  }
}



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

void PortableGroup::AMI_TAO_UpdateObjectGroupHandler::tao_update_object_group_excep (
    ::PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * excep_holder
    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_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_ == 0)
    {
      PortableGroup_AMI_TAO_UpdateObjectGroupHandler_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::in_arg_val _tao_excep_holder (excep_holder);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_excep_holder
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "tao_update_object_group_excep",
      29,
      this->the_TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

PortableGroup::AMI_TAO_UpdateObjectGroupHandler::AMI_TAO_UpdateObjectGroupHandler (void)
 : the_TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_ (0)
{
  this->PortableGroup_AMI_TAO_UpdateObjectGroupHandler_setup_collocation ();
}

void
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::PortableGroup_AMI_TAO_UpdateObjectGroupHandler_setup_collocation ()
{
  if (::PortableGroup__TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_ =
        ::PortableGroup__TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->Messaging_ReplyHandler_setup_collocation ();
}

PortableGroup::AMI_TAO_UpdateObjectGroupHandler::~AMI_TAO_UpdateObjectGroupHandler (void)
{}

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

PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_TAO_UpdateObjectGroupHandler>::narrow (
        _tao_objref,
        "IDL:AMI_TAO_UpdateObjectGroupHandler:1.0",
        PortableGroup__TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<AMI_TAO_UpdateObjectGroupHandler>::unchecked_narrow (
        _tao_objref,
        "IDL:AMI_TAO_UpdateObjectGroupHandler:1.0",
        PortableGroup__TAO_AMI_TAO_UpdateObjectGroupHandler_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_duplicate (AMI_TAO_UpdateObjectGroupHandler_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_is_a (
    const char *value
    ACE_ENV_ARG_DECL
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:ReplyHandler:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:AMI_TAO_UpdateObjectGroupHandler: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* PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_interface_repository_id (void) const
{
  return "IDL:AMI_TAO_UpdateObjectGroupHandler:1.0";
}

CORBA::Boolean
PortableGroup::AMI_TAO_UpdateObjectGroupHandler::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_PortableGroup_AMI_TAO_UpdateObjectGroupHandler[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x54414f5f), 
  ACE_NTOHL (0x55706461), 
  ACE_NTOHL (0x74654f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x7048616e), 
  ACE_NTOHL (0x646c6572), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:AMI_TAO_UpdateObjectGroupHandler:1.0
    33,
  ACE_NTOHL (0x414d495f), 
  ACE_NTOHL (0x54414f5f), 
  ACE_NTOHL (0x55706461), 
  ACE_NTOHL (0x74654f62), 
  ACE_NTOHL (0x6a656374), 
  ACE_NTOHL (0x47726f75), 
  ACE_NTOHL (0x7048616e), 
  ACE_NTOHL (0x646c6572), 
  ACE_NTOHL (0x0),  // name = AMI_TAO_UpdateObjectGroupHandler
  };

static CORBA::TypeCode _tc_TAO_tc_PortableGroup_AMI_TAO_UpdateObjectGroupHandler (
    CORBA::tk_objref,
    sizeof (_oc_PortableGroup_AMI_TAO_UpdateObjectGroupHandler),
    (char *) &_oc_PortableGroup_AMI_TAO_UpdateObjectGroupHandler,
    0,
    sizeof (PortableGroup::AMI_TAO_UpdateObjectGroupHandler)
  );

namespace PortableGroup
{
  ::CORBA::TypeCode_ptr _tc_AMI_TAO_UpdateObjectGroupHandler =
    &_tc_TAO_tc_PortableGroup_AMI_TAO_UpdateObjectGroupHandler;
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_obv_cs.cpp:58

OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::AMI_PropertyManagerExceptionHolder (void)
{}

OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::~AMI_PropertyManagerExceptionHolder (void)
{}

CORBA::Boolean
OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_marshal__PortableGroup_AMI_PropertyManagerExceptionHolder (TAO_OutputCDR &strm)
{
  return _tao_marshal_state (strm);
}

CORBA::Boolean
OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_unmarshal__PortableGroup_AMI_PropertyManagerExceptionHolder (TAO_InputCDR &strm)
{
  return _tao_unmarshal_state (strm);
}OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::_tao_AMI_PropertyManagerExceptionHolder () { }

OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::~_tao_AMI_PropertyManagerExceptionHolder () { }

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_set_default_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
      PortableGroup::UnsupportedProperty::_alloc,
      PortableGroup::_tc_UnsupportedProperty
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_get_default_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_remove_default_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
      PortableGroup::UnsupportedProperty::_alloc,
      PortableGroup::_tc_UnsupportedProperty
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_set_type_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
      PortableGroup::UnsupportedProperty::_alloc,
      PortableGroup::_tc_UnsupportedProperty
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_get_type_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_remove_type_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
      PortableGroup::UnsupportedProperty::_alloc,
      PortableGroup::_tc_UnsupportedProperty
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_set_properties_dynamically(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    },
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/UnsupportedProperty:1.0",
      PortableGroup::UnsupportedProperty::_alloc,
      PortableGroup::_tc_UnsupportedProperty
    }
  };

  CORBA::ULong exceptions_count = 3;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_PropertyManagerExceptionHolder::raise_get_properties(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}



// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_obv_cs.cpp:58

OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::AMI_ObjectGroupManagerExceptionHolder (void)
{}

OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::~AMI_ObjectGroupManagerExceptionHolder (void)
{}

CORBA::Boolean
OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_marshal__PortableGroup_AMI_ObjectGroupManagerExceptionHolder (TAO_OutputCDR &strm)
{
  return _tao_marshal_state (strm);
}

CORBA::Boolean
OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_unmarshal__PortableGroup_AMI_ObjectGroupManagerExceptionHolder (TAO_InputCDR &strm)
{
  return _tao_unmarshal_state (strm);
}OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::_tao_AMI_ObjectGroupManagerExceptionHolder () { }

OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::~_tao_AMI_ObjectGroupManagerExceptionHolder () { }

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_create_member(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    },
    {
      "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
      PortableGroup::MemberAlreadyPresent::_alloc,
      PortableGroup::_tc_MemberAlreadyPresent
    },
    {
      "IDL:omg.org/PortableGroup/NoFactory:1.0",
      PortableGroup::NoFactory::_alloc,
      PortableGroup::_tc_NoFactory
    },
    {
      "IDL:omg.org/PortableGroup/ObjectNotCreated:1.0",
      PortableGroup::ObjectNotCreated::_alloc,
      PortableGroup::_tc_ObjectNotCreated
    },
    {
      "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
      PortableGroup::InvalidCriteria::_alloc,
      PortableGroup::_tc_InvalidCriteria
    },
    {
      "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
      PortableGroup::CannotMeetCriteria::_alloc,
      PortableGroup::_tc_CannotMeetCriteria
    }
  };

  CORBA::ULong exceptions_count = 6;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_add_member(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    },
    {
      "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
      PortableGroup::MemberAlreadyPresent::_alloc,
      PortableGroup::_tc_MemberAlreadyPresent
    },
    {
      "IDL:omg.org/PortableGroup/ObjectNotAdded:1.0",
      PortableGroup::ObjectNotAdded::_alloc,
      PortableGroup::_tc_ObjectNotAdded
    }
  };

  CORBA::ULong exceptions_count = 3;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_remove_member(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    },
    {
      "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
      PortableGroup::MemberNotFound::_alloc,
      PortableGroup::_tc_MemberNotFound
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_locations_of_members(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_groups_at_location(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_get_object_group_id(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_get_object_group_ref(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_get_member_ref(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    },
    {
      "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
      PortableGroup::MemberNotFound::_alloc,
      PortableGroup::_tc_MemberNotFound
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_ObjectGroupManagerExceptionHolder::raise_get_object_group_ref_from_id(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectGroupNotFound:1.0",
      PortableGroup::ObjectGroupNotFound::_alloc,
      PortableGroup::_tc_ObjectGroupNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}



// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_obv_cs.cpp:58

OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::AMI_GenericFactoryExceptionHolder (void)
{}

OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::~AMI_GenericFactoryExceptionHolder (void)
{}

CORBA::Boolean
OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_marshal__PortableGroup_AMI_GenericFactoryExceptionHolder (TAO_OutputCDR &strm)
{
  return _tao_marshal_state (strm);
}

CORBA::Boolean
OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_unmarshal__PortableGroup_AMI_GenericFactoryExceptionHolder (TAO_InputCDR &strm)
{
  return _tao_unmarshal_state (strm);
}OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder::_tao_AMI_GenericFactoryExceptionHolder () { }

OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder::~_tao_AMI_GenericFactoryExceptionHolder () { }

void 
OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder::raise_create_object(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/NoFactory:1.0",
      PortableGroup::NoFactory::_alloc,
      PortableGroup::_tc_NoFactory
    },
    {
      "IDL:omg.org/PortableGroup/ObjectNotCreated:1.0",
      PortableGroup::ObjectNotCreated::_alloc,
      PortableGroup::_tc_ObjectNotCreated
    },
    {
      "IDL:omg.org/PortableGroup/InvalidCriteria:1.0",
      PortableGroup::InvalidCriteria::_alloc,
      PortableGroup::_tc_InvalidCriteria
    },
    {
      "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
      PortableGroup::InvalidProperty::_alloc,
      PortableGroup::_tc_InvalidProperty
    },
    {
      "IDL:omg.org/PortableGroup/CannotMeetCriteria:1.0",
      PortableGroup::CannotMeetCriteria::_alloc,
      PortableGroup::_tc_CannotMeetCriteria
    }
  };

  CORBA::ULong exceptions_count = 5;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_GenericFactoryExceptionHolder::raise_delete_object(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/ObjectNotFound:1.0",
      PortableGroup::ObjectNotFound::_alloc,
      PortableGroup::_tc_ObjectNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}



// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_obv_cs.cpp:58

OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::AMI_FactoryRegistryExceptionHolder (void)
{}

OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::~AMI_FactoryRegistryExceptionHolder (void)
{}

CORBA::Boolean
OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_marshal__PortableGroup_AMI_FactoryRegistryExceptionHolder (TAO_OutputCDR &strm)
{
  return _tao_marshal_state (strm);
}

CORBA::Boolean
OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_unmarshal__PortableGroup_AMI_FactoryRegistryExceptionHolder (TAO_InputCDR &strm)
{
  return _tao_unmarshal_state (strm);
}OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::_tao_AMI_FactoryRegistryExceptionHolder () { }

OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::~_tao_AMI_FactoryRegistryExceptionHolder () { }

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_register_factory(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/MemberAlreadyPresent:1.0",
      PortableGroup::MemberAlreadyPresent::_alloc,
      PortableGroup::_tc_MemberAlreadyPresent
    },
    {
      "IDL:omg.org/PortableGroup/TypeConflict:1.0",
      PortableGroup::TypeConflict::_alloc,
      PortableGroup::_tc_TypeConflict
    }
  };

  CORBA::ULong exceptions_count = 2;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_unregister_factory(ACE_ENV_SINGLE_ARG_DECL)
{
  
  static TAO::Exception_Data exceptions_data [] = 
  {
    {
      "IDL:omg.org/PortableGroup/MemberNotFound:1.0",
      PortableGroup::MemberNotFound::_alloc,
      PortableGroup::_tc_MemberNotFound
    }
  };

  CORBA::ULong exceptions_count = 1;

  TAO_Messaging_Helper::exception_holder_raise (
    exceptions_data,
    exceptions_count,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_unregister_factory_by_role(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_unregister_factory_by_location(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_list_factories_by_role(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}

void 
OBV_PortableGroup::_tao_AMI_FactoryRegistryExceptionHolder::raise_list_factories_by_location(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}



// TAO_IDL - Generated from
// be/be_visitor_valuetype/valuetype_obv_cs.cpp:58

OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::AMI_TAO_UpdateObjectGroupExceptionHolder (void)
{}

OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::~AMI_TAO_UpdateObjectGroupExceptionHolder (void)
{}

CORBA::Boolean
OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_marshal__PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder (TAO_OutputCDR &strm)
{
  return _tao_marshal_state (strm);
}

CORBA::Boolean
OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_unmarshal__PortableGroup_AMI_TAO_UpdateObjectGroupExceptionHolder (TAO_InputCDR &strm)
{
  return _tao_unmarshal_state (strm);
}OBV_PortableGroup::_tao_AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_AMI_TAO_UpdateObjectGroupExceptionHolder () { }

OBV_PortableGroup::_tao_AMI_TAO_UpdateObjectGroupExceptionHolder::~_tao_AMI_TAO_UpdateObjectGroupExceptionHolder () { }

void 
OBV_PortableGroup::_tao_AMI_TAO_UpdateObjectGroupExceptionHolder::raise_tao_update_object_group(ACE_ENV_SINGLE_ARG_DECL)
{
  
  TAO_Messaging_Helper::exception_holder_raise (
    0,
    0,
    this->marshaled_exception ().get_buffer (),
    this->marshaled_exception ().length (),
    this->byte_order (),
    this->is_system_exception ()
    ACE_ENV_ARG_PARAMETER);
}



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::FactoryInfos *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::FactoryInfos>::extract (
        _tao_any,
        PortableGroup::FactoryInfos::_tao_any_destructor,
        PortableGroup::_tc_FactoryInfos,
        _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<PortableGroup::InterfaceNotFound>::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 PortableGroup::InterfaceNotFound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::InterfaceNotFound>::insert_copy (
      _tao_any,
      PortableGroup::InterfaceNotFound::_tao_any_destructor,
      PortableGroup::_tc_InterfaceNotFound,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::InterfaceNotFound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::InterfaceNotFound>::extract (
        _tao_any,
        PortableGroup::InterfaceNotFound::_tao_any_destructor,
        PortableGroup::_tc_InterfaceNotFound,
        _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<PortableGroup::ObjectGroupNotFound>::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 PortableGroup::ObjectGroupNotFound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::ObjectGroupNotFound>::insert_copy (
      _tao_any,
      PortableGroup::ObjectGroupNotFound::_tao_any_destructor,
      PortableGroup::_tc_ObjectGroupNotFound,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::ObjectGroupNotFound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::ObjectGroupNotFound>::extract (
        _tao_any,
        PortableGroup::ObjectGroupNotFound::_tao_any_destructor,
        PortableGroup::_tc_ObjectGroupNotFound,
        _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<PortableGroup::MemberNotFound>::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 PortableGroup::MemberNotFound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::MemberNotFound>::insert_copy (
      _tao_any,
      PortableGroup::MemberNotFound::_tao_any_destructor,
      PortableGroup::_tc_MemberNotFound,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::MemberNotFound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::MemberNotFound>::extract (
        _tao_any,
        PortableGroup::MemberNotFound::_tao_any_destructor,
        PortableGroup::_tc_MemberNotFound,
        _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<PortableGroup::ObjectNotFound>::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 PortableGroup::ObjectNotFound &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotFound>::insert_copy (
      _tao_any,
      PortableGroup::ObjectNotFound::_tao_any_destructor,
      PortableGroup::_tc_ObjectNotFound,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::ObjectNotFound *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotFound>::extract (
        _tao_any,
        PortableGroup::ObjectNotFound::_tao_any_destructor,
        PortableGroup::_tc_ObjectNotFound,
        _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<PortableGroup::MemberAlreadyPresent>::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 PortableGroup::MemberAlreadyPresent &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::MemberAlreadyPresent>::insert_copy (
      _tao_any,
      PortableGroup::MemberAlreadyPresent::_tao_any_destructor,
      PortableGroup::_tc_MemberAlreadyPresent,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::MemberAlreadyPresent *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::MemberAlreadyPresent>::extract (
        _tao_any,
        PortableGroup::MemberAlreadyPresent::_tao_any_destructor,
        PortableGroup::_tc_MemberAlreadyPresent,
        _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<PortableGroup::ObjectNotCreated>::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 PortableGroup::ObjectNotCreated &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotCreated>::insert_copy (
      _tao_any,
      PortableGroup::ObjectNotCreated::_tao_any_destructor,
      PortableGroup::_tc_ObjectNotCreated,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::ObjectNotCreated *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotCreated>::extract (
        _tao_any,
        PortableGroup::ObjectNotCreated::_tao_any_destructor,
        PortableGroup::_tc_ObjectNotCreated,
        _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<PortableGroup::ObjectNotAdded>::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 PortableGroup::ObjectNotAdded &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotAdded>::insert_copy (
      _tao_any,
      PortableGroup::ObjectNotAdded::_tao_any_destructor,
      PortableGroup::_tc_ObjectNotAdded,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::ObjectNotAdded *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::ObjectNotAdded>::extract (
        _tao_any,
        PortableGroup::ObjectNotAdded::_tao_any_destructor,
        PortableGroup::_tc_ObjectNotAdded,
        _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<PortableGroup::TypeConflict>::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 PortableGroup::TypeConflict &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::TypeConflict>::insert_copy (
      _tao_any,
      PortableGroup::TypeConflict::_tao_any_destructor,
      PortableGroup::_tc_TypeConflict,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::TypeConflict *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::TypeConflict>::extract (
        _tao_any,
        PortableGroup::TypeConflict::_tao_any_destructor,
        PortableGroup::_tc_TypeConflict,
        _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<PortableGroup::UnsupportedProperty>::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 PortableGroup::UnsupportedProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::UnsupportedProperty>::insert_copy (
      _tao_any,
      PortableGroup::UnsupportedProperty::_tao_any_destructor,
      PortableGroup::_tc_UnsupportedProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::UnsupportedProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::UnsupportedProperty>::extract (
        _tao_any,
        PortableGroup::UnsupportedProperty::_tao_any_destructor,
        PortableGroup::_tc_UnsupportedProperty,
        _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<PortableGroup::InvalidProperty>::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 PortableGroup::InvalidProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::InvalidProperty>::insert_copy (
      _tao_any,
      PortableGroup::InvalidProperty::_tao_any_destructor,
      PortableGroup::_tc_InvalidProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::InvalidProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::InvalidProperty>::extract (
        _tao_any,
        PortableGroup::InvalidProperty::_tao_any_destructor,
        PortableGroup::_tc_InvalidProperty,
        _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<PortableGroup::NoFactory>::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 PortableGroup::NoFactory &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::NoFactory>::insert_copy (
      _tao_any,
      PortableGroup::NoFactory::_tao_any_destructor,
      PortableGroup::_tc_NoFactory,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::NoFactory *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::NoFactory>::extract (
        _tao_any,
        PortableGroup::NoFactory::_tao_any_destructor,
        PortableGroup::_tc_NoFactory,
        _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<PortableGroup::InvalidCriteria>::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 PortableGroup::InvalidCriteria &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::InvalidCriteria>::insert_copy (
      _tao_any,
      PortableGroup::InvalidCriteria::_tao_any_destructor,
      PortableGroup::_tc_InvalidCriteria,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const PortableGroup::InvalidCriteria *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<PortableGroup::InvalidCriteria>::extract (
        _tao_any,
        PortableGroup::InvalidCriteria::_tao_any_destructor,
        PortableGroup::_tc_InvalidCriteria,
        _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<PortableGroup::CannotMeetCriteria>::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 PortableGroup::CannotMeetCriteria &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<PortableGroup::CannotMeetCriteria>::insert_copy (
      _tao_any,
      PortableGroup::CannotMeetCriteria::_tao_any_destructor,
      PortableGroup::_tc_CannotMeetCriteria,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::PropertyManager>::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,
    PortableGroup::PropertyManager_ptr _tao_elem
  )
{
  PortableGroup::PropertyManager_ptr _tao_objptr =
    PortableGroup::PropertyManager::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::PropertyManager_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::PropertyManager>::insert (
      _tao_any,
      PortableGroup::PropertyManager::_tao_any_destructor,
      PortableGroup::_tc_PropertyManager,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::PropertyManager_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::PropertyManager>::extract (
        _tao_any,
        PortableGroup::PropertyManager::_tao_any_destructor,
        PortableGroup::_tc_PropertyManager,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/any_op_cs.cpp:57

template<>
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_PropertyManagerExceptionHolder>::to_value (
    CORBA::ValueBase *&_tao_elem
  ) const
{
  CORBA::add_ref (this->value_);
  _tao_elem = this->value_;
  return 1;
}
// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_PropertyManagerExceptionHolder *_tao_elem
  )
{
  CORBA::add_ref (_tao_elem);
  _tao_any <<= &_tao_elem;
}

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

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_PropertyManagerExceptionHolder *&_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_PropertyManagerExceptionHolder>::extract (
        _tao_any,
        PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_any_destructor,
        PortableGroup::_tc_AMI_PropertyManagerExceptionHolder,
        _tao_elem
      );
}



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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_PropertyManagerHandler>::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,
    PortableGroup::AMI_PropertyManagerHandler_ptr _tao_elem
  )
{
  PortableGroup::AMI_PropertyManagerHandler_ptr _tao_objptr =
    PortableGroup::AMI_PropertyManagerHandler::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_PropertyManagerHandler_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::AMI_PropertyManagerHandler>::insert (
      _tao_any,
      PortableGroup::AMI_PropertyManagerHandler::_tao_any_destructor,
      PortableGroup::_tc_AMI_PropertyManagerHandler,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_PropertyManagerHandler_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_PropertyManagerHandler>::extract (
        _tao_any,
        PortableGroup::AMI_PropertyManagerHandler::_tao_any_destructor,
        PortableGroup::_tc_AMI_PropertyManagerHandler,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::ObjectGroupManager>::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,
    PortableGroup::ObjectGroupManager_ptr _tao_elem
  )
{
  PortableGroup::ObjectGroupManager_ptr _tao_objptr =
    PortableGroup::ObjectGroupManager::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::ObjectGroupManager_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::ObjectGroupManager>::insert (
      _tao_any,
      PortableGroup::ObjectGroupManager::_tao_any_destructor,
      PortableGroup::_tc_ObjectGroupManager,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::ObjectGroupManager_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::ObjectGroupManager>::extract (
        _tao_any,
        PortableGroup::ObjectGroupManager::_tao_any_destructor,
        PortableGroup::_tc_ObjectGroupManager,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/any_op_cs.cpp:57

template<>
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::to_value (
    CORBA::ValueBase *&_tao_elem
  ) const
{
  CORBA::add_ref (this->value_);
  _tao_elem = this->value_;
  return 1;
}
// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder *_tao_elem
  )
{
  CORBA::add_ref (_tao_elem);
  _tao_any <<= &_tao_elem;
}

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

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder *&_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_ObjectGroupManagerExceptionHolder>::extract (
        _tao_any,
        PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_any_destructor,
        PortableGroup::_tc_AMI_ObjectGroupManagerExceptionHolder,
        _tao_elem
      );
}



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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_ObjectGroupManagerHandler>::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,
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr _tao_elem
  )
{
  PortableGroup::AMI_ObjectGroupManagerHandler_ptr _tao_objptr =
    PortableGroup::AMI_ObjectGroupManagerHandler::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::AMI_ObjectGroupManagerHandler>::insert (
      _tao_any,
      PortableGroup::AMI_ObjectGroupManagerHandler::_tao_any_destructor,
      PortableGroup::_tc_AMI_ObjectGroupManagerHandler,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_ObjectGroupManagerHandler>::extract (
        _tao_any,
        PortableGroup::AMI_ObjectGroupManagerHandler::_tao_any_destructor,
        PortableGroup::_tc_AMI_ObjectGroupManagerHandler,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::GenericFactory>::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,
    PortableGroup::GenericFactory_ptr _tao_elem
  )
{
  PortableGroup::GenericFactory_ptr _tao_objptr =
    PortableGroup::GenericFactory::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::GenericFactory_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::GenericFactory>::insert (
      _tao_any,
      PortableGroup::GenericFactory::_tao_any_destructor,
      PortableGroup::_tc_GenericFactory,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::GenericFactory_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::GenericFactory>::extract (
        _tao_any,
        PortableGroup::GenericFactory::_tao_any_destructor,
        PortableGroup::_tc_GenericFactory,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/any_op_cs.cpp:57

template<>
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_GenericFactoryExceptionHolder>::to_value (
    CORBA::ValueBase *&_tao_elem
  ) const
{
  CORBA::add_ref (this->value_);
  _tao_elem = this->value_;
  return 1;
}
// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_GenericFactoryExceptionHolder *_tao_elem
  )
{
  CORBA::add_ref (_tao_elem);
  _tao_any <<= &_tao_elem;
}

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

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_GenericFactoryExceptionHolder *&_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_GenericFactoryExceptionHolder>::extract (
        _tao_any,
        PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_any_destructor,
        PortableGroup::_tc_AMI_GenericFactoryExceptionHolder,
        _tao_elem
      );
}



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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_GenericFactoryHandler>::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,
    PortableGroup::AMI_GenericFactoryHandler_ptr _tao_elem
  )
{
  PortableGroup::AMI_GenericFactoryHandler_ptr _tao_objptr =
    PortableGroup::AMI_GenericFactoryHandler::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_GenericFactoryHandler_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::AMI_GenericFactoryHandler>::insert (
      _tao_any,
      PortableGroup::AMI_GenericFactoryHandler::_tao_any_destructor,
      PortableGroup::_tc_AMI_GenericFactoryHandler,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_GenericFactoryHandler_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_GenericFactoryHandler>::extract (
        _tao_any,
        PortableGroup::AMI_GenericFactoryHandler::_tao_any_destructor,
        PortableGroup::_tc_AMI_GenericFactoryHandler,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::FactoryRegistry>::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,
    PortableGroup::FactoryRegistry_ptr _tao_elem
  )
{
  PortableGroup::FactoryRegistry_ptr _tao_objptr =
    PortableGroup::FactoryRegistry::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::FactoryRegistry_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::FactoryRegistry>::insert (
      _tao_any,
      PortableGroup::FactoryRegistry::_tao_any_destructor,
      PortableGroup::_tc_FactoryRegistry,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::FactoryRegistry_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::FactoryRegistry>::extract (
        _tao_any,
        PortableGroup::FactoryRegistry::_tao_any_destructor,
        PortableGroup::_tc_FactoryRegistry,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/any_op_cs.cpp:57

template<>
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_FactoryRegistryExceptionHolder>::to_value (
    CORBA::ValueBase *&_tao_elem
  ) const
{
  CORBA::add_ref (this->value_);
  _tao_elem = this->value_;
  return 1;
}
// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_FactoryRegistryExceptionHolder *_tao_elem
  )
{
  CORBA::add_ref (_tao_elem);
  _tao_any <<= &_tao_elem;
}

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

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_FactoryRegistryExceptionHolder *&_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_FactoryRegistryExceptionHolder>::extract (
        _tao_any,
        PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_any_destructor,
        PortableGroup::_tc_AMI_FactoryRegistryExceptionHolder,
        _tao_elem
      );
}



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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_FactoryRegistryHandler>::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,
    PortableGroup::AMI_FactoryRegistryHandler_ptr _tao_elem
  )
{
  PortableGroup::AMI_FactoryRegistryHandler_ptr _tao_objptr =
    PortableGroup::AMI_FactoryRegistryHandler::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_FactoryRegistryHandler_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::AMI_FactoryRegistryHandler>::insert (
      _tao_any,
      PortableGroup::AMI_FactoryRegistryHandler::_tao_any_destructor,
      PortableGroup::_tc_AMI_FactoryRegistryHandler,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_FactoryRegistryHandler_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_FactoryRegistryHandler>::extract (
        _tao_any,
        PortableGroup::AMI_FactoryRegistryHandler::_tao_any_destructor,
        PortableGroup::_tc_AMI_FactoryRegistryHandler,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::TAO_UpdateObjectGroup>::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,
    PortableGroup::TAO_UpdateObjectGroup_ptr _tao_elem
  )
{
  PortableGroup::TAO_UpdateObjectGroup_ptr _tao_objptr =
    PortableGroup::TAO_UpdateObjectGroup::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::TAO_UpdateObjectGroup_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::TAO_UpdateObjectGroup>::insert (
      _tao_any,
      PortableGroup::TAO_UpdateObjectGroup::_tao_any_destructor,
      PortableGroup::_tc_TAO_UpdateObjectGroup,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::TAO_UpdateObjectGroup_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::TAO_UpdateObjectGroup>::extract (
        _tao_any,
        PortableGroup::TAO_UpdateObjectGroup::_tao_any_destructor,
        PortableGroup::_tc_TAO_UpdateObjectGroup,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/any_op_cs.cpp:57

template<>
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::to_value (
    CORBA::ValueBase *&_tao_elem
  ) const
{
  CORBA::add_ref (this->value_);
  _tao_elem = this->value_;
  return 1;
}
// Copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *_tao_elem
  )
{
  CORBA::add_ref (_tao_elem);
  _tao_any <<= &_tao_elem;
}

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

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *&_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder>::extract (
        _tao_any,
        PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_any_destructor,
        PortableGroup::_tc_AMI_TAO_UpdateObjectGroupExceptionHolder,
        _tao_elem
      );
}



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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::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,
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr _tao_elem
  )
{
  PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr _tao_objptr =
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::insert (
      _tao_any,
      PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_tao_any_destructor,
      PortableGroup::_tc_AMI_TAO_UpdateObjectGroupHandler,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    PortableGroup::AMI_TAO_UpdateObjectGroupHandler_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<PortableGroup::AMI_TAO_UpdateObjectGroupHandler>::extract (
        _tao_any,
        PortableGroup::AMI_TAO_UpdateObjectGroupHandler::_tao_any_destructor,
        PortableGroup::_tc_AMI_TAO_UpdateObjectGroupHandler,
        _tao_elem
      );
}

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

#if !defined _TAO_CDR_OP_PortableGroup_GroupIIOPProfile_CPP_
#define _TAO_CDR_OP_PortableGroup_GroupIIOPProfile_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::GroupIIOPProfile &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
      {
        TAO_Unbounded_Sequence<CORBA::Octet> *oseq = 
          static_cast<TAO_Unbounded_Sequence<CORBA::Octet> *> ((PortableGroup::GroupIIOPProfile *)&_tao_sequence);
        if (oseq->mb ())
          return strm.write_octet_array_mb (oseq->mb ());
        else
          return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
      }
      
#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
      return strm.write_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::GroupIIOPProfile &_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.
      
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
      if (ACE_BIT_DISABLED (strm.start ()->flags (),
      ACE_Message_Block::DONT_DELETE))
      {
        TAO_ORB_Core* orb_core = strm.orb_core ();
        if (orb_core != 0 &&
        strm.orb_core ()->resource_factory ()->
        input_cdr_allocator_type_locked () == 1)
        {
          TAO_Unbounded_Sequence<CORBA::Octet> *oseq = 
            static_cast<TAO_Unbounded_Sequence<CORBA::Octet> *> (&_tao_sequence);
          oseq->replace (_tao_seq_len, strm.start ());
          oseq->mb ()->wr_ptr (oseq->mb()->rd_ptr () + _tao_seq_len);
          strm.skip_bytes (_tao_seq_len);
          return 1;
        }
      }
      return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_seq_len);
#else /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
      return strm.read_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_PortableGroup_GroupIIOPProfile_CPP_ */

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

#if !defined _TAO_CDR_OP_PortableGroup_ObjectGroups_CPP_
#define _TAO_CDR_OP_PortableGroup_ObjectGroups_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::ObjectGroups &_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].in ());
        }
      
      return _tao_marshal_flag;
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::ObjectGroups &_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].out ());
        }
      
      return _tao_marshal_flag;
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_PortableGroup_ObjectGroups_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::Property &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.nam) &&
    (strm << _tao_aggregate.val);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::Property &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.nam) &&
    (strm >> _tao_aggregate.val);
}

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

#if !defined _TAO_CDR_OP_PortableGroup_Properties_CPP_
#define _TAO_CDR_OP_PortableGroup_Properties_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::Properties &_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,
    PortableGroup::Properties &_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_PortableGroup_Properties_CPP_ */

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

#if !defined _TAO_CDR_OP_PortableGroup_Locations_CPP_
#define _TAO_CDR_OP_PortableGroup_Locations_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::Locations &_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,
    PortableGroup::Locations &_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_PortableGroup_Locations_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::FactoryInfo &_tao_aggregate
  )
{
  return
    CORBA::Object::marshal (
        _tao_aggregate.the_factory.in (),
        strm
      ) &&
    (strm << _tao_aggregate.the_location) &&
    (strm << _tao_aggregate.the_criteria);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::FactoryInfo &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.the_factory.out ()) &&
    (strm >> _tao_aggregate.the_location) &&
    (strm >> _tao_aggregate.the_criteria);
}

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

#if !defined _TAO_CDR_OP_PortableGroup_FactoryInfos_CPP_
#define _TAO_CDR_OP_PortableGroup_FactoryInfos_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::FactoryInfos &_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,
    PortableGroup::FactoryInfos &_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_PortableGroup_FactoryInfos_CPP_ */

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::InterfaceNotFound&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::ObjectGroupNotFound&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::MemberNotFound&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::ObjectNotFound&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::MemberAlreadyPresent&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::ObjectNotCreated&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::ObjectNotAdded&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    PortableGroup::TypeConflict&
  )
{
  return 1;
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::UnsupportedProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.nam) &&
        (strm << _tao_aggregate.val)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::UnsupportedProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.nam) &&
    (strm >> _tao_aggregate.val)
  )
    {
      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 PortableGroup::InvalidProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.nam) &&
        (strm << _tao_aggregate.val)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::InvalidProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.nam) &&
    (strm >> _tao_aggregate.val)
  )
    {
      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 PortableGroup::NoFactory &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.the_location) &&
        (strm << _tao_aggregate.type_id.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::NoFactory &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.the_location) &&
    (strm >> _tao_aggregate.type_id.out ())
  )
    {
      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 PortableGroup::InvalidCriteria &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.invalid_criteria)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::InvalidCriteria &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.invalid_criteria)
  )
    {
      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 PortableGroup::CannotMeetCriteria &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.unmet_criteria)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::CannotMeetCriteria &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.unmet_criteria)
  )
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

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

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

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

// TAO_IDL - Generated from
// be/be_valuetype.cpp:490

void
CORBA::add_ref (PortableGroup::AMI_PropertyManagerExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_add_ref ();
    }
}

void
CORBA::remove_ref (PortableGroup::AMI_PropertyManagerExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_remove_ref ();
    }
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/cdr_op_cs.cpp:73

CORBA::Boolean
operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::AMI_PropertyManagerExceptionHolder *_tao_valuetype
  )
{
  return
    CORBA::ValueBase::_tao_marshal (
        strm,
        const_cast<
            PortableGroup::AMI_PropertyManagerExceptionHolder *> (
            _tao_valuetype
          ),
        (ptrdiff_t) &PortableGroup::AMI_PropertyManagerExceptionHolder::_downcast
      );
}

CORBA::Boolean
operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_PropertyManagerExceptionHolder *&_tao_valuetype
  )
{
  return PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_unmarshal (strm, _tao_valuetype);
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/marshal_cs.cpp:44

CORBA::Boolean
OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm)
{
  if (! this->_tao_marshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
      1
    );
}

CORBA::Boolean
OBV_PortableGroup::AMI_PropertyManagerExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
{
  if (! this->_tao_unmarshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
    1
  );
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_PropertyManagerHandler_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::PortableGroup::AMI_PropertyManagerHandler RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        PortableGroup__TAO_AMI_PropertyManagerHandler_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 PortableGroup::ObjectGroupManager_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

// TAO_IDL - Generated from
// be/be_valuetype.cpp:490

void
CORBA::add_ref (PortableGroup::AMI_ObjectGroupManagerExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_add_ref ();
    }
}

void
CORBA::remove_ref (PortableGroup::AMI_ObjectGroupManagerExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_remove_ref ();
    }
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/cdr_op_cs.cpp:73

CORBA::Boolean
operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::AMI_ObjectGroupManagerExceptionHolder *_tao_valuetype
  )
{
  return
    CORBA::ValueBase::_tao_marshal (
        strm,
        const_cast<
            PortableGroup::AMI_ObjectGroupManagerExceptionHolder *> (
            _tao_valuetype
          ),
        (ptrdiff_t) &PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_downcast
      );
}

CORBA::Boolean
operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_ObjectGroupManagerExceptionHolder *&_tao_valuetype
  )
{
  return PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_unmarshal (strm, _tao_valuetype);
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/marshal_cs.cpp:44

CORBA::Boolean
OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm)
{
  if (! this->_tao_marshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
      1
    );
}

CORBA::Boolean
OBV_PortableGroup::AMI_ObjectGroupManagerExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
{
  if (! this->_tao_unmarshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
    1
  );
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_ObjectGroupManagerHandler_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::PortableGroup::AMI_ObjectGroupManagerHandler RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        PortableGroup__TAO_AMI_ObjectGroupManagerHandler_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 PortableGroup::GenericFactory_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

// TAO_IDL - Generated from
// be/be_valuetype.cpp:490

void
CORBA::add_ref (PortableGroup::AMI_GenericFactoryExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_add_ref ();
    }
}

void
CORBA::remove_ref (PortableGroup::AMI_GenericFactoryExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_remove_ref ();
    }
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/cdr_op_cs.cpp:73

CORBA::Boolean
operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::AMI_GenericFactoryExceptionHolder *_tao_valuetype
  )
{
  return
    CORBA::ValueBase::_tao_marshal (
        strm,
        const_cast<
            PortableGroup::AMI_GenericFactoryExceptionHolder *> (
            _tao_valuetype
          ),
        (ptrdiff_t) &PortableGroup::AMI_GenericFactoryExceptionHolder::_downcast
      );
}

CORBA::Boolean
operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_GenericFactoryExceptionHolder *&_tao_valuetype
  )
{
  return PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_unmarshal (strm, _tao_valuetype);
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/marshal_cs.cpp:44

CORBA::Boolean
OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm)
{
  if (! this->_tao_marshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
      1
    );
}

CORBA::Boolean
OBV_PortableGroup::AMI_GenericFactoryExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
{
  if (! this->_tao_unmarshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
    1
  );
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_GenericFactoryHandler_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::PortableGroup::AMI_GenericFactoryHandler RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        PortableGroup__TAO_AMI_GenericFactoryHandler_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 PortableGroup::FactoryRegistry_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

// TAO_IDL - Generated from
// be/be_valuetype.cpp:490

void
CORBA::add_ref (PortableGroup::AMI_FactoryRegistryExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_add_ref ();
    }
}

void
CORBA::remove_ref (PortableGroup::AMI_FactoryRegistryExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_remove_ref ();
    }
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/cdr_op_cs.cpp:73

CORBA::Boolean
operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::AMI_FactoryRegistryExceptionHolder *_tao_valuetype
  )
{
  return
    CORBA::ValueBase::_tao_marshal (
        strm,
        const_cast<
            PortableGroup::AMI_FactoryRegistryExceptionHolder *> (
            _tao_valuetype
          ),
        (ptrdiff_t) &PortableGroup::AMI_FactoryRegistryExceptionHolder::_downcast
      );
}

CORBA::Boolean
operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_FactoryRegistryExceptionHolder *&_tao_valuetype
  )
{
  return PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_unmarshal (strm, _tao_valuetype);
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/marshal_cs.cpp:44

CORBA::Boolean
OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm)
{
  if (! this->_tao_marshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
      1
    );
}

CORBA::Boolean
OBV_PortableGroup::AMI_FactoryRegistryExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
{
  if (! this->_tao_unmarshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
    1
  );
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_FactoryRegistryHandler_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::PortableGroup::AMI_FactoryRegistryHandler RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        PortableGroup__TAO_AMI_FactoryRegistryHandler_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 PortableGroup::TAO_UpdateObjectGroup_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

// TAO_IDL - Generated from
// be/be_valuetype.cpp:490

void
CORBA::add_ref (PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_add_ref ();
    }
}

void
CORBA::remove_ref (PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder * vt)
{
  if (vt != 0)
    {
      vt->_remove_ref ();
    }
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/cdr_op_cs.cpp:73

CORBA::Boolean
operator<< (
    TAO_OutputCDR &strm,
    const PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *_tao_valuetype
  )
{
  return
    CORBA::ValueBase::_tao_marshal (
        strm,
        const_cast<
            PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *> (
            _tao_valuetype
          ),
        (ptrdiff_t) &PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_downcast
      );
}

CORBA::Boolean
operator>> (
    TAO_InputCDR &strm,
    PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder *&_tao_valuetype
  )
{
  return PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_unmarshal (strm, _tao_valuetype);
}

// TAO_IDL - Generated from
// be/be_visitor_valuetype/marshal_cs.cpp:44

CORBA::Boolean
OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm)
{
  if (! this->_tao_marshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
      1
    );
}

CORBA::Boolean
OBV_PortableGroup::AMI_TAO_UpdateObjectGroupExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
{
  if (! this->_tao_unmarshal__Messaging_ExceptionHolder (strm))
    {
      return 0;
    }
  
  return (
    1
  );
}

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

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

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

