// -*- 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 "CosTradingC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.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/Any_Basic_Impl_T.h"
#include "tao/Basic_Arguments.h"
#include "tao/Object_Argument_T.h"
#include "tao/Special_Basic_Arguments.h"
#include "tao/UB_String_Arguments.h"
#include "tao/Var_Size_Argument_T.h"
#include "ace/OS_NS_string.h"

#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
#endif /* __BORLANDC__ */

#if !defined (__ACE_INLINE__)
#include "CosTradingC.inl"
#endif /* !defined __ACE_INLINE__ */

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

// Arg traits specializations.
namespace TAO
{

#if !defined (_COSTRADING_LOOKUP__ARG_TRAITS_CS_)
#define _COSTRADING_LOOKUP__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Lookup>
    : public
        Object_Arg_Traits_T<
            CosTrading::Lookup_ptr,
            CosTrading::Lookup_var,
            CosTrading::Lookup_out,
            TAO::Objref_Traits<CosTrading::Lookup>
          >
  {
  };

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

#if !defined (_COSTRADING_LOOKUP_SPECIFIEDPROPS__ARG_TRAITS_CS_)
#define _COSTRADING_LOOKUP_SPECIFIEDPROPS__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Lookup::SpecifiedProps>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::Lookup::SpecifiedProps,
            CosTrading::Lookup::SpecifiedProps_var,
            CosTrading::Lookup::SpecifiedProps_out
          >
  {
  };

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

#if !defined (_COSTRADING_PROPERTYNAMESEQ__ARG_TRAITS_CS_)
#define _COSTRADING_PROPERTYNAMESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::PropertyNameSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::PropertyNameSeq,
            CosTrading::PropertyNameSeq_var,
            CosTrading::PropertyNameSeq_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_REGISTER__ARG_TRAITS_CS_)
#define _COSTRADING_REGISTER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Register>
    : public
        Object_Arg_Traits_T<
            CosTrading::Register_ptr,
            CosTrading::Register_var,
            CosTrading::Register_out,
            TAO::Objref_Traits<CosTrading::Register>
          >
  {
  };

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

#if !defined (_COSTRADING_REGISTER_OFFERINFO__ARG_TRAITS_CS_)
#define _COSTRADING_REGISTER_OFFERINFO__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Register::OfferInfo>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::Register::OfferInfo,
            CosTrading::Register::OfferInfo_var,
            CosTrading::Register::OfferInfo_out
          >
  {
  };

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

#if !defined (_COSTRADING_PROPERTYSEQ__ARG_TRAITS_CS_)
#define _COSTRADING_PROPERTYSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::PropertySeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::PropertySeq,
            CosTrading::PropertySeq_var,
            CosTrading::PropertySeq_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_LINK__ARG_TRAITS_CS_)
#define _COSTRADING_LINK__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Link>
    : public
        Object_Arg_Traits_T<
            CosTrading::Link_ptr,
            CosTrading::Link_var,
            CosTrading::Link_out,
            TAO::Objref_Traits<CosTrading::Link>
          >
  {
  };

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

#if !defined (_COSTRADING_LINK_LINKINFO__ARG_TRAITS_CS_)
#define _COSTRADING_LINK_LINKINFO__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Link::LinkInfo>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::Link::LinkInfo,
            CosTrading::Link::LinkInfo_var,
            CosTrading::Link::LinkInfo_out
          >
  {
  };

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

#if !defined (_COSTRADING_FOLLOWOPTION__ARG_TRAITS_CS_)
#define _COSTRADING_FOLLOWOPTION__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::FollowOption>
    : public
        Basic_Arg_Traits_T<
            CosTrading::FollowOption
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_PROXY__ARG_TRAITS_CS_)
#define _COSTRADING_PROXY__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Proxy>
    : public
        Object_Arg_Traits_T<
            CosTrading::Proxy_ptr,
            CosTrading::Proxy_var,
            CosTrading::Proxy_out,
            TAO::Objref_Traits<CosTrading::Proxy>
          >
  {
  };

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

#if !defined (_COSTRADING_PROXY_PROXYINFO__ARG_TRAITS_CS_)
#define _COSTRADING_PROXY_PROXYINFO__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Proxy::ProxyInfo>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::Proxy::ProxyInfo,
            CosTrading::Proxy::ProxyInfo_var,
            CosTrading::Proxy::ProxyInfo_out
          >
  {
  };

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

#if !defined (_COSTRADING_POLICYSEQ__ARG_TRAITS_CS_)
#define _COSTRADING_POLICYSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::PolicySeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::PolicySeq,
            CosTrading::PolicySeq_var,
            CosTrading::PolicySeq_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_ADMIN__ARG_TRAITS_CS_)
#define _COSTRADING_ADMIN__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Admin>
    : public
        Object_Arg_Traits_T<
            CosTrading::Admin_ptr,
            CosTrading::Admin_var,
            CosTrading::Admin_out,
            TAO::Objref_Traits<CosTrading::Admin>
          >
  {
  };

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

#if !defined (_COSTRADING_ADMIN_OCTETSEQ__ARG_TRAITS_CS_)
#define _COSTRADING_ADMIN_OCTETSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::Admin::OctetSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::Admin::OctetSeq,
            CosTrading::Admin::OctetSeq_var,
            CosTrading::Admin::OctetSeq_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_OFFERITERATOR__ARG_TRAITS_CS_)
#define _COSTRADING_OFFERITERATOR__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::OfferIterator>
    : public
        Object_Arg_Traits_T<
            CosTrading::OfferIterator_ptr,
            CosTrading::OfferIterator_var,
            CosTrading::OfferIterator_out,
            TAO::Objref_Traits<CosTrading::OfferIterator>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSTRADING_OFFERIDITERATOR__ARG_TRAITS_CS_)
#define _COSTRADING_OFFERIDITERATOR__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::OfferIdIterator>
    : public
        Object_Arg_Traits_T<
            CosTrading::OfferIdIterator_ptr,
            CosTrading::OfferIdIterator_var,
            CosTrading::OfferIdIterator_out,
            TAO::Objref_Traits<CosTrading::OfferIdIterator>
          >
  {
  };

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

#if !defined (_COSTRADING_OFFERSEQ__ARG_TRAITS_CS_)
#define _COSTRADING_OFFERSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::OfferSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::OfferSeq,
            CosTrading::OfferSeq_var,
            CosTrading::OfferSeq_out
          >
  {
  };

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

#if !defined (_COSTRADING_OFFERIDSEQ__ARG_TRAITS_CS_)
#define _COSTRADING_OFFERIDSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::OfferIdSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::OfferIdSeq,
            CosTrading::OfferIdSeq_var,
            CosTrading::OfferIdSeq_out
          >
  {
  };

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

#if !defined (_COSTRADING_LINKNAMESEQ__ARG_TRAITS_CS_)
#define _COSTRADING_LINKNAMESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::LinkNameSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::LinkNameSeq,
            CosTrading::LinkNameSeq_var,
            CosTrading::LinkNameSeq_out
          >
  {
  };

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

#if !defined (_COSTRADING_POLICYNAMESEQ__ARG_TRAITS_CS_)
#define _COSTRADING_POLICYNAMESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTrading::PolicyNameSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTrading::PolicyNameSeq,
            CosTrading::PolicyNameSeq_var,
            CosTrading::PolicyNameSeq_out
          >
  {
  };

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


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

static const CORBA::Long _oc_CosTrading_Istring[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  35,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x73747269), 
  ACE_NTOHL (0x6e673a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
    8,
  ACE_NTOHL (0x49737472), 
  ACE_NTOHL (0x696e6700),  // name = Istring
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Istring (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_Istring),
    (char *) &_oc_CosTrading_Istring,
    0,
    sizeof (CosTrading::Istring)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Istring =
    &_tc_TAO_tc_CosTrading_Istring;
}

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

static const CORBA::Long _oc_CosTrading_TypeRepository[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f54), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/TypeRepository:1.0
    15,
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x5265706f), 
  ACE_NTOHL (0x7369746f), 
  ACE_NTOHL (0x72790000),  // name = TypeRepository
    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_CosTrading_TypeRepository (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_TypeRepository),
    (char *) &_oc_CosTrading_TypeRepository,
    0,
    sizeof (CosTrading::TypeRepository)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_TypeRepository =
    &_tc_TAO_tc_CosTrading_TypeRepository;
}

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

static const CORBA::Long _oc_CosTrading_PropertyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274794e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
    13,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = PropertyName
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PropertyName (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PropertyName),
    (char *) &_oc_CosTrading_PropertyName,
    0,
    sizeof (CosTrading::PropertyName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PropertyName =
    &_tc_TAO_tc_CosTrading_PropertyName;
}

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

#if !defined (_COSTRADING_PROPERTYNAMESEQ_CS_)
#define _COSTRADING_PROPERTYNAMESEQ_CS_

CosTrading::PropertyNameSeq::PropertyNameSeq (void)
{}

CosTrading::PropertyNameSeq::PropertyNameSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

CosTrading::PropertyNameSeq::PropertyNameSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    char * * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_String_Sequence
    (max, length, buffer, release)
{}

CosTrading::PropertyNameSeq::PropertyNameSeq (
    const PropertyNameSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTrading::PropertyNameSeq::~PropertyNameSeq (void)
{}

void CosTrading::PropertyNameSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  PropertyNameSeq * _tao_tmp_pointer =
    static_cast<PropertyNameSeq *> (_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_CosTrading_PropertyNameSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274794e), 
  ACE_NTOHL (0x616d6553), 
  ACE_NTOHL (0x65713a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertyNameSeq:1.0
    16,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x53657100),  // name = PropertyNameSeq
    CORBA::tk_sequence, // typecode kind
  156, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    140, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      40,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x726f7065), 
      ACE_NTOHL (0x7274794e), 
      ACE_NTOHL (0x616d653a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
            13,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x0),  // name = PropertyName
            CORBA::tk_alias, // typecode kind for typedefs
      64, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        35,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f49), 
        ACE_NTOHL (0x73747269), 
        ACE_NTOHL (0x6e673a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_PropertyNameSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PropertyNameSeq),
    (char *) &_oc_CosTrading_PropertyNameSeq,
    0,
    sizeof (CosTrading::PropertyNameSeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PropertyNameSeq =
    &_tc_TAO_tc_CosTrading_PropertyNameSeq;
}

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

static const CORBA::Long _oc_CosTrading_PropertyValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747956), 
  ACE_NTOHL (0x616c7565), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
    14,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x65000000),  // name = PropertyValue
    CORBA::tk_any,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PropertyValue (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PropertyValue),
    (char *) &_oc_CosTrading_PropertyValue,
    0,
    sizeof (CosTrading::PropertyValue)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PropertyValue =
    &_tc_TAO_tc_CosTrading_PropertyValue;
}

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

static const CORBA::Long _oc_CosTrading_Property[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  36,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274793a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
    9,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x0),  // name = Property
  2, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  6,
  ACE_NTOHL (0x76616c75), 
  ACE_NTOHL (0x65000000),  // name = value
    CORBA::tk_alias, // typecode kind for typedefs
  76, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    41,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x72747956), 
    ACE_NTOHL (0x616c7565), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
        14,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x56616c75), 
    ACE_NTOHL (0x65000000),  // name = PropertyValue
        CORBA::tk_any,


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Property (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Property),
    (char *) &_oc_CosTrading_Property,
    0,
    sizeof (CosTrading::Property)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Property =
    &_tc_TAO_tc_CosTrading_Property;
}

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

void 
CosTrading::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 (_COSTRADING_PROPERTYSEQ_CS_)
#define _COSTRADING_PROPERTYSEQ_CS_

CosTrading::PropertySeq::PropertySeq (void)
{}

CosTrading::PropertySeq::PropertySeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Property
      >
    (max)
{}

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

CosTrading::PropertySeq::PropertySeq (
    const PropertySeq &seq
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Property
      >
    (seq)
{}

CosTrading::PropertySeq::~PropertySeq (void)
{}

void CosTrading::PropertySeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  PropertySeq * _tao_tmp_pointer =
    static_cast<PropertySeq *> (_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_CosTrading_PropertySeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747953), 
  ACE_NTOHL (0x65713a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertySeq:1.0
    12,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x53657100),  // name = PropertySeq
    CORBA::tk_sequence, // typecode kind
  336, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    320, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      36,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x726f7065), 
      ACE_NTOHL (0x7274793a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
            9,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x0),  // name = Property
      2, // member count
            5,
      ACE_NTOHL (0x6e616d65), 
      ACE_NTOHL (0x0),  // name = name
            CORBA::tk_alias, // typecode kind for typedefs
      140, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        40,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x7274794e), 
        ACE_NTOHL (0x616d653a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                13,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = PropertyName
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          35,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f49), 
          ACE_NTOHL (0x73747269), 
          ACE_NTOHL (0x6e673a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                    8,
          ACE_NTOHL (0x49737472), 
          ACE_NTOHL (0x696e6700),  // name = Istring
                    CORBA::tk_string, 
          0U, // string length


      6,
      ACE_NTOHL (0x76616c75), 
      ACE_NTOHL (0x65000000),  // name = value
            CORBA::tk_alias, // typecode kind for typedefs
      76, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        41,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x72747956), 
        ACE_NTOHL (0x616c7565), 
        ACE_NTOHL (0x3a312e30), 
        ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
                14,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x56616c75), 
        ACE_NTOHL (0x65000000),  // name = PropertyValue
                CORBA::tk_any,



    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PropertySeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PropertySeq),
    (char *) &_oc_CosTrading_PropertySeq,
    0,
    sizeof (CosTrading::PropertySeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PropertySeq =
    &_tc_TAO_tc_CosTrading_PropertySeq;
}

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

static const CORBA::Long _oc_CosTrading_Offer[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  33,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Offer:1.0
    6,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72000000),  // name = Offer
  2, // member count
    10,
  ACE_NTOHL (0x72656665), 
  ACE_NTOHL (0x72656e63), 
  ACE_NTOHL (0x65000000),  // name = reference
    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
    
  11,
  ACE_NTOHL (0x70726f70), 
  ACE_NTOHL (0x65727469), 
  ACE_NTOHL (0x65730000),  // name = properties
    CORBA::tk_alias, // typecode kind for typedefs
  408, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x72747953), 
    ACE_NTOHL (0x65713a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertySeq:1.0
        12,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x53657100),  // name = PropertySeq
        CORBA::tk_sequence, // typecode kind
    336, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      320, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        36,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x7274793a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
                9,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x0),  // name = Property
        2, // member count
                5,
        ACE_NTOHL (0x6e616d65), 
        ACE_NTOHL (0x0),  // name = name
                CORBA::tk_alias, // typecode kind for typedefs
        140, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          40,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x7274794e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                    13,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = PropertyName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                        8,
            ACE_NTOHL (0x49737472), 
            ACE_NTOHL (0x696e6700),  // name = Istring
                        CORBA::tk_string, 
            0U, // string length


        6,
        ACE_NTOHL (0x76616c75), 
        ACE_NTOHL (0x65000000),  // name = value
                CORBA::tk_alias, // typecode kind for typedefs
        76, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          41,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x72747956), 
          ACE_NTOHL (0x616c7565), 
          ACE_NTOHL (0x3a312e30), 
          ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
                    14,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x56616c75), 
          ACE_NTOHL (0x65000000),  // name = PropertyValue
                    CORBA::tk_any,



      0U,


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Offer (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Offer),
    (char *) &_oc_CosTrading_Offer,
    0,
    sizeof (CosTrading::Offer)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Offer =
    &_tc_TAO_tc_CosTrading_Offer;
}

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

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

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

#if !defined (_COSTRADING_OFFERSEQ_CS_)
#define _COSTRADING_OFFERSEQ_CS_

CosTrading::OfferSeq::OfferSeq (void)
{}

CosTrading::OfferSeq::OfferSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Offer
      >
    (max)
{}

CosTrading::OfferSeq::OfferSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CosTrading::Offer * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Offer
      >
    (max, length, buffer, release)
{}

CosTrading::OfferSeq::OfferSeq (
    const OfferSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Offer
      >
    (seq)
{}

CosTrading::OfferSeq::~OfferSeq (void)
{}

void CosTrading::OfferSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  OfferSeq * _tao_tmp_pointer =
    static_cast<OfferSeq *> (_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_CosTrading_OfferSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  36,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x5365713a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/OfferSeq:1.0
    9,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72536571), 
  ACE_NTOHL (0x0),  // name = OfferSeq
    CORBA::tk_sequence, // typecode kind
  584, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    568, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      33,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4f), 
      ACE_NTOHL (0x66666572), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Offer:1.0
            6,
      ACE_NTOHL (0x4f666665), 
      ACE_NTOHL (0x72000000),  // name = Offer
      2, // member count
            10,
      ACE_NTOHL (0x72656665), 
      ACE_NTOHL (0x72656e63), 
      ACE_NTOHL (0x65000000),  // name = reference
            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
        
      11,
      ACE_NTOHL (0x70726f70), 
      ACE_NTOHL (0x65727469), 
      ACE_NTOHL (0x65730000),  // name = properties
            CORBA::tk_alias, // typecode kind for typedefs
      408, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        39,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x72747953), 
        ACE_NTOHL (0x65713a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertySeq:1.0
                12,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x53657100),  // name = PropertySeq
                CORBA::tk_sequence, // typecode kind
        336, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          CORBA::tk_struct, // typecode kind
          320, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            36,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f50), 
            ACE_NTOHL (0x726f7065), 
            ACE_NTOHL (0x7274793a), 
            ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
                        9,
            ACE_NTOHL (0x50726f70), 
            ACE_NTOHL (0x65727479), 
            ACE_NTOHL (0x0),  // name = Property
            2, // member count
                        5,
            ACE_NTOHL (0x6e616d65), 
            ACE_NTOHL (0x0),  // name = name
                        CORBA::tk_alias, // typecode kind for typedefs
            140, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              40,
              ACE_NTOHL (0x49444c3a), 
              ACE_NTOHL (0x6f6d672e), 
              ACE_NTOHL (0x6f72672f), 
              ACE_NTOHL (0x436f7354), 
              ACE_NTOHL (0x72616469), 
              ACE_NTOHL (0x6e672f50), 
              ACE_NTOHL (0x726f7065), 
              ACE_NTOHL (0x7274794e), 
              ACE_NTOHL (0x616d653a), 
              ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                            13,
              ACE_NTOHL (0x50726f70), 
              ACE_NTOHL (0x65727479), 
              ACE_NTOHL (0x4e616d65), 
              ACE_NTOHL (0x0),  // name = PropertyName
                            CORBA::tk_alias, // typecode kind for typedefs
              64, // encapsulation length
                TAO_ENCAP_BYTE_ORDER, // byte order
                35,
                ACE_NTOHL (0x49444c3a), 
                ACE_NTOHL (0x6f6d672e), 
                ACE_NTOHL (0x6f72672f), 
                ACE_NTOHL (0x436f7354), 
                ACE_NTOHL (0x72616469), 
                ACE_NTOHL (0x6e672f49), 
                ACE_NTOHL (0x73747269), 
                ACE_NTOHL (0x6e673a31), 
                ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                                8,
                ACE_NTOHL (0x49737472), 
                ACE_NTOHL (0x696e6700),  // name = Istring
                                CORBA::tk_string, 
                0U, // string length


            6,
            ACE_NTOHL (0x76616c75), 
            ACE_NTOHL (0x65000000),  // name = value
                        CORBA::tk_alias, // typecode kind for typedefs
            76, // encapsulation length
              TAO_ENCAP_BYTE_ORDER, // byte order
              41,
              ACE_NTOHL (0x49444c3a), 
              ACE_NTOHL (0x6f6d672e), 
              ACE_NTOHL (0x6f72672f), 
              ACE_NTOHL (0x436f7354), 
              ACE_NTOHL (0x72616469), 
              ACE_NTOHL (0x6e672f50), 
              ACE_NTOHL (0x726f7065), 
              ACE_NTOHL (0x72747956), 
              ACE_NTOHL (0x616c7565), 
              ACE_NTOHL (0x3a312e30), 
              ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
                            14,
              ACE_NTOHL (0x50726f70), 
              ACE_NTOHL (0x65727479), 
              ACE_NTOHL (0x56616c75), 
              ACE_NTOHL (0x65000000),  // name = PropertyValue
                            CORBA::tk_any,



          0U,



    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_OfferSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_OfferSeq),
    (char *) &_oc_CosTrading_OfferSeq,
    0,
    sizeof (CosTrading::OfferSeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_OfferSeq =
    &_tc_TAO_tc_CosTrading_OfferSeq;
}

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

static const CORBA::Long _oc_CosTrading_OfferId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  35,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49643a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
    8,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496400),  // name = OfferId
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_OfferId (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_OfferId),
    (char *) &_oc_CosTrading_OfferId,
    0,
    sizeof (CosTrading::OfferId)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_OfferId =
    &_tc_TAO_tc_CosTrading_OfferId;
}

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

#if !defined (_COSTRADING_OFFERIDSEQ_CS_)
#define _COSTRADING_OFFERIDSEQ_CS_

CosTrading::OfferIdSeq::OfferIdSeq (void)
{}

CosTrading::OfferIdSeq::OfferIdSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

CosTrading::OfferIdSeq::OfferIdSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    char * * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_String_Sequence
    (max, length, buffer, release)
{}

CosTrading::OfferIdSeq::OfferIdSeq (
    const OfferIdSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTrading::OfferIdSeq::~OfferIdSeq (void)
{}

void CosTrading::OfferIdSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  OfferIdSeq * _tao_tmp_pointer =
    static_cast<OfferIdSeq *> (_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_CosTrading_OfferIdSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49645365), 
  ACE_NTOHL (0x713a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/OfferIdSeq:1.0
    11,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496453), 
  ACE_NTOHL (0x65710000),  // name = OfferIdSeq
    CORBA::tk_sequence, // typecode kind
  80, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4f), 
      ACE_NTOHL (0x66666572), 
      ACE_NTOHL (0x49643a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
            8,
      ACE_NTOHL (0x4f666665), 
      ACE_NTOHL (0x72496400),  // name = OfferId
            CORBA::tk_string, 
      0U, // string length

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_OfferIdSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_OfferIdSeq),
    (char *) &_oc_CosTrading_OfferIdSeq,
    0,
    sizeof (CosTrading::OfferIdSeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_OfferIdSeq =
    &_tc_TAO_tc_CosTrading_OfferIdSeq;
}

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

static const CORBA::Long _oc_CosTrading_ServiceTypeName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f53), 
  ACE_NTOHL (0x65727669), 
  ACE_NTOHL (0x63655479), 
  ACE_NTOHL (0x70654e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
    16,
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x7970654e), 
  ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_ServiceTypeName (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_ServiceTypeName),
    (char *) &_oc_CosTrading_ServiceTypeName,
    0,
    sizeof (CosTrading::ServiceTypeName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_ServiceTypeName =
    &_tc_TAO_tc_CosTrading_ServiceTypeName;
}

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

static const CORBA::Long _oc_CosTrading_Constraint[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f43), 
  ACE_NTOHL (0x6f6e7374), 
  ACE_NTOHL (0x7261696e), 
  ACE_NTOHL (0x743a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Constraint:1.0
    11,
  ACE_NTOHL (0x436f6e73), 
  ACE_NTOHL (0x74726169), 
  ACE_NTOHL (0x6e740000),  // name = Constraint
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Constraint (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_Constraint),
    (char *) &_oc_CosTrading_Constraint,
    0,
    sizeof (CosTrading::Constraint)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Constraint =
    &_tc_TAO_tc_CosTrading_Constraint;
}

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

static const CORBA::Long _oc_CosTrading_FollowOption[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f46), 
  ACE_NTOHL (0x6f6c6c6f), 
  ACE_NTOHL (0x774f7074), 
  ACE_NTOHL (0x696f6e3a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
  13,
  ACE_NTOHL (0x466f6c6c), 
  ACE_NTOHL (0x6f774f70), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x0),  // name = FollowOption
  3, // member count
  11,
  ACE_NTOHL (0x6c6f6361), 
  ACE_NTOHL (0x6c5f6f6e), 
  ACE_NTOHL (0x6c790000),  // name = local_only
  12,
  ACE_NTOHL (0x69665f6e), 
  ACE_NTOHL (0x6f5f6c6f), 
  ACE_NTOHL (0x63616c00),  // name = if_no_local
  7,
  ACE_NTOHL (0x616c7761), 
  ACE_NTOHL (0x79730000),  // name = always
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_FollowOption (
    CORBA::tk_enum,
    sizeof (_oc_CosTrading_FollowOption),
    (char *) &_oc_CosTrading_FollowOption,
    0,
    sizeof (CosTrading::FollowOption)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_FollowOption =
    &_tc_TAO_tc_CosTrading_FollowOption;
}

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

static const CORBA::Long _oc_CosTrading_LinkName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  36,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
    9,
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = LinkName
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_LinkName (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_LinkName),
    (char *) &_oc_CosTrading_LinkName,
    0,
    sizeof (CosTrading::LinkName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_LinkName =
    &_tc_TAO_tc_CosTrading_LinkName;
}

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

#if !defined (_COSTRADING_LINKNAMESEQ_CS_)
#define _COSTRADING_LINKNAMESEQ_CS_

CosTrading::LinkNameSeq::LinkNameSeq (void)
{}

CosTrading::LinkNameSeq::LinkNameSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

CosTrading::LinkNameSeq::LinkNameSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    char * * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_String_Sequence
    (max, length, buffer, release)
{}

CosTrading::LinkNameSeq::LinkNameSeq (
    const LinkNameSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTrading::LinkNameSeq::~LinkNameSeq (void)
{}

void CosTrading::LinkNameSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  LinkNameSeq * _tao_tmp_pointer =
    static_cast<LinkNameSeq *> (_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_CosTrading_LinkNameSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d6553), 
  ACE_NTOHL (0x65713a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/LinkNameSeq:1.0
    12,
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x53657100),  // name = LinkNameSeq
    CORBA::tk_sequence, // typecode kind
  148, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    132, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      36,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4c), 
      ACE_NTOHL (0x696e6b4e), 
      ACE_NTOHL (0x616d653a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
            9,
      ACE_NTOHL (0x4c696e6b), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x0),  // name = LinkName
            CORBA::tk_alias, // typecode kind for typedefs
      64, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        35,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f49), 
        ACE_NTOHL (0x73747269), 
        ACE_NTOHL (0x6e673a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_LinkNameSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_LinkNameSeq),
    (char *) &_oc_CosTrading_LinkNameSeq,
    0,
    sizeof (CosTrading::LinkNameSeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_LinkNameSeq =
    &_tc_TAO_tc_CosTrading_LinkNameSeq;
}

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

static const CORBA::Long _oc_CosTrading_TraderName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x724e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/TraderName:1.0
    11,
  ACE_NTOHL (0x54726164), 
  ACE_NTOHL (0x65724e61), 
  ACE_NTOHL (0x6d650000),  // name = TraderName
    CORBA::tk_alias, // typecode kind for typedefs
  220, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x696e6b4e), 
    ACE_NTOHL (0x616d6553), 
    ACE_NTOHL (0x65713a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/LinkNameSeq:1.0
        12,
    ACE_NTOHL (0x4c696e6b), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x53657100),  // name = LinkNameSeq
        CORBA::tk_sequence, // typecode kind
    148, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_alias, // typecode kind for typedefs
      132, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        36,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f4c), 
        ACE_NTOHL (0x696e6b4e), 
        ACE_NTOHL (0x616d653a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
                9,
        ACE_NTOHL (0x4c696e6b), 
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = LinkName
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          35,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f49), 
          ACE_NTOHL (0x73747269), 
          ACE_NTOHL (0x6e673a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_TraderName (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_TraderName),
    (char *) &_oc_CosTrading_TraderName,
    0,
    sizeof (CosTrading::TraderName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_TraderName =
    &_tc_TAO_tc_CosTrading_TraderName;
}

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

static const CORBA::Long _oc_CosTrading_PolicyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x794e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
    11,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63794e61), 
  ACE_NTOHL (0x6d650000),  // name = PolicyName
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PolicyName (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PolicyName),
    (char *) &_oc_CosTrading_PolicyName,
    0,
    sizeof (CosTrading::PolicyName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PolicyName =
    &_tc_TAO_tc_CosTrading_PolicyName;
}

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

#if !defined (_COSTRADING_POLICYNAMESEQ_CS_)
#define _COSTRADING_POLICYNAMESEQ_CS_

CosTrading::PolicyNameSeq::PolicyNameSeq (void)
{}

CosTrading::PolicyNameSeq::PolicyNameSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

CosTrading::PolicyNameSeq::PolicyNameSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    char * * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_String_Sequence
    (max, length, buffer, release)
{}

CosTrading::PolicyNameSeq::PolicyNameSeq (
    const PolicyNameSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTrading::PolicyNameSeq::~PolicyNameSeq (void)
{}

void CosTrading::PolicyNameSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  PolicyNameSeq * _tao_tmp_pointer =
    static_cast<PolicyNameSeq *> (_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_CosTrading_PolicyNameSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x794e616d), 
  ACE_NTOHL (0x65536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PolicyNameSeq:1.0
    14,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63794e61), 
  ACE_NTOHL (0x6d655365), 
  ACE_NTOHL (0x71000000),  // name = PolicyNameSeq
    CORBA::tk_sequence, // typecode kind
  88, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_alias, // typecode kind for typedefs
    72, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      38,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x794e616d), 
      ACE_NTOHL (0x653a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
            11,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63794e61), 
      ACE_NTOHL (0x6d650000),  // name = PolicyName
            CORBA::tk_string, 
      0U, // string length

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PolicyNameSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PolicyNameSeq),
    (char *) &_oc_CosTrading_PolicyNameSeq,
    0,
    sizeof (CosTrading::PolicyNameSeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PolicyNameSeq =
    &_tc_TAO_tc_CosTrading_PolicyNameSeq;
}

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

static const CORBA::Long _oc_CosTrading_PolicyValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x7956616c), 
  ACE_NTOHL (0x75653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
    12,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63795661), 
  ACE_NTOHL (0x6c756500),  // name = PolicyValue
    CORBA::tk_any,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PolicyValue (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PolicyValue),
    (char *) &_oc_CosTrading_PolicyValue,
    0,
    sizeof (CosTrading::PolicyValue)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PolicyValue =
    &_tc_TAO_tc_CosTrading_PolicyValue;
}

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

static const CORBA::Long _oc_CosTrading_Policy[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  34,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Policy:1.0
    7,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63790000),  // name = Policy
  2, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  72, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x794e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
        11,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63794e61), 
    ACE_NTOHL (0x6d650000),  // name = PolicyName
        CORBA::tk_string, 
    0U, // string length

  6,
  ACE_NTOHL (0x76616c75), 
  ACE_NTOHL (0x65000000),  // name = value
    CORBA::tk_alias, // typecode kind for typedefs
  68, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x7956616c), 
    ACE_NTOHL (0x75653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
        12,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63795661), 
    ACE_NTOHL (0x6c756500),  // name = PolicyValue
        CORBA::tk_any,


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Policy (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Policy),
    (char *) &_oc_CosTrading_Policy,
    0,
    sizeof (CosTrading::Policy)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Policy =
    &_tc_TAO_tc_CosTrading_Policy;
}

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

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

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

#if !defined (_COSTRADING_POLICYSEQ_CS_)
#define _COSTRADING_POLICYSEQ_CS_

CosTrading::PolicySeq::PolicySeq (void)
{}

CosTrading::PolicySeq::PolicySeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Policy
      >
    (max)
{}

CosTrading::PolicySeq::PolicySeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CosTrading::Policy * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Policy
      >
    (max, length, buffer, release)
{}

CosTrading::PolicySeq::PolicySeq (
    const PolicySeq &seq
  )
  : TAO_Unbounded_Sequence<
        CosTrading::Policy
      >
    (seq)
{}

CosTrading::PolicySeq::~PolicySeq (void)
{}

void CosTrading::PolicySeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  PolicySeq * _tao_tmp_pointer =
    static_cast<PolicySeq *> (_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_CosTrading_PolicySeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  37,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x79536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PolicySeq:1.0
    10,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63795365), 
  ACE_NTOHL (0x71000000),  // name = PolicySeq
    CORBA::tk_sequence, // typecode kind
  256, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    240, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      34,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x793a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Policy:1.0
            7,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63790000),  // name = Policy
      2, // member count
            5,
      ACE_NTOHL (0x6e616d65), 
      ACE_NTOHL (0x0),  // name = name
            CORBA::tk_alias, // typecode kind for typedefs
      72, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        38,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x6f6c6963), 
        ACE_NTOHL (0x794e616d), 
        ACE_NTOHL (0x653a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
                11,
        ACE_NTOHL (0x506f6c69), 
        ACE_NTOHL (0x63794e61), 
        ACE_NTOHL (0x6d650000),  // name = PolicyName
                CORBA::tk_string, 
        0U, // string length

      6,
      ACE_NTOHL (0x76616c75), 
      ACE_NTOHL (0x65000000),  // name = value
            CORBA::tk_alias, // typecode kind for typedefs
      68, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        39,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x6f6c6963), 
        ACE_NTOHL (0x7956616c), 
        ACE_NTOHL (0x75653a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
                12,
        ACE_NTOHL (0x506f6c69), 
        ACE_NTOHL (0x63795661), 
        ACE_NTOHL (0x6c756500),  // name = PolicyValue
                CORBA::tk_any,



    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PolicySeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_PolicySeq),
    (char *) &_oc_CosTrading_PolicySeq,
    0,
    sizeof (CosTrading::PolicySeq)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PolicySeq =
    &_tc_TAO_tc_CosTrading_PolicySeq;
}

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

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

CosTrading::UnknownMaxLeft::~UnknownMaxLeft (void)
{
}

CosTrading::UnknownMaxLeft::UnknownMaxLeft (const ::CosTrading::UnknownMaxLeft &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

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

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

void CosTrading::UnknownMaxLeft::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::UnknownMaxLeft::_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 CosTrading::UnknownMaxLeft::_type (void) const
{
  return ::CosTrading::_tc_UnknownMaxLeft;
}

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

static const CORBA::Long _oc_CosTrading_UnknownMaxLeft[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f55), 
  ACE_NTOHL (0x6e6b6e6f), 
  ACE_NTOHL (0x776e4d61), 
  ACE_NTOHL (0x784c6566), 
  ACE_NTOHL (0x743a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/UnknownMaxLeft:1.0
    15,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e4d), 
  ACE_NTOHL (0x61784c65), 
  ACE_NTOHL (0x66740000),  // name = UnknownMaxLeft
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_UnknownMaxLeft (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_UnknownMaxLeft),
    (char *) &_oc_CosTrading_UnknownMaxLeft,
    0,
    sizeof (CosTrading::UnknownMaxLeft)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_UnknownMaxLeft =
    &_tc_TAO_tc_CosTrading_UnknownMaxLeft;
}

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

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

CosTrading::NotImplemented::~NotImplemented (void)
{
}

CosTrading::NotImplemented::NotImplemented (const ::CosTrading::NotImplemented &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

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

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

void CosTrading::NotImplemented::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::NotImplemented::_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 CosTrading::NotImplemented::_type (void) const
{
  return ::CosTrading::_tc_NotImplemented;
}

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

static const CORBA::Long _oc_CosTrading_NotImplemented[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4e), 
  ACE_NTOHL (0x6f74496d), 
  ACE_NTOHL (0x706c656d), 
  ACE_NTOHL (0x656e7465), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/NotImplemented:1.0
    15,
  ACE_NTOHL (0x4e6f7449), 
  ACE_NTOHL (0x6d706c65), 
  ACE_NTOHL (0x6d656e74), 
  ACE_NTOHL (0x65640000),  // name = NotImplemented
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_NotImplemented (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_NotImplemented),
    (char *) &_oc_CosTrading_NotImplemented,
    0,
    sizeof (CosTrading::NotImplemented)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_NotImplemented =
    &_tc_TAO_tc_CosTrading_NotImplemented;
}

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

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

CosTrading::IllegalServiceType::~IllegalServiceType (void)
{
}

CosTrading::IllegalServiceType::IllegalServiceType (const ::CosTrading::IllegalServiceType &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
}

CosTrading::IllegalServiceType&
CosTrading::IllegalServiceType::operator= (const ::CosTrading::IllegalServiceType &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  return *this;
}

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

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

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

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

void CosTrading::IllegalServiceType::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::IllegalServiceType::_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

CosTrading::IllegalServiceType::IllegalServiceType (
    const char * _tao_type
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        "IllegalServiceType"
      )
{
  this->type = CORBA::string_dup (_tao_type);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::IllegalServiceType::_type (void) const
{
  return ::CosTrading::_tc_IllegalServiceType;
}

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

static const CORBA::Long _oc_CosTrading_IllegalServiceType[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6c6c6567), 
  ACE_NTOHL (0x616c5365), 
  ACE_NTOHL (0x72766963), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/IllegalServiceType:1.0
    19,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c53), 
  ACE_NTOHL (0x65727669), 
  ACE_NTOHL (0x63655479), 
  ACE_NTOHL (0x70650000),  // name = IllegalServiceType
  1, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_IllegalServiceType (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_IllegalServiceType),
    (char *) &_oc_CosTrading_IllegalServiceType,
    0,
    sizeof (CosTrading::IllegalServiceType)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_IllegalServiceType =
    &_tc_TAO_tc_CosTrading_IllegalServiceType;
}

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

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

CosTrading::UnknownServiceType::~UnknownServiceType (void)
{
}

CosTrading::UnknownServiceType::UnknownServiceType (const ::CosTrading::UnknownServiceType &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
}

CosTrading::UnknownServiceType&
CosTrading::UnknownServiceType::operator= (const ::CosTrading::UnknownServiceType &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  return *this;
}

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

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

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

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

void CosTrading::UnknownServiceType::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::UnknownServiceType::_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

CosTrading::UnknownServiceType::UnknownServiceType (
    const char * _tao_type
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        "UnknownServiceType"
      )
{
  this->type = CORBA::string_dup (_tao_type);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::UnknownServiceType::_type (void) const
{
  return ::CosTrading::_tc_UnknownServiceType;
}

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

static const CORBA::Long _oc_CosTrading_UnknownServiceType[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f55), 
  ACE_NTOHL (0x6e6b6e6f), 
  ACE_NTOHL (0x776e5365), 
  ACE_NTOHL (0x72766963), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/UnknownServiceType:1.0
    19,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e53), 
  ACE_NTOHL (0x65727669), 
  ACE_NTOHL (0x63655479), 
  ACE_NTOHL (0x70650000),  // name = UnknownServiceType
  1, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_UnknownServiceType (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_UnknownServiceType),
    (char *) &_oc_CosTrading_UnknownServiceType,
    0,
    sizeof (CosTrading::UnknownServiceType)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_UnknownServiceType =
    &_tc_TAO_tc_CosTrading_UnknownServiceType;
}

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

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

CosTrading::IllegalPropertyName::~IllegalPropertyName (void)
{
}

CosTrading::IllegalPropertyName::IllegalPropertyName (const ::CosTrading::IllegalPropertyName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::IllegalPropertyName&
CosTrading::IllegalPropertyName::operator= (const ::CosTrading::IllegalPropertyName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

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

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

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

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

void CosTrading::IllegalPropertyName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::IllegalPropertyName::_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

CosTrading::IllegalPropertyName::IllegalPropertyName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/IllegalPropertyName:1.0",
        "IllegalPropertyName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::IllegalPropertyName::_type (void) const
{
  return ::CosTrading::_tc_IllegalPropertyName;
}

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

static const CORBA::Long _oc_CosTrading_IllegalPropertyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6c6c6567), 
  ACE_NTOHL (0x616c5072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74794e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/IllegalPropertyName:1.0
    20,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274794e), 
  ACE_NTOHL (0x616d6500),  // name = IllegalPropertyName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_IllegalPropertyName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_IllegalPropertyName),
    (char *) &_oc_CosTrading_IllegalPropertyName,
    0,
    sizeof (CosTrading::IllegalPropertyName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_IllegalPropertyName =
    &_tc_TAO_tc_CosTrading_IllegalPropertyName;
}

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

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

CosTrading::DuplicatePropertyName::~DuplicatePropertyName (void)
{
}

CosTrading::DuplicatePropertyName::DuplicatePropertyName (const ::CosTrading::DuplicatePropertyName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::DuplicatePropertyName&
CosTrading::DuplicatePropertyName::operator= (const ::CosTrading::DuplicatePropertyName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

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

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

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

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

void CosTrading::DuplicatePropertyName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::DuplicatePropertyName::_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

CosTrading::DuplicatePropertyName::DuplicatePropertyName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/DuplicatePropertyName:1.0",
        "DuplicatePropertyName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::DuplicatePropertyName::_type (void) const
{
  return ::CosTrading::_tc_DuplicatePropertyName;
}

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

static const CORBA::Long _oc_CosTrading_DuplicatePropertyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f44), 
  ACE_NTOHL (0x75706c69), 
  ACE_NTOHL (0x63617465), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/DuplicatePropertyName:1.0
    22,
  ACE_NTOHL (0x4475706c), 
  ACE_NTOHL (0x69636174), 
  ACE_NTOHL (0x6550726f), 
  ACE_NTOHL (0x70657274), 
  ACE_NTOHL (0x794e616d), 
  ACE_NTOHL (0x65000000),  // name = DuplicatePropertyName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_DuplicatePropertyName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_DuplicatePropertyName),
    (char *) &_oc_CosTrading_DuplicatePropertyName,
    0,
    sizeof (CosTrading::DuplicatePropertyName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_DuplicatePropertyName =
    &_tc_TAO_tc_CosTrading_DuplicatePropertyName;
}

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

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

CosTrading::PropertyTypeMismatch::~PropertyTypeMismatch (void)
{
}

CosTrading::PropertyTypeMismatch::PropertyTypeMismatch (const ::CosTrading::PropertyTypeMismatch &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->prop = _tao_excp.prop;
}

CosTrading::PropertyTypeMismatch&
CosTrading::PropertyTypeMismatch::operator= (const ::CosTrading::PropertyTypeMismatch &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->prop = _tao_excp.prop;
  return *this;
}

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

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

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

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

void CosTrading::PropertyTypeMismatch::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::PropertyTypeMismatch::_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

CosTrading::PropertyTypeMismatch::PropertyTypeMismatch (
    const char * _tao_type,
    const CosTrading::Property & _tao_prop
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/PropertyTypeMismatch:1.0",
        "PropertyTypeMismatch"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->prop = _tao_prop;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::PropertyTypeMismatch::_type (void) const
{
  return ::CosTrading::_tc_PropertyTypeMismatch;
}

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

static const CORBA::Long _oc_CosTrading_PropertyTypeMismatch[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  48,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747954), 
  ACE_NTOHL (0x7970654d), 
  ACE_NTOHL (0x69736d61), 
  ACE_NTOHL (0x7463683a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyTypeMismatch:1.0
    21,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x4d69736d), 
  ACE_NTOHL (0x61746368), 
  ACE_NTOHL (0x0),  // name = PropertyTypeMismatch
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  5,
  ACE_NTOHL (0x70726f70), 
  ACE_NTOHL (0x0),  // name = prop
    CORBA::tk_struct, // typecode kind
  320, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274793a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
        9,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x0),  // name = Property
    2, // member count
        5,
    ACE_NTOHL (0x6e616d65), 
    ACE_NTOHL (0x0),  // name = name
        CORBA::tk_alias, // typecode kind for typedefs
    140, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      40,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x726f7065), 
      ACE_NTOHL (0x7274794e), 
      ACE_NTOHL (0x616d653a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
            13,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x0),  // name = PropertyName
            CORBA::tk_alias, // typecode kind for typedefs
      64, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        35,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f49), 
        ACE_NTOHL (0x73747269), 
        ACE_NTOHL (0x6e673a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                8,
        ACE_NTOHL (0x49737472), 
        ACE_NTOHL (0x696e6700),  // name = Istring
                CORBA::tk_string, 
        0U, // string length


    6,
    ACE_NTOHL (0x76616c75), 
    ACE_NTOHL (0x65000000),  // name = value
        CORBA::tk_alias, // typecode kind for typedefs
    76, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      41,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x726f7065), 
      ACE_NTOHL (0x72747956), 
      ACE_NTOHL (0x616c7565), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
            14,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x56616c75), 
      ACE_NTOHL (0x65000000),  // name = PropertyValue
            CORBA::tk_any,



};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_PropertyTypeMismatch (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_PropertyTypeMismatch),
    (char *) &_oc_CosTrading_PropertyTypeMismatch,
    0,
    sizeof (CosTrading::PropertyTypeMismatch)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_PropertyTypeMismatch =
    &_tc_TAO_tc_CosTrading_PropertyTypeMismatch;
}

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

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

CosTrading::MissingMandatoryProperty::~MissingMandatoryProperty (void)
{
}

CosTrading::MissingMandatoryProperty::MissingMandatoryProperty (const ::CosTrading::MissingMandatoryProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::MissingMandatoryProperty&
CosTrading::MissingMandatoryProperty::operator= (const ::CosTrading::MissingMandatoryProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

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

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

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

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

void CosTrading::MissingMandatoryProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::MissingMandatoryProperty::_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

CosTrading::MissingMandatoryProperty::MissingMandatoryProperty (
    const char * _tao_type,
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/MissingMandatoryProperty:1.0",
        "MissingMandatoryProperty"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::MissingMandatoryProperty::_type (void) const
{
  return ::CosTrading::_tc_MissingMandatoryProperty;
}

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

static const CORBA::Long _oc_CosTrading_MissingMandatoryProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  52,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4d), 
  ACE_NTOHL (0x69737369), 
  ACE_NTOHL (0x6e674d61), 
  ACE_NTOHL (0x6e646174), 
  ACE_NTOHL (0x6f727950), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274793a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/MissingMandatoryProperty:1.0
    25,
  ACE_NTOHL (0x4d697373), 
  ACE_NTOHL (0x696e674d), 
  ACE_NTOHL (0x616e6461), 
  ACE_NTOHL (0x746f7279), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x0),  // name = MissingMandatoryProperty
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_MissingMandatoryProperty (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_MissingMandatoryProperty),
    (char *) &_oc_CosTrading_MissingMandatoryProperty,
    0,
    sizeof (CosTrading::MissingMandatoryProperty)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_MissingMandatoryProperty =
    &_tc_TAO_tc_CosTrading_MissingMandatoryProperty;
}

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

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

CosTrading::ReadonlyDynamicProperty::~ReadonlyDynamicProperty (void)
{
}

CosTrading::ReadonlyDynamicProperty::ReadonlyDynamicProperty (const ::CosTrading::ReadonlyDynamicProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::ReadonlyDynamicProperty&
CosTrading::ReadonlyDynamicProperty::operator= (const ::CosTrading::ReadonlyDynamicProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

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

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

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

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

void CosTrading::ReadonlyDynamicProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::ReadonlyDynamicProperty::_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

CosTrading::ReadonlyDynamicProperty::ReadonlyDynamicProperty (
    const char * _tao_type,
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/ReadonlyDynamicProperty:1.0",
        "ReadonlyDynamicProperty"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::ReadonlyDynamicProperty::_type (void) const
{
  return ::CosTrading::_tc_ReadonlyDynamicProperty;
}

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

static const CORBA::Long _oc_CosTrading_ReadonlyDynamicProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  51,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x6561646f), 
  ACE_NTOHL (0x6e6c7944), 
  ACE_NTOHL (0x796e616d), 
  ACE_NTOHL (0x69635072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74793a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ReadonlyDynamicProperty:1.0
    24,
  ACE_NTOHL (0x52656164), 
  ACE_NTOHL (0x6f6e6c79), 
  ACE_NTOHL (0x44796e61), 
  ACE_NTOHL (0x6d696350), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x72747900),  // name = ReadonlyDynamicProperty
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_ReadonlyDynamicProperty (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_ReadonlyDynamicProperty),
    (char *) &_oc_CosTrading_ReadonlyDynamicProperty,
    0,
    sizeof (CosTrading::ReadonlyDynamicProperty)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_ReadonlyDynamicProperty =
    &_tc_TAO_tc_CosTrading_ReadonlyDynamicProperty;
}

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

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

CosTrading::IllegalConstraint::~IllegalConstraint (void)
{
}

CosTrading::IllegalConstraint::IllegalConstraint (const ::CosTrading::IllegalConstraint &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->constr = CORBA::string_dup (_tao_excp.constr.in ());
}

CosTrading::IllegalConstraint&
CosTrading::IllegalConstraint::operator= (const ::CosTrading::IllegalConstraint &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->constr = CORBA::string_dup (_tao_excp.constr.in ());
  return *this;
}

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

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

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

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

void CosTrading::IllegalConstraint::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::IllegalConstraint::_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

CosTrading::IllegalConstraint::IllegalConstraint (
    const char * _tao_constr
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/IllegalConstraint:1.0",
        "IllegalConstraint"
      )
{
  this->constr = CORBA::string_dup (_tao_constr);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::IllegalConstraint::_type (void) const
{
  return ::CosTrading::_tc_IllegalConstraint;
}

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

static const CORBA::Long _oc_CosTrading_IllegalConstraint[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6c6c6567), 
  ACE_NTOHL (0x616c436f), 
  ACE_NTOHL (0x6e737472), 
  ACE_NTOHL (0x61696e74), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/IllegalConstraint:1.0
    18,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c43), 
  ACE_NTOHL (0x6f6e7374), 
  ACE_NTOHL (0x7261696e), 
  ACE_NTOHL (0x74000000),  // name = IllegalConstraint
  1, // member count
    7,
  ACE_NTOHL (0x636f6e73), 
  ACE_NTOHL (0x74720000),  // name = constr
    CORBA::tk_alias, // typecode kind for typedefs
  136, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f43), 
    ACE_NTOHL (0x6f6e7374), 
    ACE_NTOHL (0x7261696e), 
    ACE_NTOHL (0x743a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Constraint:1.0
        11,
    ACE_NTOHL (0x436f6e73), 
    ACE_NTOHL (0x74726169), 
    ACE_NTOHL (0x6e740000),  // name = Constraint
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_IllegalConstraint (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_IllegalConstraint),
    (char *) &_oc_CosTrading_IllegalConstraint,
    0,
    sizeof (CosTrading::IllegalConstraint)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_IllegalConstraint =
    &_tc_TAO_tc_CosTrading_IllegalConstraint;
}

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

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

CosTrading::InvalidLookupRef::~InvalidLookupRef (void)
{
}

CosTrading::InvalidLookupRef::InvalidLookupRef (const ::CosTrading::InvalidLookupRef &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->target = CosTrading::Lookup::_duplicate (_tao_excp.target.in ());
}

CosTrading::InvalidLookupRef&
CosTrading::InvalidLookupRef::operator= (const ::CosTrading::InvalidLookupRef &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->target = CosTrading::Lookup::_duplicate (_tao_excp.target.in ());
  return *this;
}

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

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

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

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

void CosTrading::InvalidLookupRef::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::InvalidLookupRef::_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

CosTrading::InvalidLookupRef::InvalidLookupRef (
    const CosTrading::Lookup_ptr _tao_target
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/InvalidLookupRef:1.0",
        "InvalidLookupRef"
      )
{
  this->target = CosTrading::Lookup::_duplicate (_tao_target);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::InvalidLookupRef::_type (void) const
{
  return ::CosTrading::_tc_InvalidLookupRef;
}

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

static const CORBA::Long _oc_CosTrading_InvalidLookupRef[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  44,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6e76616c), 
  ACE_NTOHL (0x69644c6f), 
  ACE_NTOHL (0x6f6b7570), 
  ACE_NTOHL (0x5265663a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/InvalidLookupRef:1.0
    17,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c69644c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x70526566), 
  ACE_NTOHL (0x0),  // name = InvalidLookupRef
  1, // member count
    7,
  ACE_NTOHL (0x74617267), 
  ACE_NTOHL (0x65740000),  // name = target
    CORBA::tk_objref, // typecode kind
  56, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x6f6f6b75), 
    ACE_NTOHL (0x703a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Lookup:1.0
        7,
    ACE_NTOHL (0x4c6f6f6b), 
    ACE_NTOHL (0x75700000),  // name = Lookup
    
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_InvalidLookupRef (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_InvalidLookupRef),
    (char *) &_oc_CosTrading_InvalidLookupRef,
    0,
    sizeof (CosTrading::InvalidLookupRef)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_InvalidLookupRef =
    &_tc_TAO_tc_CosTrading_InvalidLookupRef;
}

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

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

CosTrading::IllegalOfferId::~IllegalOfferId (void)
{
}

CosTrading::IllegalOfferId::IllegalOfferId (const ::CosTrading::IllegalOfferId &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->id = CORBA::string_dup (_tao_excp.id.in ());
}

CosTrading::IllegalOfferId&
CosTrading::IllegalOfferId::operator= (const ::CosTrading::IllegalOfferId &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->id = CORBA::string_dup (_tao_excp.id.in ());
  return *this;
}

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

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

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

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

void CosTrading::IllegalOfferId::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::IllegalOfferId::_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

CosTrading::IllegalOfferId::IllegalOfferId (
    const char * _tao_id
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        "IllegalOfferId"
      )
{
  this->id = CORBA::string_dup (_tao_id);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::IllegalOfferId::_type (void) const
{
  return ::CosTrading::_tc_IllegalOfferId;
}

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

static const CORBA::Long _oc_CosTrading_IllegalOfferId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6c6c6567), 
  ACE_NTOHL (0x616c4f66), 
  ACE_NTOHL (0x66657249), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/IllegalOfferId:1.0
    15,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49640000),  // name = IllegalOfferId
  1, // member count
    3,
  ACE_NTOHL (0x69640000),  // name = id
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4f), 
    ACE_NTOHL (0x66666572), 
    ACE_NTOHL (0x49643a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
        8,
    ACE_NTOHL (0x4f666665), 
    ACE_NTOHL (0x72496400),  // name = OfferId
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_IllegalOfferId (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_IllegalOfferId),
    (char *) &_oc_CosTrading_IllegalOfferId,
    0,
    sizeof (CosTrading::IllegalOfferId)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_IllegalOfferId =
    &_tc_TAO_tc_CosTrading_IllegalOfferId;
}

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

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

CosTrading::UnknownOfferId::~UnknownOfferId (void)
{
}

CosTrading::UnknownOfferId::UnknownOfferId (const ::CosTrading::UnknownOfferId &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->id = CORBA::string_dup (_tao_excp.id.in ());
}

CosTrading::UnknownOfferId&
CosTrading::UnknownOfferId::operator= (const ::CosTrading::UnknownOfferId &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->id = CORBA::string_dup (_tao_excp.id.in ());
  return *this;
}

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

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

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

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

void CosTrading::UnknownOfferId::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::UnknownOfferId::_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

CosTrading::UnknownOfferId::UnknownOfferId (
    const char * _tao_id
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        "UnknownOfferId"
      )
{
  this->id = CORBA::string_dup (_tao_id);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::UnknownOfferId::_type (void) const
{
  return ::CosTrading::_tc_UnknownOfferId;
}

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

static const CORBA::Long _oc_CosTrading_UnknownOfferId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f55), 
  ACE_NTOHL (0x6e6b6e6f), 
  ACE_NTOHL (0x776e4f66), 
  ACE_NTOHL (0x66657249), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/UnknownOfferId:1.0
    15,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49640000),  // name = UnknownOfferId
  1, // member count
    3,
  ACE_NTOHL (0x69640000),  // name = id
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4f), 
    ACE_NTOHL (0x66666572), 
    ACE_NTOHL (0x49643a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
        8,
    ACE_NTOHL (0x4f666665), 
    ACE_NTOHL (0x72496400),  // name = OfferId
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_UnknownOfferId (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_UnknownOfferId),
    (char *) &_oc_CosTrading_UnknownOfferId,
    0,
    sizeof (CosTrading::UnknownOfferId)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_UnknownOfferId =
    &_tc_TAO_tc_CosTrading_UnknownOfferId;
}

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

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

CosTrading::DuplicatePolicyName::~DuplicatePolicyName (void)
{
}

CosTrading::DuplicatePolicyName::DuplicatePolicyName (const ::CosTrading::DuplicatePolicyName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::DuplicatePolicyName&
CosTrading::DuplicatePolicyName::operator= (const ::CosTrading::DuplicatePolicyName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

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

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

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

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

void CosTrading::DuplicatePolicyName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::DuplicatePolicyName::_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

CosTrading::DuplicatePolicyName::DuplicatePolicyName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/DuplicatePolicyName:1.0",
        "DuplicatePolicyName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::DuplicatePolicyName::_type (void) const
{
  return ::CosTrading::_tc_DuplicatePolicyName;
}

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

static const CORBA::Long _oc_CosTrading_DuplicatePolicyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f44), 
  ACE_NTOHL (0x75706c69), 
  ACE_NTOHL (0x63617465), 
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63794e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/DuplicatePolicyName:1.0
    20,
  ACE_NTOHL (0x4475706c), 
  ACE_NTOHL (0x69636174), 
  ACE_NTOHL (0x65506f6c), 
  ACE_NTOHL (0x6963794e), 
  ACE_NTOHL (0x616d6500),  // name = DuplicatePolicyName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  72, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x794e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
        11,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63794e61), 
    ACE_NTOHL (0x6d650000),  // name = PolicyName
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_DuplicatePolicyName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_DuplicatePolicyName),
    (char *) &_oc_CosTrading_DuplicatePolicyName,
    0,
    sizeof (CosTrading::DuplicatePolicyName)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_DuplicatePolicyName =
    &_tc_TAO_tc_CosTrading_DuplicatePolicyName;
}

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

// Traits specializations for CosTrading::TraderComponents.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::TraderComponents_ptr
TAO::Objref_Traits<CosTrading::TraderComponents>::tao_duplicate (
    CosTrading::TraderComponents_ptr p
  )
{
  return CosTrading::TraderComponents::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::TraderComponents>::tao_release (
    CosTrading::TraderComponents_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::TraderComponents_ptr
TAO::Objref_Traits<CosTrading::TraderComponents>::tao_nil (void)
{
  return CosTrading::TraderComponents::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::TraderComponents>::tao_marshal (
    CosTrading::TraderComponents_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

::CosTrading::Lookup_ptr CosTrading::TraderComponents::lookup_if (
    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_TraderComponents_Proxy_Broker_ == 0)
    {
      CosTrading_TraderComponents_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Lookup>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_lookup_if",
      14,
      this->the_TAO_TraderComponents_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::Register_ptr CosTrading::TraderComponents::register_if (
    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_TraderComponents_Proxy_Broker_ == 0)
    {
      CosTrading_TraderComponents_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Register>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_register_if",
      16,
      this->the_TAO_TraderComponents_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::Link_ptr CosTrading::TraderComponents::link_if (
    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_TraderComponents_Proxy_Broker_ == 0)
    {
      CosTrading_TraderComponents_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Link>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_link_if",
      12,
      this->the_TAO_TraderComponents_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::Proxy_ptr CosTrading::TraderComponents::proxy_if (
    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_TraderComponents_Proxy_Broker_ == 0)
    {
      CosTrading_TraderComponents_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Proxy>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_proxy_if",
      13,
      this->the_TAO_TraderComponents_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::Admin_ptr CosTrading::TraderComponents::admin_if (
    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_TraderComponents_Proxy_Broker_ == 0)
    {
      CosTrading_TraderComponents_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Admin>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_admin_if",
      13,
      this->the_TAO_TraderComponents_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::TraderComponents::TraderComponents (void)
 : the_TAO_TraderComponents_Proxy_Broker_ (0)
{
  this->CosTrading_TraderComponents_setup_collocation ();
}

void
CosTrading::TraderComponents::CosTrading_TraderComponents_setup_collocation ()
{
  if (::CosTrading__TAO_TraderComponents_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_TraderComponents_Proxy_Broker_ =
        ::CosTrading__TAO_TraderComponents_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::TraderComponents::~TraderComponents (void)
{}

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

CosTrading::TraderComponents_ptr
CosTrading::TraderComponents::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<TraderComponents>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/TraderComponents:1.0",
        CosTrading__TAO_TraderComponents_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::TraderComponents_ptr
CosTrading::TraderComponents::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<TraderComponents>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/TraderComponents:1.0",
        CosTrading__TAO_TraderComponents_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::TraderComponents_ptr
CosTrading::TraderComponents::_duplicate (TraderComponents_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::TraderComponents::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_TraderComponents[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  44,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x72436f6d), 
  ACE_NTOHL (0x706f6e65), 
  ACE_NTOHL (0x6e74733a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/TraderComponents:1.0
    17,
  ACE_NTOHL (0x54726164), 
  ACE_NTOHL (0x6572436f), 
  ACE_NTOHL (0x6d706f6e), 
  ACE_NTOHL (0x656e7473), 
  ACE_NTOHL (0x0),  // name = TraderComponents
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_TraderComponents (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_TraderComponents),
    (char *) &_oc_CosTrading_TraderComponents,
    0,
    sizeof (CosTrading::TraderComponents)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_TraderComponents =
    &_tc_TAO_tc_CosTrading_TraderComponents;
}

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

// Traits specializations for CosTrading::SupportAttributes.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::SupportAttributes_ptr
TAO::Objref_Traits<CosTrading::SupportAttributes>::tao_duplicate (
    CosTrading::SupportAttributes_ptr p
  )
{
  return CosTrading::SupportAttributes::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::SupportAttributes>::tao_release (
    CosTrading::SupportAttributes_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::SupportAttributes_ptr
TAO::Objref_Traits<CosTrading::SupportAttributes>::tao_nil (void)
{
  return CosTrading::SupportAttributes::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::SupportAttributes>::tao_marshal (
    CosTrading::SupportAttributes_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

CORBA::Boolean CosTrading::SupportAttributes::supports_modifiable_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_SupportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_SupportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_supports_modifiable_properties",
      35,
      this->the_TAO_SupportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::SupportAttributes::supports_dynamic_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_SupportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_SupportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_supports_dynamic_properties",
      32,
      this->the_TAO_SupportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::SupportAttributes::supports_proxy_offers (
    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_SupportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_SupportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_supports_proxy_offers",
      26,
      this->the_TAO_SupportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CosTrading::TypeRepository_ptr CosTrading::SupportAttributes::type_repos (
    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_SupportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_SupportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CosTrading::TypeRepository>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_type_repos",
      15,
      this->the_TAO_SupportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::SupportAttributes::SupportAttributes (void)
 : the_TAO_SupportAttributes_Proxy_Broker_ (0)
{
  this->CosTrading_SupportAttributes_setup_collocation ();
}

void
CosTrading::SupportAttributes::CosTrading_SupportAttributes_setup_collocation ()
{
  if (::CosTrading__TAO_SupportAttributes_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_SupportAttributes_Proxy_Broker_ =
        ::CosTrading__TAO_SupportAttributes_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::SupportAttributes::~SupportAttributes (void)
{}

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

CosTrading::SupportAttributes_ptr
CosTrading::SupportAttributes::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<SupportAttributes>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/SupportAttributes:1.0",
        CosTrading__TAO_SupportAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::SupportAttributes_ptr
CosTrading::SupportAttributes::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<SupportAttributes>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/SupportAttributes:1.0",
        CosTrading__TAO_SupportAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::SupportAttributes_ptr
CosTrading::SupportAttributes::_duplicate (SupportAttributes_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::SupportAttributes::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_SupportAttributes[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f53), 
  ACE_NTOHL (0x7570706f), 
  ACE_NTOHL (0x72744174), 
  ACE_NTOHL (0x74726962), 
  ACE_NTOHL (0x75746573), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/SupportAttributes:1.0
    18,
  ACE_NTOHL (0x53757070), 
  ACE_NTOHL (0x6f727441), 
  ACE_NTOHL (0x74747269), 
  ACE_NTOHL (0x62757465), 
  ACE_NTOHL (0x73000000),  // name = SupportAttributes
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_SupportAttributes (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_SupportAttributes),
    (char *) &_oc_CosTrading_SupportAttributes,
    0,
    sizeof (CosTrading::SupportAttributes)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_SupportAttributes =
    &_tc_TAO_tc_CosTrading_SupportAttributes;
}

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

// Traits specializations for CosTrading::ImportAttributes.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::ImportAttributes_ptr
TAO::Objref_Traits<CosTrading::ImportAttributes>::tao_duplicate (
    CosTrading::ImportAttributes_ptr p
  )
{
  return CosTrading::ImportAttributes::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::ImportAttributes>::tao_release (
    CosTrading::ImportAttributes_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::ImportAttributes_ptr
TAO::Objref_Traits<CosTrading::ImportAttributes>::tao_nil (void)
{
  return CosTrading::ImportAttributes::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::ImportAttributes>::tao_marshal (
    CosTrading::ImportAttributes_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

CORBA::ULong CosTrading::ImportAttributes::def_search_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_def_search_card",
      20,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::max_search_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_search_card",
      20,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::def_match_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_def_match_card",
      19,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::max_match_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_match_card",
      19,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::def_return_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_def_return_card",
      20,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::max_return_card (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_return_card",
      20,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::max_list (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_list",
      13,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::def_hop_count (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_def_hop_count",
      18,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::ImportAttributes::max_hop_count (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_hop_count",
      18,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::FollowOption CosTrading::ImportAttributes::def_follow_policy (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_def_follow_policy",
      22,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::FollowOption CosTrading::ImportAttributes::max_follow_policy (
    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_ImportAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_ImportAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_follow_policy",
      22,
      this->the_TAO_ImportAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::ImportAttributes::ImportAttributes (void)
 : the_TAO_ImportAttributes_Proxy_Broker_ (0)
{
  this->CosTrading_ImportAttributes_setup_collocation ();
}

void
CosTrading::ImportAttributes::CosTrading_ImportAttributes_setup_collocation ()
{
  if (::CosTrading__TAO_ImportAttributes_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_ImportAttributes_Proxy_Broker_ =
        ::CosTrading__TAO_ImportAttributes_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::ImportAttributes::~ImportAttributes (void)
{}

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

CosTrading::ImportAttributes_ptr
CosTrading::ImportAttributes::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ImportAttributes>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/ImportAttributes:1.0",
        CosTrading__TAO_ImportAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::ImportAttributes_ptr
CosTrading::ImportAttributes::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ImportAttributes>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/ImportAttributes:1.0",
        CosTrading__TAO_ImportAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::ImportAttributes_ptr
CosTrading::ImportAttributes::_duplicate (ImportAttributes_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::ImportAttributes::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_ImportAttributes[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  44,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f49), 
  ACE_NTOHL (0x6d706f72), 
  ACE_NTOHL (0x74417474), 
  ACE_NTOHL (0x72696275), 
  ACE_NTOHL (0x7465733a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/ImportAttributes:1.0
    17,
  ACE_NTOHL (0x496d706f), 
  ACE_NTOHL (0x72744174), 
  ACE_NTOHL (0x74726962), 
  ACE_NTOHL (0x75746573), 
  ACE_NTOHL (0x0),  // name = ImportAttributes
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_ImportAttributes (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_ImportAttributes),
    (char *) &_oc_CosTrading_ImportAttributes,
    0,
    sizeof (CosTrading::ImportAttributes)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_ImportAttributes =
    &_tc_TAO_tc_CosTrading_ImportAttributes;
}

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

// Traits specializations for CosTrading::LinkAttributes.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::LinkAttributes_ptr
TAO::Objref_Traits<CosTrading::LinkAttributes>::tao_duplicate (
    CosTrading::LinkAttributes_ptr p
  )
{
  return CosTrading::LinkAttributes::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::LinkAttributes>::tao_release (
    CosTrading::LinkAttributes_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::LinkAttributes_ptr
TAO::Objref_Traits<CosTrading::LinkAttributes>::tao_nil (void)
{
  return CosTrading::LinkAttributes::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::LinkAttributes>::tao_marshal (
    CosTrading::LinkAttributes_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

::CosTrading::FollowOption CosTrading::LinkAttributes::max_link_follow_policy (
    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_LinkAttributes_Proxy_Broker_ == 0)
    {
      CosTrading_LinkAttributes_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_max_link_follow_policy",
      27,
      this->the_TAO_LinkAttributes_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::LinkAttributes::LinkAttributes (void)
 : the_TAO_LinkAttributes_Proxy_Broker_ (0)
{
  this->CosTrading_LinkAttributes_setup_collocation ();
}

void
CosTrading::LinkAttributes::CosTrading_LinkAttributes_setup_collocation ()
{
  if (::CosTrading__TAO_LinkAttributes_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_LinkAttributes_Proxy_Broker_ =
        ::CosTrading__TAO_LinkAttributes_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::LinkAttributes::~LinkAttributes (void)
{}

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

CosTrading::LinkAttributes_ptr
CosTrading::LinkAttributes::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<LinkAttributes>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/LinkAttributes:1.0",
        CosTrading__TAO_LinkAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::LinkAttributes_ptr
CosTrading::LinkAttributes::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<LinkAttributes>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/LinkAttributes:1.0",
        CosTrading__TAO_LinkAttributes_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::LinkAttributes_ptr
CosTrading::LinkAttributes::_duplicate (LinkAttributes_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::LinkAttributes::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_LinkAttributes[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b41), 
  ACE_NTOHL (0x74747269), 
  ACE_NTOHL (0x62757465), 
  ACE_NTOHL (0x733a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/LinkAttributes:1.0
    15,
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x41747472), 
  ACE_NTOHL (0x69627574), 
  ACE_NTOHL (0x65730000),  // name = LinkAttributes
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_LinkAttributes (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_LinkAttributes),
    (char *) &_oc_CosTrading_LinkAttributes,
    0,
    sizeof (CosTrading::LinkAttributes)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_LinkAttributes =
    &_tc_TAO_tc_CosTrading_LinkAttributes;
}

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

// Traits specializations for CosTrading::Lookup.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Lookup_ptr
TAO::Objref_Traits<CosTrading::Lookup>::tao_duplicate (
    CosTrading::Lookup_ptr p
  )
{
  return CosTrading::Lookup::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::Lookup>::tao_release (
    CosTrading::Lookup_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Lookup_ptr
TAO::Objref_Traits<CosTrading::Lookup>::tao_nil (void)
{
  return CosTrading::Lookup::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::Lookup>::tao_marshal (
    CosTrading::Lookup_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosTrading__TAO_Lookup_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_CosTrading_Lookup_Preference[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f5072), 
  ACE_NTOHL (0x65666572), 
  ACE_NTOHL (0x656e6365), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Lookup/Preference:1.0
    11,
  ACE_NTOHL (0x50726566), 
  ACE_NTOHL (0x6572656e), 
  ACE_NTOHL (0x63650000),  // name = Preference
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_Preference (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_Lookup_Preference),
    (char *) &_oc_CosTrading_Lookup_Preference,
    0,
    sizeof (CosTrading::Lookup::Preference)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_Preference =
  &_tc_TAO_tc_CosTrading_Lookup_Preference;

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

static const CORBA::Long _oc_CosTrading_Lookup_HowManyProps[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f486f), 
  ACE_NTOHL (0x774d616e), 
  ACE_NTOHL (0x7950726f), 
  ACE_NTOHL (0x70733a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Lookup/HowManyProps:1.0
  13,
  ACE_NTOHL (0x486f774d), 
  ACE_NTOHL (0x616e7950), 
  ACE_NTOHL (0x726f7073), 
  ACE_NTOHL (0x0),  // name = HowManyProps
  3, // member count
  5,
  ACE_NTOHL (0x6e6f6e65), 
  ACE_NTOHL (0x0),  // name = none
  5,
  ACE_NTOHL (0x736f6d65), 
  ACE_NTOHL (0x0),  // name = some
  4,
  ACE_NTOHL (0x616c6c00),  // name = all
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_HowManyProps (
    CORBA::tk_enum,
    sizeof (_oc_CosTrading_Lookup_HowManyProps),
    (char *) &_oc_CosTrading_Lookup_HowManyProps,
    0,
    sizeof (CosTrading::Lookup::HowManyProps)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_HowManyProps =
  &_tc_TAO_tc_CosTrading_Lookup_HowManyProps;

// TAO_IDL - Generated from
// be/be_visitor_union/union_cs.cpp:91

CosTrading::Lookup::SpecifiedProps::SpecifiedProps (void)
{
  ACE_OS::memset (&this->disc_, 0, sizeof (this->disc_));
  ACE_OS::memset (&this->u_, 0, sizeof (this->u_));
  this->disc_ = CosTrading::Lookup::some;
}

CosTrading::Lookup::SpecifiedProps::SpecifiedProps (const ::CosTrading::Lookup::SpecifiedProps &u)
{
  this->disc_ = u.disc_;
  switch (this->disc_)
  {
    case CosTrading::Lookup::some:
    {
      if (u.u_.prop_names_ == 0)
        {
          this->u_.prop_names_ = 0;
        }
      else
        {
          ACE_NEW (
              this->u_.prop_names_,
              CosTrading::PropertyNameSeq (*u.u_.prop_names_)
            );
        }
    }
    break;
    default:
    break;
  }
}

CosTrading::Lookup::SpecifiedProps::~SpecifiedProps (void)
{
  // Finalize.
  this->_reset (this->disc_, 1);
}

void CosTrading::Lookup::SpecifiedProps::_tao_any_destructor (void *_tao_void_pointer)
{
  SpecifiedProps *tmp =
    static_cast<SpecifiedProps *> (_tao_void_pointer);
  delete tmp;
}

CosTrading::Lookup::SpecifiedProps &
CosTrading::Lookup::SpecifiedProps::operator= (const ::CosTrading::Lookup::SpecifiedProps &u)
{
  if (&u == this)
    {
      return *this;
    }
  
  this->_reset (u.disc_, 0);
  this->disc_ = u.disc_;
  
  switch (this->disc_)
  {
    case CosTrading::Lookup::some:
    {
      if (u.u_.prop_names_ == 0)
        {
          this->u_.prop_names_ = 0;
        }
      else
        {
          ACE_NEW_RETURN (
              this->u_.prop_names_,
              CosTrading::PropertyNameSeq (*u.u_.prop_names_),
              *this
            );
        }
    }
    break;
    default:
    break;
  }
  
  return *this;
}

// Reset method to reset old values of a union.
void CosTrading::Lookup::SpecifiedProps::_reset (CosTrading::Lookup::HowManyProps, CORBA::Boolean /*finalize*/)
{
  switch (this->disc_)
  {
    
    case CosTrading::Lookup::some:
      delete this->u_.prop_names_;
      this->u_.prop_names_ = 0;
      break;
    default:
    break;
  }
}

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

static const CORBA::Long _oc_CosTrading_Lookup_SpecifiedProps[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f5370), 
  ACE_NTOHL (0x65636966), 
  ACE_NTOHL (0x69656450), 
  ACE_NTOHL (0x726f7073), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Lookup/SpecifiedProps:1.0
  15,
  ACE_NTOHL (0x53706563), 
  ACE_NTOHL (0x69666965), 
  ACE_NTOHL (0x6450726f), 
  ACE_NTOHL (0x70730000),  // name = SpecifiedProps
    CORBA::tk_enum, // typecode kind
  112, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    47,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x6f6f6b75), 
    ACE_NTOHL (0x702f486f), 
    ACE_NTOHL (0x774d616e), 
    ACE_NTOHL (0x7950726f), 
    ACE_NTOHL (0x70733a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Lookup/HowManyProps:1.0
    13,
    ACE_NTOHL (0x486f774d), 
    ACE_NTOHL (0x616e7950), 
    ACE_NTOHL (0x726f7073), 
    ACE_NTOHL (0x0),  // name = HowManyProps
    3, // member count
    5,
    ACE_NTOHL (0x6e6f6e65), 
    ACE_NTOHL (0x0),  // name = none
    5,
    ACE_NTOHL (0x736f6d65), 
    ACE_NTOHL (0x0),  // name = some
    4,
    ACE_NTOHL (0x616c6c00),  // name = all
    
-1, // default used index
  1, // member count
    0x00000001, // union case label (evaluated value)
  11,
  ACE_NTOHL (0x70726f70), 
  ACE_NTOHL (0x5f6e616d), 
  ACE_NTOHL (0x65730000),  // name = prop_names
    CORBA::tk_alias, // typecode kind for typedefs
  236, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d6553), 
    ACE_NTOHL (0x65713a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertyNameSeq:1.0
        16,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x53657100),  // name = PropertyNameSeq
        CORBA::tk_sequence, // typecode kind
    156, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_alias, // typecode kind for typedefs
      140, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        40,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x7274794e), 
        ACE_NTOHL (0x616d653a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                13,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x4e616d65), 
        ACE_NTOHL (0x0),  // name = PropertyName
                CORBA::tk_alias, // typecode kind for typedefs
        64, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          35,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f49), 
          ACE_NTOHL (0x73747269), 
          ACE_NTOHL (0x6e673a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_Lookup_SpecifiedProps (
    CORBA::tk_union,
    sizeof (_oc_CosTrading_Lookup_SpecifiedProps),
    (char *) &_oc_CosTrading_Lookup_SpecifiedProps,
    0,
    sizeof (CosTrading::Lookup::SpecifiedProps)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_SpecifiedProps =
  &_tc_TAO_tc_CosTrading_Lookup_SpecifiedProps;

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

CosTrading::Lookup::IllegalPreference::IllegalPreference (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/IllegalPreference:1.0",
        "IllegalPreference"
      )
{
}

CosTrading::Lookup::IllegalPreference::~IllegalPreference (void)
{
}

CosTrading::Lookup::IllegalPreference::IllegalPreference (const ::CosTrading::Lookup::IllegalPreference &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->pref = CORBA::string_dup (_tao_excp.pref.in ());
}

CosTrading::Lookup::IllegalPreference&
CosTrading::Lookup::IllegalPreference::operator= (const ::CosTrading::Lookup::IllegalPreference &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->pref = CORBA::string_dup (_tao_excp.pref.in ());
  return *this;
}

void CosTrading::Lookup::IllegalPreference::_tao_any_destructor (void *_tao_void_pointer)
{
  IllegalPreference *_tao_tmp_pointer =
    static_cast<IllegalPreference*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Lookup::IllegalPreference::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Lookup::IllegalPreference, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Lookup::IllegalPreference::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Lookup::IllegalPreference (*this),
      0
    );
  return result;
}

void CosTrading::Lookup::IllegalPreference::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Lookup::IllegalPreference::_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

CosTrading::Lookup::IllegalPreference::IllegalPreference (
    const char * _tao_pref
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/IllegalPreference:1.0",
        "IllegalPreference"
      )
{
  this->pref = CORBA::string_dup (_tao_pref);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Lookup::IllegalPreference::_type (void) const
{
  return ::CosTrading::Lookup::_tc_IllegalPreference;
}

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

static const CORBA::Long _oc_CosTrading_Lookup_IllegalPreference[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  52,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f496c), 
  ACE_NTOHL (0x6c656761), 
  ACE_NTOHL (0x6c507265), 
  ACE_NTOHL (0x66657265), 
  ACE_NTOHL (0x6e63653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Lookup/IllegalPreference:1.0
    18,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c50), 
  ACE_NTOHL (0x72656665), 
  ACE_NTOHL (0x72656e63), 
  ACE_NTOHL (0x65000000),  // name = IllegalPreference
  1, // member count
    5,
  ACE_NTOHL (0x70726566), 
  ACE_NTOHL (0x0),  // name = pref
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    45,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x6f6f6b75), 
    ACE_NTOHL (0x702f5072), 
    ACE_NTOHL (0x65666572), 
    ACE_NTOHL (0x656e6365), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Lookup/Preference:1.0
        11,
    ACE_NTOHL (0x50726566), 
    ACE_NTOHL (0x6572656e), 
    ACE_NTOHL (0x63650000),  // name = Preference
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_IllegalPreference (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Lookup_IllegalPreference),
    (char *) &_oc_CosTrading_Lookup_IllegalPreference,
    0,
    sizeof (CosTrading::Lookup::IllegalPreference)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_IllegalPreference =
  &_tc_TAO_tc_CosTrading_Lookup_IllegalPreference;

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

CosTrading::Lookup::IllegalPolicyName::IllegalPolicyName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/IllegalPolicyName:1.0",
        "IllegalPolicyName"
      )
{
}

CosTrading::Lookup::IllegalPolicyName::~IllegalPolicyName (void)
{
}

CosTrading::Lookup::IllegalPolicyName::IllegalPolicyName (const ::CosTrading::Lookup::IllegalPolicyName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Lookup::IllegalPolicyName&
CosTrading::Lookup::IllegalPolicyName::operator= (const ::CosTrading::Lookup::IllegalPolicyName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Lookup::IllegalPolicyName::_tao_any_destructor (void *_tao_void_pointer)
{
  IllegalPolicyName *_tao_tmp_pointer =
    static_cast<IllegalPolicyName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Lookup::IllegalPolicyName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Lookup::IllegalPolicyName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Lookup::IllegalPolicyName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Lookup::IllegalPolicyName (*this),
      0
    );
  return result;
}

void CosTrading::Lookup::IllegalPolicyName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Lookup::IllegalPolicyName::_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

CosTrading::Lookup::IllegalPolicyName::IllegalPolicyName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/IllegalPolicyName:1.0",
        "IllegalPolicyName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Lookup::IllegalPolicyName::_type (void) const
{
  return ::CosTrading::Lookup::_tc_IllegalPolicyName;
}

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

static const CORBA::Long _oc_CosTrading_Lookup_IllegalPolicyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  52,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f496c), 
  ACE_NTOHL (0x6c656761), 
  ACE_NTOHL (0x6c506f6c), 
  ACE_NTOHL (0x6963794e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Lookup/IllegalPolicyName:1.0
    18,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c50), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x794e616d), 
  ACE_NTOHL (0x65000000),  // name = IllegalPolicyName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  72, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x794e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
        11,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63794e61), 
    ACE_NTOHL (0x6d650000),  // name = PolicyName
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_IllegalPolicyName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Lookup_IllegalPolicyName),
    (char *) &_oc_CosTrading_Lookup_IllegalPolicyName,
    0,
    sizeof (CosTrading::Lookup::IllegalPolicyName)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_IllegalPolicyName =
  &_tc_TAO_tc_CosTrading_Lookup_IllegalPolicyName;

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

CosTrading::Lookup::PolicyTypeMismatch::PolicyTypeMismatch (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/PolicyTypeMismatch:1.0",
        "PolicyTypeMismatch"
      )
{
}

CosTrading::Lookup::PolicyTypeMismatch::~PolicyTypeMismatch (void)
{
}

CosTrading::Lookup::PolicyTypeMismatch::PolicyTypeMismatch (const ::CosTrading::Lookup::PolicyTypeMismatch &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->the_policy = _tao_excp.the_policy;
}

CosTrading::Lookup::PolicyTypeMismatch&
CosTrading::Lookup::PolicyTypeMismatch::operator= (const ::CosTrading::Lookup::PolicyTypeMismatch &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->the_policy = _tao_excp.the_policy;
  return *this;
}

void CosTrading::Lookup::PolicyTypeMismatch::_tao_any_destructor (void *_tao_void_pointer)
{
  PolicyTypeMismatch *_tao_tmp_pointer =
    static_cast<PolicyTypeMismatch*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Lookup::PolicyTypeMismatch::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Lookup::PolicyTypeMismatch, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Lookup::PolicyTypeMismatch::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Lookup::PolicyTypeMismatch (*this),
      0
    );
  return result;
}

void CosTrading::Lookup::PolicyTypeMismatch::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Lookup::PolicyTypeMismatch::_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

CosTrading::Lookup::PolicyTypeMismatch::PolicyTypeMismatch (
    const CosTrading::Policy & _tao_the_policy
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/PolicyTypeMismatch:1.0",
        "PolicyTypeMismatch"
      )
{
  this->the_policy = _tao_the_policy;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Lookup::PolicyTypeMismatch::_type (void) const
{
  return ::CosTrading::Lookup::_tc_PolicyTypeMismatch;
}

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

static const CORBA::Long _oc_CosTrading_Lookup_PolicyTypeMismatch[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f506f), 
  ACE_NTOHL (0x6c696379), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x4d69736d), 
  ACE_NTOHL (0x61746368), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Lookup/PolicyTypeMismatch:1.0
    19,
  ACE_NTOHL (0x506f6c69), 
  ACE_NTOHL (0x63795479), 
  ACE_NTOHL (0x70654d69), 
  ACE_NTOHL (0x736d6174), 
  ACE_NTOHL (0x63680000),  // name = PolicyTypeMismatch
  1, // member count
    11,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x706f6c69), 
  ACE_NTOHL (0x63790000),  // name = the_policy
    CORBA::tk_struct, // typecode kind
  240, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x793a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Policy:1.0
        7,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63790000),  // name = Policy
    2, // member count
        5,
    ACE_NTOHL (0x6e616d65), 
    ACE_NTOHL (0x0),  // name = name
        CORBA::tk_alias, // typecode kind for typedefs
    72, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      38,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x794e616d), 
      ACE_NTOHL (0x653a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
            11,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63794e61), 
      ACE_NTOHL (0x6d650000),  // name = PolicyName
            CORBA::tk_string, 
      0U, // string length

    6,
    ACE_NTOHL (0x76616c75), 
    ACE_NTOHL (0x65000000),  // name = value
        CORBA::tk_alias, // typecode kind for typedefs
    68, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x7956616c), 
      ACE_NTOHL (0x75653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
            12,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63795661), 
      ACE_NTOHL (0x6c756500),  // name = PolicyValue
            CORBA::tk_any,



};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_PolicyTypeMismatch (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Lookup_PolicyTypeMismatch),
    (char *) &_oc_CosTrading_Lookup_PolicyTypeMismatch,
    0,
    sizeof (CosTrading::Lookup::PolicyTypeMismatch)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_PolicyTypeMismatch =
  &_tc_TAO_tc_CosTrading_Lookup_PolicyTypeMismatch;

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

CosTrading::Lookup::InvalidPolicyValue::InvalidPolicyValue (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/InvalidPolicyValue:1.0",
        "InvalidPolicyValue"
      )
{
}

CosTrading::Lookup::InvalidPolicyValue::~InvalidPolicyValue (void)
{
}

CosTrading::Lookup::InvalidPolicyValue::InvalidPolicyValue (const ::CosTrading::Lookup::InvalidPolicyValue &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->the_policy = _tao_excp.the_policy;
}

CosTrading::Lookup::InvalidPolicyValue&
CosTrading::Lookup::InvalidPolicyValue::operator= (const ::CosTrading::Lookup::InvalidPolicyValue &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->the_policy = _tao_excp.the_policy;
  return *this;
}

void CosTrading::Lookup::InvalidPolicyValue::_tao_any_destructor (void *_tao_void_pointer)
{
  InvalidPolicyValue *_tao_tmp_pointer =
    static_cast<InvalidPolicyValue*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Lookup::InvalidPolicyValue::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Lookup::InvalidPolicyValue, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Lookup::InvalidPolicyValue::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Lookup::InvalidPolicyValue (*this),
      0
    );
  return result;
}

void CosTrading::Lookup::InvalidPolicyValue::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Lookup::InvalidPolicyValue::_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

CosTrading::Lookup::InvalidPolicyValue::InvalidPolicyValue (
    const CosTrading::Policy & _tao_the_policy
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Lookup/InvalidPolicyValue:1.0",
        "InvalidPolicyValue"
      )
{
  this->the_policy = _tao_the_policy;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Lookup::InvalidPolicyValue::_type (void) const
{
  return ::CosTrading::Lookup::_tc_InvalidPolicyValue;
}

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

static const CORBA::Long _oc_CosTrading_Lookup_InvalidPolicyValue[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x702f496e), 
  ACE_NTOHL (0x76616c69), 
  ACE_NTOHL (0x64506f6c), 
  ACE_NTOHL (0x69637956), 
  ACE_NTOHL (0x616c7565), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Lookup/InvalidPolicyValue:1.0
    19,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c696450), 
  ACE_NTOHL (0x6f6c6963), 
  ACE_NTOHL (0x7956616c), 
  ACE_NTOHL (0x75650000),  // name = InvalidPolicyValue
  1, // member count
    11,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x706f6c69), 
  ACE_NTOHL (0x63790000),  // name = the_policy
    CORBA::tk_struct, // typecode kind
  240, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x793a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Policy:1.0
        7,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63790000),  // name = Policy
    2, // member count
        5,
    ACE_NTOHL (0x6e616d65), 
    ACE_NTOHL (0x0),  // name = name
        CORBA::tk_alias, // typecode kind for typedefs
    72, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      38,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x794e616d), 
      ACE_NTOHL (0x653a312e), 
      ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
            11,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63794e61), 
      ACE_NTOHL (0x6d650000),  // name = PolicyName
            CORBA::tk_string, 
      0U, // string length

    6,
    ACE_NTOHL (0x76616c75), 
    ACE_NTOHL (0x65000000),  // name = value
        CORBA::tk_alias, // typecode kind for typedefs
    68, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f50), 
      ACE_NTOHL (0x6f6c6963), 
      ACE_NTOHL (0x7956616c), 
      ACE_NTOHL (0x75653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
            12,
      ACE_NTOHL (0x506f6c69), 
      ACE_NTOHL (0x63795661), 
      ACE_NTOHL (0x6c756500),  // name = PolicyValue
            CORBA::tk_any,



};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup_InvalidPolicyValue (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Lookup_InvalidPolicyValue),
    (char *) &_oc_CosTrading_Lookup_InvalidPolicyValue,
    0,
    sizeof (CosTrading::Lookup::InvalidPolicyValue)
  );

::CORBA::TypeCode_ptr CosTrading::Lookup::_tc_InvalidPolicyValue =
  &_tc_TAO_tc_CosTrading_Lookup_InvalidPolicyValue;

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

void CosTrading::Lookup::query (
    const char * type,
    const char * constr,
    const char * pref,
    const ::CosTrading::PolicySeq & policies,
    const ::CosTrading::Lookup::SpecifiedProps & desired_props,
    ::CORBA::ULong how_many,
    ::CosTrading::OfferSeq_out offers,
    ::CosTrading::OfferIterator_out offer_itr,
    ::CosTrading::PolicyNameSeq_out limits_applied
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTrading::IllegalConstraint,
    ::CosTrading::Lookup::IllegalPreference,
    ::CosTrading::Lookup::IllegalPolicyName,
    ::CosTrading::Lookup::PolicyTypeMismatch,
    ::CosTrading::Lookup::InvalidPolicyValue,
    ::CosTrading::IllegalPropertyName,
    ::CosTrading::DuplicatePropertyName,
    ::CosTrading::DuplicatePolicyName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Lookup_Proxy_Broker_ == 0)
    {
      CosTrading_Lookup_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_type (type);
  TAO::Arg_Traits< ::CosTrading::Constraint>::in_arg_val _tao_constr (constr);
  TAO::Arg_Traits< ::CosTrading::Lookup::Preference>::in_arg_val _tao_pref (pref);
  TAO::Arg_Traits< ::CosTrading::PolicySeq>::in_arg_val _tao_policies (policies);
  TAO::Arg_Traits< ::CosTrading::Lookup::SpecifiedProps>::in_arg_val _tao_desired_props (desired_props);
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_how_many (how_many);
  TAO::Arg_Traits< ::CosTrading::OfferSeq>::out_arg_val _tao_offers (offers);
  TAO::Arg_Traits< ::CosTrading::OfferIterator>::out_arg_val _tao_offer_itr (offer_itr);
  TAO::Arg_Traits< ::CosTrading::PolicyNameSeq>::out_arg_val _tao_limits_applied (limits_applied);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type,
      &_tao_constr,
      &_tao_pref,
      &_tao_policies,
      &_tao_desired_props,
      &_tao_how_many,
      &_tao_offers,
      &_tao_offer_itr,
      &_tao_limits_applied
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Lookup_query_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        CosTrading::IllegalServiceType::_alloc,
        CosTrading::_tc_IllegalServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        CosTrading::UnknownServiceType::_alloc,
        CosTrading::_tc_UnknownServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalConstraint:1.0",
        CosTrading::IllegalConstraint::_alloc,
        CosTrading::_tc_IllegalConstraint
      },
      
      {
        "IDL:omg.org/CosTrading/Lookup/IllegalPreference:1.0",
        CosTrading::Lookup::IllegalPreference::_alloc,
        CosTrading::Lookup::_tc_IllegalPreference
      },
      
      {
        "IDL:omg.org/CosTrading/Lookup/IllegalPolicyName:1.0",
        CosTrading::Lookup::IllegalPolicyName::_alloc,
        CosTrading::Lookup::_tc_IllegalPolicyName
      },
      
      {
        "IDL:omg.org/CosTrading/Lookup/PolicyTypeMismatch:1.0",
        CosTrading::Lookup::PolicyTypeMismatch::_alloc,
        CosTrading::Lookup::_tc_PolicyTypeMismatch
      },
      
      {
        "IDL:omg.org/CosTrading/Lookup/InvalidPolicyValue:1.0",
        CosTrading::Lookup::InvalidPolicyValue::_alloc,
        CosTrading::Lookup::_tc_InvalidPolicyValue
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalPropertyName:1.0",
        CosTrading::IllegalPropertyName::_alloc,
        CosTrading::_tc_IllegalPropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePropertyName:1.0",
        CosTrading::DuplicatePropertyName::_alloc,
        CosTrading::_tc_DuplicatePropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePolicyName:1.0",
        CosTrading::DuplicatePolicyName::_alloc,
        CosTrading::_tc_DuplicatePolicyName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      10,
      "query",
      5,
      this->the_TAO_Lookup_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Lookup_query_exceptiondata,
      10
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

CosTrading::Lookup::Lookup (void)
 : the_TAO_Lookup_Proxy_Broker_ (0)
{
  this->CosTrading_Lookup_setup_collocation ();
}

void
CosTrading::Lookup::CosTrading_Lookup_setup_collocation ()
{
  if (::CosTrading__TAO_Lookup_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_Lookup_Proxy_Broker_ =
        ::CosTrading__TAO_Lookup_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosTrading_TraderComponents_setup_collocation ();
  this->CosTrading_SupportAttributes_setup_collocation ();
  this->CosTrading_ImportAttributes_setup_collocation ();
}

CosTrading::Lookup::~Lookup (void)
{}

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

CosTrading::Lookup_ptr
CosTrading::Lookup::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Lookup>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Lookup:1.0",
        CosTrading__TAO_Lookup_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Lookup_ptr
CosTrading::Lookup::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Lookup>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Lookup:1.0",
        CosTrading__TAO_Lookup_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Lookup_ptr
CosTrading::Lookup::_duplicate (Lookup_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::Lookup::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_Lookup[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  34,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x6f6f6b75), 
  ACE_NTOHL (0x703a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Lookup:1.0
    7,
  ACE_NTOHL (0x4c6f6f6b), 
  ACE_NTOHL (0x75700000),  // name = Lookup
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Lookup (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_Lookup),
    (char *) &_oc_CosTrading_Lookup,
    0,
    sizeof (CosTrading::Lookup)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Lookup =
    &_tc_TAO_tc_CosTrading_Lookup;
}

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

// Traits specializations for CosTrading::Register.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Register_ptr
TAO::Objref_Traits<CosTrading::Register>::tao_duplicate (
    CosTrading::Register_ptr p
  )
{
  return CosTrading::Register::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::Register>::tao_release (
    CosTrading::Register_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Register_ptr
TAO::Objref_Traits<CosTrading::Register>::tao_nil (void)
{
  return CosTrading::Register::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::Register>::tao_marshal (
    CosTrading::Register_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosTrading__TAO_Register_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_CosTrading_Register_OfferInfo[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496e66), 
  ACE_NTOHL (0x6f3a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Register/OfferInfo:1.0
    10,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496e66), 
  ACE_NTOHL (0x6f000000),  // name = OfferInfo
  3, // member count
    10,
  ACE_NTOHL (0x72656665), 
  ACE_NTOHL (0x72656e63), 
  ACE_NTOHL (0x65000000),  // name = reference
    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
    
  5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  11,
  ACE_NTOHL (0x70726f70), 
  ACE_NTOHL (0x65727469), 
  ACE_NTOHL (0x65730000),  // name = properties
    CORBA::tk_alias, // typecode kind for typedefs
  408, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x72747953), 
    ACE_NTOHL (0x65713a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertySeq:1.0
        12,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x53657100),  // name = PropertySeq
        CORBA::tk_sequence, // typecode kind
    336, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      320, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        36,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x7274793a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
                9,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x0),  // name = Property
        2, // member count
                5,
        ACE_NTOHL (0x6e616d65), 
        ACE_NTOHL (0x0),  // name = name
                CORBA::tk_alias, // typecode kind for typedefs
        140, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          40,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x7274794e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                    13,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = PropertyName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                        8,
            ACE_NTOHL (0x49737472), 
            ACE_NTOHL (0x696e6700),  // name = Istring
                        CORBA::tk_string, 
            0U, // string length


        6,
        ACE_NTOHL (0x76616c75), 
        ACE_NTOHL (0x65000000),  // name = value
                CORBA::tk_alias, // typecode kind for typedefs
        76, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          41,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x72747956), 
          ACE_NTOHL (0x616c7565), 
          ACE_NTOHL (0x3a312e30), 
          ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
                    14,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x56616c75), 
          ACE_NTOHL (0x65000000),  // name = PropertyValue
                    CORBA::tk_any,



      0U,


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_OfferInfo (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Register_OfferInfo),
    (char *) &_oc_CosTrading_Register_OfferInfo,
    0,
    sizeof (CosTrading::Register::OfferInfo)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_OfferInfo =
  &_tc_TAO_tc_CosTrading_Register_OfferInfo;

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

void 
CosTrading::Register::OfferInfo::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  OfferInfo *_tao_tmp_pointer =
    static_cast<OfferInfo *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CosTrading::Register::InvalidObjectRef::InvalidObjectRef (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/InvalidObjectRef:1.0",
        "InvalidObjectRef"
      )
{
}

CosTrading::Register::InvalidObjectRef::~InvalidObjectRef (void)
{
}

CosTrading::Register::InvalidObjectRef::InvalidObjectRef (const ::CosTrading::Register::InvalidObjectRef &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->ref = CORBA::Object::_duplicate (_tao_excp.ref.in ());
}

CosTrading::Register::InvalidObjectRef&
CosTrading::Register::InvalidObjectRef::operator= (const ::CosTrading::Register::InvalidObjectRef &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->ref = CORBA::Object::_duplicate (_tao_excp.ref.in ());
  return *this;
}

void CosTrading::Register::InvalidObjectRef::_tao_any_destructor (void *_tao_void_pointer)
{
  InvalidObjectRef *_tao_tmp_pointer =
    static_cast<InvalidObjectRef*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::InvalidObjectRef::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::InvalidObjectRef, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::InvalidObjectRef::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::InvalidObjectRef (*this),
      0
    );
  return result;
}

void CosTrading::Register::InvalidObjectRef::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::InvalidObjectRef::_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

CosTrading::Register::InvalidObjectRef::InvalidObjectRef (
    const CORBA::Object_ptr  _tao_ref
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/InvalidObjectRef:1.0",
        "InvalidObjectRef"
      )
{
  this->ref = CORBA::Object::_duplicate (_tao_ref);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::InvalidObjectRef::_type (void) const
{
  return ::CosTrading::Register::_tc_InvalidObjectRef;
}

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

static const CORBA::Long _oc_CosTrading_Register_InvalidObjectRef[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c69644f), 
  ACE_NTOHL (0x626a6563), 
  ACE_NTOHL (0x74526566), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Register/InvalidObjectRef:1.0
    17,
  ACE_NTOHL (0x496e7661), 
  ACE_NTOHL (0x6c69644f), 
  ACE_NTOHL (0x626a6563), 
  ACE_NTOHL (0x74526566), 
  ACE_NTOHL (0x0),  // name = InvalidObjectRef
  1, // member count
    4,
  ACE_NTOHL (0x72656600),  // name = ref
    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_CosTrading_Register_InvalidObjectRef (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_InvalidObjectRef),
    (char *) &_oc_CosTrading_Register_InvalidObjectRef,
    0,
    sizeof (CosTrading::Register::InvalidObjectRef)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_InvalidObjectRef =
  &_tc_TAO_tc_CosTrading_Register_InvalidObjectRef;

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

CosTrading::Register::UnknownPropertyName::UnknownPropertyName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/UnknownPropertyName:1.0",
        "UnknownPropertyName"
      )
{
}

CosTrading::Register::UnknownPropertyName::~UnknownPropertyName (void)
{
}

CosTrading::Register::UnknownPropertyName::UnknownPropertyName (const ::CosTrading::Register::UnknownPropertyName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Register::UnknownPropertyName&
CosTrading::Register::UnknownPropertyName::operator= (const ::CosTrading::Register::UnknownPropertyName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Register::UnknownPropertyName::_tao_any_destructor (void *_tao_void_pointer)
{
  UnknownPropertyName *_tao_tmp_pointer =
    static_cast<UnknownPropertyName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::UnknownPropertyName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::UnknownPropertyName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::UnknownPropertyName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::UnknownPropertyName (*this),
      0
    );
  return result;
}

void CosTrading::Register::UnknownPropertyName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::UnknownPropertyName::_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

CosTrading::Register::UnknownPropertyName::UnknownPropertyName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/UnknownPropertyName:1.0",
        "UnknownPropertyName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::UnknownPropertyName::_type (void) const
{
  return ::CosTrading::Register::_tc_UnknownPropertyName;
}

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

static const CORBA::Long _oc_CosTrading_Register_UnknownPropertyName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  56,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274794e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Register/UnknownPropertyName:1.0
    20,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e50), 
  ACE_NTOHL (0x726f7065), 
  ACE_NTOHL (0x7274794e), 
  ACE_NTOHL (0x616d6500),  // name = UnknownPropertyName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_UnknownPropertyName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_UnknownPropertyName),
    (char *) &_oc_CosTrading_Register_UnknownPropertyName,
    0,
    sizeof (CosTrading::Register::UnknownPropertyName)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_UnknownPropertyName =
  &_tc_TAO_tc_CosTrading_Register_UnknownPropertyName;

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

CosTrading::Register::InterfaceTypeMismatch::InterfaceTypeMismatch (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/InterfaceTypeMismatch:1.0",
        "InterfaceTypeMismatch"
      )
{
}

CosTrading::Register::InterfaceTypeMismatch::~InterfaceTypeMismatch (void)
{
}

CosTrading::Register::InterfaceTypeMismatch::InterfaceTypeMismatch (const ::CosTrading::Register::InterfaceTypeMismatch &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->reference = CORBA::Object::_duplicate (_tao_excp.reference.in ());
}

CosTrading::Register::InterfaceTypeMismatch&
CosTrading::Register::InterfaceTypeMismatch::operator= (const ::CosTrading::Register::InterfaceTypeMismatch &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->reference = CORBA::Object::_duplicate (_tao_excp.reference.in ());
  return *this;
}

void CosTrading::Register::InterfaceTypeMismatch::_tao_any_destructor (void *_tao_void_pointer)
{
  InterfaceTypeMismatch *_tao_tmp_pointer =
    static_cast<InterfaceTypeMismatch*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::InterfaceTypeMismatch::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::InterfaceTypeMismatch, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::InterfaceTypeMismatch::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::InterfaceTypeMismatch (*this),
      0
    );
  return result;
}

void CosTrading::Register::InterfaceTypeMismatch::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::InterfaceTypeMismatch::_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

CosTrading::Register::InterfaceTypeMismatch::InterfaceTypeMismatch (
    const char * _tao_type,
    const CORBA::Object_ptr  _tao_reference
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/InterfaceTypeMismatch:1.0",
        "InterfaceTypeMismatch"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->reference = CORBA::Object::_duplicate (_tao_reference);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::InterfaceTypeMismatch::_type (void) const
{
  return ::CosTrading::Register::_tc_InterfaceTypeMismatch;
}

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

static const CORBA::Long _oc_CosTrading_Register_InterfaceTypeMismatch[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  58,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x496e7465), 
  ACE_NTOHL (0x72666163), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x654d6973), 
  ACE_NTOHL (0x6d617463), 
  ACE_NTOHL (0x683a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Register/InterfaceTypeMismatch:1.0
    22,
  ACE_NTOHL (0x496e7465), 
  ACE_NTOHL (0x72666163), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x654d6973), 
  ACE_NTOHL (0x6d617463), 
  ACE_NTOHL (0x68000000),  // name = InterfaceTypeMismatch
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  10,
  ACE_NTOHL (0x72656665), 
  ACE_NTOHL (0x72656e63), 
  ACE_NTOHL (0x65000000),  // name = reference
    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_CosTrading_Register_InterfaceTypeMismatch (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_InterfaceTypeMismatch),
    (char *) &_oc_CosTrading_Register_InterfaceTypeMismatch,
    0,
    sizeof (CosTrading::Register::InterfaceTypeMismatch)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_InterfaceTypeMismatch =
  &_tc_TAO_tc_CosTrading_Register_InterfaceTypeMismatch;

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

CosTrading::Register::ProxyOfferId::ProxyOfferId (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0",
        "ProxyOfferId"
      )
{
}

CosTrading::Register::ProxyOfferId::~ProxyOfferId (void)
{
}

CosTrading::Register::ProxyOfferId::ProxyOfferId (const ::CosTrading::Register::ProxyOfferId &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->id = CORBA::string_dup (_tao_excp.id.in ());
}

CosTrading::Register::ProxyOfferId&
CosTrading::Register::ProxyOfferId::operator= (const ::CosTrading::Register::ProxyOfferId &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->id = CORBA::string_dup (_tao_excp.id.in ());
  return *this;
}

void CosTrading::Register::ProxyOfferId::_tao_any_destructor (void *_tao_void_pointer)
{
  ProxyOfferId *_tao_tmp_pointer =
    static_cast<ProxyOfferId*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::ProxyOfferId::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::ProxyOfferId, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::ProxyOfferId::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::ProxyOfferId (*this),
      0
    );
  return result;
}

void CosTrading::Register::ProxyOfferId::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::ProxyOfferId::_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

CosTrading::Register::ProxyOfferId::ProxyOfferId (
    const char * _tao_id
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0",
        "ProxyOfferId"
      )
{
  this->id = CORBA::string_dup (_tao_id);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::ProxyOfferId::_type (void) const
{
  return ::CosTrading::Register::_tc_ProxyOfferId;
}

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

static const CORBA::Long _oc_CosTrading_Register_ProxyOfferId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x50726f78), 
  ACE_NTOHL (0x794f6666), 
  ACE_NTOHL (0x65724964), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0
    13,
  ACE_NTOHL (0x50726f78), 
  ACE_NTOHL (0x794f6666), 
  ACE_NTOHL (0x65724964), 
  ACE_NTOHL (0x0),  // name = ProxyOfferId
  1, // member count
    3,
  ACE_NTOHL (0x69640000),  // name = id
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4f), 
    ACE_NTOHL (0x66666572), 
    ACE_NTOHL (0x49643a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
        8,
    ACE_NTOHL (0x4f666665), 
    ACE_NTOHL (0x72496400),  // name = OfferId
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_ProxyOfferId (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_ProxyOfferId),
    (char *) &_oc_CosTrading_Register_ProxyOfferId,
    0,
    sizeof (CosTrading::Register::ProxyOfferId)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_ProxyOfferId =
  &_tc_TAO_tc_CosTrading_Register_ProxyOfferId;

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

CosTrading::Register::MandatoryProperty::MandatoryProperty (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/MandatoryProperty:1.0",
        "MandatoryProperty"
      )
{
}

CosTrading::Register::MandatoryProperty::~MandatoryProperty (void)
{
}

CosTrading::Register::MandatoryProperty::MandatoryProperty (const ::CosTrading::Register::MandatoryProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Register::MandatoryProperty&
CosTrading::Register::MandatoryProperty::operator= (const ::CosTrading::Register::MandatoryProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Register::MandatoryProperty::_tao_any_destructor (void *_tao_void_pointer)
{
  MandatoryProperty *_tao_tmp_pointer =
    static_cast<MandatoryProperty*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::MandatoryProperty::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::MandatoryProperty, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::MandatoryProperty::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::MandatoryProperty (*this),
      0
    );
  return result;
}

void CosTrading::Register::MandatoryProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::MandatoryProperty::_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

CosTrading::Register::MandatoryProperty::MandatoryProperty (
    const char * _tao_type,
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/MandatoryProperty:1.0",
        "MandatoryProperty"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::MandatoryProperty::_type (void) const
{
  return ::CosTrading::Register::_tc_MandatoryProperty;
}

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

static const CORBA::Long _oc_CosTrading_Register_MandatoryProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x4d616e64), 
  ACE_NTOHL (0x61746f72), 
  ACE_NTOHL (0x7950726f), 
  ACE_NTOHL (0x70657274), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Register/MandatoryProperty:1.0
    18,
  ACE_NTOHL (0x4d616e64), 
  ACE_NTOHL (0x61746f72), 
  ACE_NTOHL (0x7950726f), 
  ACE_NTOHL (0x70657274), 
  ACE_NTOHL (0x79000000),  // name = MandatoryProperty
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_MandatoryProperty (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_MandatoryProperty),
    (char *) &_oc_CosTrading_Register_MandatoryProperty,
    0,
    sizeof (CosTrading::Register::MandatoryProperty)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_MandatoryProperty =
  &_tc_TAO_tc_CosTrading_Register_MandatoryProperty;

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

CosTrading::Register::ReadonlyProperty::ReadonlyProperty (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/ReadonlyProperty:1.0",
        "ReadonlyProperty"
      )
{
}

CosTrading::Register::ReadonlyProperty::~ReadonlyProperty (void)
{
}

CosTrading::Register::ReadonlyProperty::ReadonlyProperty (const ::CosTrading::Register::ReadonlyProperty &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Register::ReadonlyProperty&
CosTrading::Register::ReadonlyProperty::operator= (const ::CosTrading::Register::ReadonlyProperty &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type = CORBA::string_dup (_tao_excp.type.in ());
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Register::ReadonlyProperty::_tao_any_destructor (void *_tao_void_pointer)
{
  ReadonlyProperty *_tao_tmp_pointer =
    static_cast<ReadonlyProperty*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::ReadonlyProperty::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::ReadonlyProperty, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::ReadonlyProperty::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::ReadonlyProperty (*this),
      0
    );
  return result;
}

void CosTrading::Register::ReadonlyProperty::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::ReadonlyProperty::_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

CosTrading::Register::ReadonlyProperty::ReadonlyProperty (
    const char * _tao_type,
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/ReadonlyProperty:1.0",
        "ReadonlyProperty"
      )
{
  this->type = CORBA::string_dup (_tao_type);
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::ReadonlyProperty::_type (void) const
{
  return ::CosTrading::Register::_tc_ReadonlyProperty;
}

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

static const CORBA::Long _oc_CosTrading_Register_ReadonlyProperty[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x52656164), 
  ACE_NTOHL (0x6f6e6c79), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Register/ReadonlyProperty:1.0
    17,
  ACE_NTOHL (0x52656164), 
  ACE_NTOHL (0x6f6e6c79), 
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x0),  // name = ReadonlyProperty
  2, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  140, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x7274794e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
        13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = PropertyName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_ReadonlyProperty (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_ReadonlyProperty),
    (char *) &_oc_CosTrading_Register_ReadonlyProperty,
    0,
    sizeof (CosTrading::Register::ReadonlyProperty)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_ReadonlyProperty =
  &_tc_TAO_tc_CosTrading_Register_ReadonlyProperty;

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

CosTrading::Register::NoMatchingOffers::NoMatchingOffers (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/NoMatchingOffers:1.0",
        "NoMatchingOffers"
      )
{
}

CosTrading::Register::NoMatchingOffers::~NoMatchingOffers (void)
{
}

CosTrading::Register::NoMatchingOffers::NoMatchingOffers (const ::CosTrading::Register::NoMatchingOffers &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->constr = CORBA::string_dup (_tao_excp.constr.in ());
}

CosTrading::Register::NoMatchingOffers&
CosTrading::Register::NoMatchingOffers::operator= (const ::CosTrading::Register::NoMatchingOffers &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->constr = CORBA::string_dup (_tao_excp.constr.in ());
  return *this;
}

void CosTrading::Register::NoMatchingOffers::_tao_any_destructor (void *_tao_void_pointer)
{
  NoMatchingOffers *_tao_tmp_pointer =
    static_cast<NoMatchingOffers*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::NoMatchingOffers::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::NoMatchingOffers, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::NoMatchingOffers::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::NoMatchingOffers (*this),
      0
    );
  return result;
}

void CosTrading::Register::NoMatchingOffers::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::NoMatchingOffers::_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

CosTrading::Register::NoMatchingOffers::NoMatchingOffers (
    const char * _tao_constr
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/NoMatchingOffers:1.0",
        "NoMatchingOffers"
      )
{
  this->constr = CORBA::string_dup (_tao_constr);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::NoMatchingOffers::_type (void) const
{
  return ::CosTrading::Register::_tc_NoMatchingOffers;
}

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

static const CORBA::Long _oc_CosTrading_Register_NoMatchingOffers[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  53,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x4e6f4d61), 
  ACE_NTOHL (0x74636869), 
  ACE_NTOHL (0x6e674f66), 
  ACE_NTOHL (0x66657273), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Register/NoMatchingOffers:1.0
    17,
  ACE_NTOHL (0x4e6f4d61), 
  ACE_NTOHL (0x74636869), 
  ACE_NTOHL (0x6e674f66), 
  ACE_NTOHL (0x66657273), 
  ACE_NTOHL (0x0),  // name = NoMatchingOffers
  1, // member count
    7,
  ACE_NTOHL (0x636f6e73), 
  ACE_NTOHL (0x74720000),  // name = constr
    CORBA::tk_alias, // typecode kind for typedefs
  136, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f43), 
    ACE_NTOHL (0x6f6e7374), 
    ACE_NTOHL (0x7261696e), 
    ACE_NTOHL (0x743a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Constraint:1.0
        11,
    ACE_NTOHL (0x436f6e73), 
    ACE_NTOHL (0x74726169), 
    ACE_NTOHL (0x6e740000),  // name = Constraint
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register_NoMatchingOffers (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_NoMatchingOffers),
    (char *) &_oc_CosTrading_Register_NoMatchingOffers,
    0,
    sizeof (CosTrading::Register::NoMatchingOffers)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_NoMatchingOffers =
  &_tc_TAO_tc_CosTrading_Register_NoMatchingOffers;

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

CosTrading::Register::IllegalTraderName::IllegalTraderName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/IllegalTraderName:1.0",
        "IllegalTraderName"
      )
{
}

CosTrading::Register::IllegalTraderName::~IllegalTraderName (void)
{
}

CosTrading::Register::IllegalTraderName::IllegalTraderName (const ::CosTrading::Register::IllegalTraderName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = _tao_excp.name;
}

CosTrading::Register::IllegalTraderName&
CosTrading::Register::IllegalTraderName::operator= (const ::CosTrading::Register::IllegalTraderName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = _tao_excp.name;
  return *this;
}

void CosTrading::Register::IllegalTraderName::_tao_any_destructor (void *_tao_void_pointer)
{
  IllegalTraderName *_tao_tmp_pointer =
    static_cast<IllegalTraderName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::IllegalTraderName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::IllegalTraderName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::IllegalTraderName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::IllegalTraderName (*this),
      0
    );
  return result;
}

void CosTrading::Register::IllegalTraderName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::IllegalTraderName::_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

CosTrading::Register::IllegalTraderName::IllegalTraderName (
    const CosTrading::TraderName & _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/IllegalTraderName:1.0",
        "IllegalTraderName"
      )
{
  this->name = _tao_name;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::IllegalTraderName::_type (void) const
{
  return ::CosTrading::Register::_tc_IllegalTraderName;
}

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

static const CORBA::Long _oc_CosTrading_Register_IllegalTraderName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x724e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Register/IllegalTraderName:1.0
    18,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x724e616d), 
  ACE_NTOHL (0x65000000),  // name = IllegalTraderName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  292, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f54), 
    ACE_NTOHL (0x72616465), 
    ACE_NTOHL (0x724e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/TraderName:1.0
        11,
    ACE_NTOHL (0x54726164), 
    ACE_NTOHL (0x65724e61), 
    ACE_NTOHL (0x6d650000),  // name = TraderName
        CORBA::tk_alias, // typecode kind for typedefs
    220, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4c), 
      ACE_NTOHL (0x696e6b4e), 
      ACE_NTOHL (0x616d6553), 
      ACE_NTOHL (0x65713a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/LinkNameSeq:1.0
            12,
      ACE_NTOHL (0x4c696e6b), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x53657100),  // name = LinkNameSeq
            CORBA::tk_sequence, // typecode kind
      148, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_alias, // typecode kind for typedefs
        132, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          36,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f4c), 
          ACE_NTOHL (0x696e6b4e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
                    9,
          ACE_NTOHL (0x4c696e6b), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = LinkName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_Register_IllegalTraderName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_IllegalTraderName),
    (char *) &_oc_CosTrading_Register_IllegalTraderName,
    0,
    sizeof (CosTrading::Register::IllegalTraderName)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_IllegalTraderName =
  &_tc_TAO_tc_CosTrading_Register_IllegalTraderName;

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

CosTrading::Register::UnknownTraderName::UnknownTraderName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/UnknownTraderName:1.0",
        "UnknownTraderName"
      )
{
}

CosTrading::Register::UnknownTraderName::~UnknownTraderName (void)
{
}

CosTrading::Register::UnknownTraderName::UnknownTraderName (const ::CosTrading::Register::UnknownTraderName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = _tao_excp.name;
}

CosTrading::Register::UnknownTraderName&
CosTrading::Register::UnknownTraderName::operator= (const ::CosTrading::Register::UnknownTraderName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = _tao_excp.name;
  return *this;
}

void CosTrading::Register::UnknownTraderName::_tao_any_destructor (void *_tao_void_pointer)
{
  UnknownTraderName *_tao_tmp_pointer =
    static_cast<UnknownTraderName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::UnknownTraderName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::UnknownTraderName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::UnknownTraderName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::UnknownTraderName (*this),
      0
    );
  return result;
}

void CosTrading::Register::UnknownTraderName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::UnknownTraderName::_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

CosTrading::Register::UnknownTraderName::UnknownTraderName (
    const CosTrading::TraderName & _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/UnknownTraderName:1.0",
        "UnknownTraderName"
      )
{
  this->name = _tao_name;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::UnknownTraderName::_type (void) const
{
  return ::CosTrading::Register::_tc_UnknownTraderName;
}

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

static const CORBA::Long _oc_CosTrading_Register_UnknownTraderName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x724e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Register/UnknownTraderName:1.0
    18,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e54), 
  ACE_NTOHL (0x72616465), 
  ACE_NTOHL (0x724e616d), 
  ACE_NTOHL (0x65000000),  // name = UnknownTraderName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  292, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f54), 
    ACE_NTOHL (0x72616465), 
    ACE_NTOHL (0x724e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/TraderName:1.0
        11,
    ACE_NTOHL (0x54726164), 
    ACE_NTOHL (0x65724e61), 
    ACE_NTOHL (0x6d650000),  // name = TraderName
        CORBA::tk_alias, // typecode kind for typedefs
    220, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4c), 
      ACE_NTOHL (0x696e6b4e), 
      ACE_NTOHL (0x616d6553), 
      ACE_NTOHL (0x65713a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/LinkNameSeq:1.0
            12,
      ACE_NTOHL (0x4c696e6b), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x53657100),  // name = LinkNameSeq
            CORBA::tk_sequence, // typecode kind
      148, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_alias, // typecode kind for typedefs
        132, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          36,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f4c), 
          ACE_NTOHL (0x696e6b4e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
                    9,
          ACE_NTOHL (0x4c696e6b), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = LinkName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_Register_UnknownTraderName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_UnknownTraderName),
    (char *) &_oc_CosTrading_Register_UnknownTraderName,
    0,
    sizeof (CosTrading::Register::UnknownTraderName)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_UnknownTraderName =
  &_tc_TAO_tc_CosTrading_Register_UnknownTraderName;

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

CosTrading::Register::RegisterNotSupported::RegisterNotSupported (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/RegisterNotSupported:1.0",
        "RegisterNotSupported"
      )
{
}

CosTrading::Register::RegisterNotSupported::~RegisterNotSupported (void)
{
}

CosTrading::Register::RegisterNotSupported::RegisterNotSupported (const ::CosTrading::Register::RegisterNotSupported &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = _tao_excp.name;
}

CosTrading::Register::RegisterNotSupported&
CosTrading::Register::RegisterNotSupported::operator= (const ::CosTrading::Register::RegisterNotSupported &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = _tao_excp.name;
  return *this;
}

void CosTrading::Register::RegisterNotSupported::_tao_any_destructor (void *_tao_void_pointer)
{
  RegisterNotSupported *_tao_tmp_pointer =
    static_cast<RegisterNotSupported*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Register::RegisterNotSupported::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Register::RegisterNotSupported, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Register::RegisterNotSupported::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Register::RegisterNotSupported (*this),
      0
    );
  return result;
}

void CosTrading::Register::RegisterNotSupported::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Register::RegisterNotSupported::_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

CosTrading::Register::RegisterNotSupported::RegisterNotSupported (
    const CosTrading::TraderName & _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Register/RegisterNotSupported:1.0",
        "RegisterNotSupported"
      )
{
  this->name = _tao_name;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Register::RegisterNotSupported::_type (void) const
{
  return ::CosTrading::Register::_tc_RegisterNotSupported;
}

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

static const CORBA::Long _oc_CosTrading_Register_RegisterNotSupported[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  57,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465722f), 
  ACE_NTOHL (0x52656769), 
  ACE_NTOHL (0x73746572), 
  ACE_NTOHL (0x4e6f7453), 
  ACE_NTOHL (0x7570706f), 
  ACE_NTOHL (0x72746564), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Register/RegisterNotSupported:1.0
    21,
  ACE_NTOHL (0x52656769), 
  ACE_NTOHL (0x73746572), 
  ACE_NTOHL (0x4e6f7453), 
  ACE_NTOHL (0x7570706f), 
  ACE_NTOHL (0x72746564), 
  ACE_NTOHL (0x0),  // name = RegisterNotSupported
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  292, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    38,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f54), 
    ACE_NTOHL (0x72616465), 
    ACE_NTOHL (0x724e616d), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/TraderName:1.0
        11,
    ACE_NTOHL (0x54726164), 
    ACE_NTOHL (0x65724e61), 
    ACE_NTOHL (0x6d650000),  // name = TraderName
        CORBA::tk_alias, // typecode kind for typedefs
    220, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      39,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f4c), 
      ACE_NTOHL (0x696e6b4e), 
      ACE_NTOHL (0x616d6553), 
      ACE_NTOHL (0x65713a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/LinkNameSeq:1.0
            12,
      ACE_NTOHL (0x4c696e6b), 
      ACE_NTOHL (0x4e616d65), 
      ACE_NTOHL (0x53657100),  // name = LinkNameSeq
            CORBA::tk_sequence, // typecode kind
      148, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        CORBA::tk_alias, // typecode kind for typedefs
        132, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          36,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f4c), 
          ACE_NTOHL (0x696e6b4e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
                    9,
          ACE_NTOHL (0x4c696e6b), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = LinkName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/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_CosTrading_Register_RegisterNotSupported (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Register_RegisterNotSupported),
    (char *) &_oc_CosTrading_Register_RegisterNotSupported,
    0,
    sizeof (CosTrading::Register::RegisterNotSupported)
  );

::CORBA::TypeCode_ptr CosTrading::Register::_tc_RegisterNotSupported =
  &_tc_TAO_tc_CosTrading_Register_RegisterNotSupported;

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

char * CosTrading::Register::_cxx_export (
    ::CORBA::Object_ptr reference,
    const char * type,
    const ::CosTrading::PropertySeq & properties
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Register::InvalidObjectRef,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTrading::Register::InterfaceTypeMismatch,
    ::CosTrading::IllegalPropertyName,
    ::CosTrading::PropertyTypeMismatch,
    ::CosTrading::ReadonlyDynamicProperty,
    ::CosTrading::MissingMandatoryProperty,
    ::CosTrading::DuplicatePropertyName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::OfferId>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::Object>::in_arg_val _tao_reference (reference);
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_type (type);
  TAO::Arg_Traits< ::CosTrading::PropertySeq>::in_arg_val _tao_properties (properties);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_reference,
      &_tao_type,
      &_tao_properties
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register__cxx_export_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Register/InvalidObjectRef:1.0",
        CosTrading::Register::InvalidObjectRef::_alloc,
        CosTrading::Register::_tc_InvalidObjectRef
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        CosTrading::IllegalServiceType::_alloc,
        CosTrading::_tc_IllegalServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        CosTrading::UnknownServiceType::_alloc,
        CosTrading::_tc_UnknownServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/Register/InterfaceTypeMismatch:1.0",
        CosTrading::Register::InterfaceTypeMismatch::_alloc,
        CosTrading::Register::_tc_InterfaceTypeMismatch
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalPropertyName:1.0",
        CosTrading::IllegalPropertyName::_alloc,
        CosTrading::_tc_IllegalPropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/PropertyTypeMismatch:1.0",
        CosTrading::PropertyTypeMismatch::_alloc,
        CosTrading::_tc_PropertyTypeMismatch
      },
      
      {
        "IDL:omg.org/CosTrading/ReadonlyDynamicProperty:1.0",
        CosTrading::ReadonlyDynamicProperty::_alloc,
        CosTrading::_tc_ReadonlyDynamicProperty
      },
      
      {
        "IDL:omg.org/CosTrading/MissingMandatoryProperty:1.0",
        CosTrading::MissingMandatoryProperty::_alloc,
        CosTrading::_tc_MissingMandatoryProperty
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePropertyName:1.0",
        CosTrading::DuplicatePropertyName::_alloc,
        CosTrading::_tc_DuplicatePropertyName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "export",
      6,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register__cxx_export_exceptiondata,
      9
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosTrading::Register::withdraw (
    const char * id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalOfferId,
    ::CosTrading::UnknownOfferId,
    ::CosTrading::Register::ProxyOfferId
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::OfferId>::in_arg_val _tao_id (id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_id
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register_withdraw_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        CosTrading::IllegalOfferId::_alloc,
        CosTrading::_tc_IllegalOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        CosTrading::UnknownOfferId::_alloc,
        CosTrading::_tc_UnknownOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0",
        CosTrading::Register::ProxyOfferId::_alloc,
        CosTrading::Register::_tc_ProxyOfferId
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "withdraw",
      8,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register_withdraw_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::CosTrading::Register::OfferInfo * CosTrading::Register::describe (
    const char * id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalOfferId,
    ::CosTrading::UnknownOfferId,
    ::CosTrading::Register::ProxyOfferId
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Register::OfferInfo>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::OfferId>::in_arg_val _tao_id (id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_id
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register_describe_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        CosTrading::IllegalOfferId::_alloc,
        CosTrading::_tc_IllegalOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        CosTrading::UnknownOfferId::_alloc,
        CosTrading::_tc_UnknownOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0",
        CosTrading::Register::ProxyOfferId::_alloc,
        CosTrading::Register::_tc_ProxyOfferId
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "describe",
      8,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register_describe_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosTrading::Register::modify (
    const char * id,
    const ::CosTrading::PropertyNameSeq & del_list,
    const ::CosTrading::PropertySeq & modify_list
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::NotImplemented,
    ::CosTrading::IllegalOfferId,
    ::CosTrading::UnknownOfferId,
    ::CosTrading::Register::ProxyOfferId,
    ::CosTrading::IllegalPropertyName,
    ::CosTrading::Register::UnknownPropertyName,
    ::CosTrading::PropertyTypeMismatch,
    ::CosTrading::ReadonlyDynamicProperty,
    ::CosTrading::Register::MandatoryProperty,
    ::CosTrading::Register::ReadonlyProperty,
    ::CosTrading::DuplicatePropertyName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::OfferId>::in_arg_val _tao_id (id);
  TAO::Arg_Traits< ::CosTrading::PropertyNameSeq>::in_arg_val _tao_del_list (del_list);
  TAO::Arg_Traits< ::CosTrading::PropertySeq>::in_arg_val _tao_modify_list (modify_list);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_id,
      &_tao_del_list,
      &_tao_modify_list
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register_modify_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/NotImplemented:1.0",
        CosTrading::NotImplemented::_alloc,
        CosTrading::_tc_NotImplemented
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        CosTrading::IllegalOfferId::_alloc,
        CosTrading::_tc_IllegalOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        CosTrading::UnknownOfferId::_alloc,
        CosTrading::_tc_UnknownOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/Register/ProxyOfferId:1.0",
        CosTrading::Register::ProxyOfferId::_alloc,
        CosTrading::Register::_tc_ProxyOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalPropertyName:1.0",
        CosTrading::IllegalPropertyName::_alloc,
        CosTrading::_tc_IllegalPropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/Register/UnknownPropertyName:1.0",
        CosTrading::Register::UnknownPropertyName::_alloc,
        CosTrading::Register::_tc_UnknownPropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/PropertyTypeMismatch:1.0",
        CosTrading::PropertyTypeMismatch::_alloc,
        CosTrading::_tc_PropertyTypeMismatch
      },
      
      {
        "IDL:omg.org/CosTrading/ReadonlyDynamicProperty:1.0",
        CosTrading::ReadonlyDynamicProperty::_alloc,
        CosTrading::_tc_ReadonlyDynamicProperty
      },
      
      {
        "IDL:omg.org/CosTrading/Register/MandatoryProperty:1.0",
        CosTrading::Register::MandatoryProperty::_alloc,
        CosTrading::Register::_tc_MandatoryProperty
      },
      
      {
        "IDL:omg.org/CosTrading/Register/ReadonlyProperty:1.0",
        CosTrading::Register::ReadonlyProperty::_alloc,
        CosTrading::Register::_tc_ReadonlyProperty
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePropertyName:1.0",
        CosTrading::DuplicatePropertyName::_alloc,
        CosTrading::_tc_DuplicatePropertyName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "modify",
      6,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register_modify_exceptiondata,
      11
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void CosTrading::Register::withdraw_using_constraint (
    const char * type,
    const char * constr
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTrading::IllegalConstraint,
    ::CosTrading::Register::NoMatchingOffers
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_type (type);
  TAO::Arg_Traits< ::CosTrading::Constraint>::in_arg_val _tao_constr (constr);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_type,
      &_tao_constr
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register_withdraw_using_constraint_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        CosTrading::IllegalServiceType::_alloc,
        CosTrading::_tc_IllegalServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        CosTrading::UnknownServiceType::_alloc,
        CosTrading::_tc_UnknownServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalConstraint:1.0",
        CosTrading::IllegalConstraint::_alloc,
        CosTrading::_tc_IllegalConstraint
      },
      
      {
        "IDL:omg.org/CosTrading/Register/NoMatchingOffers:1.0",
        CosTrading::Register::NoMatchingOffers::_alloc,
        CosTrading::Register::_tc_NoMatchingOffers
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "withdraw_using_constraint",
      25,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register_withdraw_using_constraint_exceptiondata,
      4
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::CosTrading::Register_ptr CosTrading::Register::resolve (
    const ::CosTrading::TraderName & name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Register::IllegalTraderName,
    ::CosTrading::Register::UnknownTraderName,
    ::CosTrading::Register::RegisterNotSupported
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Register_Proxy_Broker_ == 0)
    {
      CosTrading_Register_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Register>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::TraderName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Register_resolve_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Register/IllegalTraderName:1.0",
        CosTrading::Register::IllegalTraderName::_alloc,
        CosTrading::Register::_tc_IllegalTraderName
      },
      
      {
        "IDL:omg.org/CosTrading/Register/UnknownTraderName:1.0",
        CosTrading::Register::UnknownTraderName::_alloc,
        CosTrading::Register::_tc_UnknownTraderName
      },
      
      {
        "IDL:omg.org/CosTrading/Register/RegisterNotSupported:1.0",
        CosTrading::Register::RegisterNotSupported::_alloc,
        CosTrading::Register::_tc_RegisterNotSupported
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "resolve",
      7,
      this->the_TAO_Register_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Register_resolve_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::Register::Register (void)
 : the_TAO_Register_Proxy_Broker_ (0)
{
  this->CosTrading_Register_setup_collocation ();
}

void
CosTrading::Register::CosTrading_Register_setup_collocation ()
{
  if (::CosTrading__TAO_Register_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_Register_Proxy_Broker_ =
        ::CosTrading__TAO_Register_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosTrading_TraderComponents_setup_collocation ();
  this->CosTrading_SupportAttributes_setup_collocation ();
}

CosTrading::Register::~Register (void)
{}

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

CosTrading::Register_ptr
CosTrading::Register::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Register>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Register:1.0",
        CosTrading__TAO_Register_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Register_ptr
CosTrading::Register::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Register>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Register:1.0",
        CosTrading__TAO_Register_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Register_ptr
CosTrading::Register::_duplicate (Register_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::Register::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_Register[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  36,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f52), 
  ACE_NTOHL (0x65676973), 
  ACE_NTOHL (0x7465723a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Register:1.0
    9,
  ACE_NTOHL (0x52656769), 
  ACE_NTOHL (0x73746572), 
  ACE_NTOHL (0x0),  // name = Register
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Register (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_Register),
    (char *) &_oc_CosTrading_Register,
    0,
    sizeof (CosTrading::Register)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Register =
    &_tc_TAO_tc_CosTrading_Register;
}

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

// Traits specializations for CosTrading::Link.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Link_ptr
TAO::Objref_Traits<CosTrading::Link>::tao_duplicate (
    CosTrading::Link_ptr p
  )
{
  return CosTrading::Link::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::Link>::tao_release (
    CosTrading::Link_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Link_ptr
TAO::Objref_Traits<CosTrading::Link>::tao_nil (void)
{
  return CosTrading::Link::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::Link>::tao_marshal (
    CosTrading::Link_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosTrading__TAO_Link_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_CosTrading_Link_LinkInfo[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x496e666f), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Link/LinkInfo:1.0
    9,
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x496e666f), 
  ACE_NTOHL (0x0),  // name = LinkInfo
  4, // member count
    7,
  ACE_NTOHL (0x74617267), 
  ACE_NTOHL (0x65740000),  // name = target
    CORBA::tk_objref, // typecode kind
  56, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x6f6f6b75), 
    ACE_NTOHL (0x703a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Lookup:1.0
        7,
    ACE_NTOHL (0x4c6f6f6b), 
    ACE_NTOHL (0x75700000),  // name = Lookup
    
  11,
  ACE_NTOHL (0x74617267), 
  ACE_NTOHL (0x65745f72), 
  ACE_NTOHL (0x65670000),  // name = target_reg
    CORBA::tk_objref, // typecode kind
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f52), 
    ACE_NTOHL (0x65676973), 
    ACE_NTOHL (0x7465723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Register:1.0
        9,
    ACE_NTOHL (0x52656769), 
    ACE_NTOHL (0x73746572), 
    ACE_NTOHL (0x0),  // name = Register
    
  24,
  ACE_NTOHL (0x6465665f), 
  ACE_NTOHL (0x70617373), 
  ACE_NTOHL (0x5f6f6e5f), 
  ACE_NTOHL (0x666f6c6c), 
  ACE_NTOHL (0x6f775f72), 
  ACE_NTOHL (0x756c6500),  // name = def_pass_on_follow_rule
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
  21,
  ACE_NTOHL (0x6c696d69), 
  ACE_NTOHL (0x74696e67), 
  ACE_NTOHL (0x5f666f6c), 
  ACE_NTOHL (0x6c6f775f), 
  ACE_NTOHL (0x72756c65), 
  ACE_NTOHL (0x0),  // name = limiting_follow_rule
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_LinkInfo (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Link_LinkInfo),
    (char *) &_oc_CosTrading_Link_LinkInfo,
    0,
    sizeof (CosTrading::Link::LinkInfo)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_LinkInfo =
  &_tc_TAO_tc_CosTrading_Link_LinkInfo;

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

void 
CosTrading::Link::LinkInfo::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  LinkInfo *_tao_tmp_pointer =
    static_cast<LinkInfo *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CosTrading::Link::IllegalLinkName::IllegalLinkName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        "IllegalLinkName"
      )
{
}

CosTrading::Link::IllegalLinkName::~IllegalLinkName (void)
{
}

CosTrading::Link::IllegalLinkName::IllegalLinkName (const ::CosTrading::Link::IllegalLinkName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Link::IllegalLinkName&
CosTrading::Link::IllegalLinkName::operator= (const ::CosTrading::Link::IllegalLinkName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Link::IllegalLinkName::_tao_any_destructor (void *_tao_void_pointer)
{
  IllegalLinkName *_tao_tmp_pointer =
    static_cast<IllegalLinkName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Link::IllegalLinkName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Link::IllegalLinkName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Link::IllegalLinkName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Link::IllegalLinkName (*this),
      0
    );
  return result;
}

void CosTrading::Link::IllegalLinkName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Link::IllegalLinkName::_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

CosTrading::Link::IllegalLinkName::IllegalLinkName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        "IllegalLinkName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Link::IllegalLinkName::_type (void) const
{
  return ::CosTrading::Link::_tc_IllegalLinkName;
}

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

static const CORBA::Long _oc_CosTrading_Link_IllegalLinkName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  48,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0
    16,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d6500),  // name = IllegalLinkName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  132, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x696e6b4e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
        9,
    ACE_NTOHL (0x4c696e6b), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = LinkName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_IllegalLinkName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Link_IllegalLinkName),
    (char *) &_oc_CosTrading_Link_IllegalLinkName,
    0,
    sizeof (CosTrading::Link::IllegalLinkName)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_IllegalLinkName =
  &_tc_TAO_tc_CosTrading_Link_IllegalLinkName;

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

CosTrading::Link::UnknownLinkName::UnknownLinkName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0",
        "UnknownLinkName"
      )
{
}

CosTrading::Link::UnknownLinkName::~UnknownLinkName (void)
{
}

CosTrading::Link::UnknownLinkName::UnknownLinkName (const ::CosTrading::Link::UnknownLinkName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Link::UnknownLinkName&
CosTrading::Link::UnknownLinkName::operator= (const ::CosTrading::Link::UnknownLinkName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Link::UnknownLinkName::_tao_any_destructor (void *_tao_void_pointer)
{
  UnknownLinkName *_tao_tmp_pointer =
    static_cast<UnknownLinkName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Link::UnknownLinkName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Link::UnknownLinkName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Link::UnknownLinkName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Link::UnknownLinkName (*this),
      0
    );
  return result;
}

void CosTrading::Link::UnknownLinkName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Link::UnknownLinkName::_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

CosTrading::Link::UnknownLinkName::UnknownLinkName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0",
        "UnknownLinkName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Link::UnknownLinkName::_type (void) const
{
  return ::CosTrading::Link::_tc_UnknownLinkName;
}

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

static const CORBA::Long _oc_CosTrading_Link_UnknownLinkName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  48,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0
    16,
  ACE_NTOHL (0x556e6b6e), 
  ACE_NTOHL (0x6f776e4c), 
  ACE_NTOHL (0x696e6b4e), 
  ACE_NTOHL (0x616d6500),  // name = UnknownLinkName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  132, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x696e6b4e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
        9,
    ACE_NTOHL (0x4c696e6b), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = LinkName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_UnknownLinkName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Link_UnknownLinkName),
    (char *) &_oc_CosTrading_Link_UnknownLinkName,
    0,
    sizeof (CosTrading::Link::UnknownLinkName)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_UnknownLinkName =
  &_tc_TAO_tc_CosTrading_Link_UnknownLinkName;

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

CosTrading::Link::DuplicateLinkName::DuplicateLinkName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/DuplicateLinkName:1.0",
        "DuplicateLinkName"
      )
{
}

CosTrading::Link::DuplicateLinkName::~DuplicateLinkName (void)
{
}

CosTrading::Link::DuplicateLinkName::DuplicateLinkName (const ::CosTrading::Link::DuplicateLinkName &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->name = CORBA::string_dup (_tao_excp.name.in ());
}

CosTrading::Link::DuplicateLinkName&
CosTrading::Link::DuplicateLinkName::operator= (const ::CosTrading::Link::DuplicateLinkName &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->name = CORBA::string_dup (_tao_excp.name.in ());
  return *this;
}

void CosTrading::Link::DuplicateLinkName::_tao_any_destructor (void *_tao_void_pointer)
{
  DuplicateLinkName *_tao_tmp_pointer =
    static_cast<DuplicateLinkName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Link::DuplicateLinkName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Link::DuplicateLinkName, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Link::DuplicateLinkName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Link::DuplicateLinkName (*this),
      0
    );
  return result;
}

void CosTrading::Link::DuplicateLinkName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Link::DuplicateLinkName::_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

CosTrading::Link::DuplicateLinkName::DuplicateLinkName (
    const char * _tao_name
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/DuplicateLinkName:1.0",
        "DuplicateLinkName"
      )
{
  this->name = CORBA::string_dup (_tao_name);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Link::DuplicateLinkName::_type (void) const
{
  return ::CosTrading::Link::_tc_DuplicateLinkName;
}

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

static const CORBA::Long _oc_CosTrading_Link_DuplicateLinkName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  50,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x4475706c), 
  ACE_NTOHL (0x69636174), 
  ACE_NTOHL (0x654c696e), 
  ACE_NTOHL (0x6b4e616d), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Link/DuplicateLinkName:1.0
    18,
  ACE_NTOHL (0x4475706c), 
  ACE_NTOHL (0x69636174), 
  ACE_NTOHL (0x654c696e), 
  ACE_NTOHL (0x6b4e616d), 
  ACE_NTOHL (0x65000000),  // name = DuplicateLinkName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    CORBA::tk_alias, // typecode kind for typedefs
  132, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    36,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x696e6b4e), 
    ACE_NTOHL (0x616d653a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/LinkName:1.0
        9,
    ACE_NTOHL (0x4c696e6b), 
    ACE_NTOHL (0x4e616d65), 
    ACE_NTOHL (0x0),  // name = LinkName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_DuplicateLinkName (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Link_DuplicateLinkName),
    (char *) &_oc_CosTrading_Link_DuplicateLinkName,
    0,
    sizeof (CosTrading::Link::DuplicateLinkName)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_DuplicateLinkName =
  &_tc_TAO_tc_CosTrading_Link_DuplicateLinkName;

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

CosTrading::Link::DefaultFollowTooPermissive::DefaultFollowTooPermissive (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/DefaultFollowTooPermissive:1.0",
        "DefaultFollowTooPermissive"
      )
{
}

CosTrading::Link::DefaultFollowTooPermissive::~DefaultFollowTooPermissive (void)
{
}

CosTrading::Link::DefaultFollowTooPermissive::DefaultFollowTooPermissive (const ::CosTrading::Link::DefaultFollowTooPermissive &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->def_pass_on_follow_rule = _tao_excp.def_pass_on_follow_rule;
  this->limiting_follow_rule = _tao_excp.limiting_follow_rule;
}

CosTrading::Link::DefaultFollowTooPermissive&
CosTrading::Link::DefaultFollowTooPermissive::operator= (const ::CosTrading::Link::DefaultFollowTooPermissive &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->def_pass_on_follow_rule = _tao_excp.def_pass_on_follow_rule;
  this->limiting_follow_rule = _tao_excp.limiting_follow_rule;
  return *this;
}

void CosTrading::Link::DefaultFollowTooPermissive::_tao_any_destructor (void *_tao_void_pointer)
{
  DefaultFollowTooPermissive *_tao_tmp_pointer =
    static_cast<DefaultFollowTooPermissive*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Link::DefaultFollowTooPermissive::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Link::DefaultFollowTooPermissive, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Link::DefaultFollowTooPermissive::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Link::DefaultFollowTooPermissive (*this),
      0
    );
  return result;
}

void CosTrading::Link::DefaultFollowTooPermissive::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Link::DefaultFollowTooPermissive::_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

CosTrading::Link::DefaultFollowTooPermissive::DefaultFollowTooPermissive (
    CosTrading::FollowOption _tao_def_pass_on_follow_rule,
    CosTrading::FollowOption _tao_limiting_follow_rule
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/DefaultFollowTooPermissive:1.0",
        "DefaultFollowTooPermissive"
      )
{
  this->def_pass_on_follow_rule = _tao_def_pass_on_follow_rule;
  this->limiting_follow_rule = _tao_limiting_follow_rule;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Link::DefaultFollowTooPermissive::_type (void) const
{
  return ::CosTrading::Link::_tc_DefaultFollowTooPermissive;
}

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

static const CORBA::Long _oc_CosTrading_Link_DefaultFollowTooPermissive[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  59,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x44656661), 
  ACE_NTOHL (0x756c7446), 
  ACE_NTOHL (0x6f6c6c6f), 
  ACE_NTOHL (0x77546f6f), 
  ACE_NTOHL (0x5065726d), 
  ACE_NTOHL (0x69737369), 
  ACE_NTOHL (0x76653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Link/DefaultFollowTooPermissive:1.0
    27,
  ACE_NTOHL (0x44656661), 
  ACE_NTOHL (0x756c7446), 
  ACE_NTOHL (0x6f6c6c6f), 
  ACE_NTOHL (0x77546f6f), 
  ACE_NTOHL (0x5065726d), 
  ACE_NTOHL (0x69737369), 
  ACE_NTOHL (0x76650000),  // name = DefaultFollowTooPermissive
  2, // member count
    24,
  ACE_NTOHL (0x6465665f), 
  ACE_NTOHL (0x70617373), 
  ACE_NTOHL (0x5f6f6e5f), 
  ACE_NTOHL (0x666f6c6c), 
  ACE_NTOHL (0x6f775f72), 
  ACE_NTOHL (0x756c6500),  // name = def_pass_on_follow_rule
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
  21,
  ACE_NTOHL (0x6c696d69), 
  ACE_NTOHL (0x74696e67), 
  ACE_NTOHL (0x5f666f6c), 
  ACE_NTOHL (0x6c6f775f), 
  ACE_NTOHL (0x72756c65), 
  ACE_NTOHL (0x0),  // name = limiting_follow_rule
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_DefaultFollowTooPermissive (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Link_DefaultFollowTooPermissive),
    (char *) &_oc_CosTrading_Link_DefaultFollowTooPermissive,
    0,
    sizeof (CosTrading::Link::DefaultFollowTooPermissive)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_DefaultFollowTooPermissive =
  &_tc_TAO_tc_CosTrading_Link_DefaultFollowTooPermissive;

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

CosTrading::Link::LimitingFollowTooPermissive::LimitingFollowTooPermissive (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/LimitingFollowTooPermissive:1.0",
        "LimitingFollowTooPermissive"
      )
{
}

CosTrading::Link::LimitingFollowTooPermissive::~LimitingFollowTooPermissive (void)
{
}

CosTrading::Link::LimitingFollowTooPermissive::LimitingFollowTooPermissive (const ::CosTrading::Link::LimitingFollowTooPermissive &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->limiting_follow_rule = _tao_excp.limiting_follow_rule;
  this->max_link_follow_policy = _tao_excp.max_link_follow_policy;
}

CosTrading::Link::LimitingFollowTooPermissive&
CosTrading::Link::LimitingFollowTooPermissive::operator= (const ::CosTrading::Link::LimitingFollowTooPermissive &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->limiting_follow_rule = _tao_excp.limiting_follow_rule;
  this->max_link_follow_policy = _tao_excp.max_link_follow_policy;
  return *this;
}

void CosTrading::Link::LimitingFollowTooPermissive::_tao_any_destructor (void *_tao_void_pointer)
{
  LimitingFollowTooPermissive *_tao_tmp_pointer =
    static_cast<LimitingFollowTooPermissive*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Link::LimitingFollowTooPermissive::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Link::LimitingFollowTooPermissive, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Link::LimitingFollowTooPermissive::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Link::LimitingFollowTooPermissive (*this),
      0
    );
  return result;
}

void CosTrading::Link::LimitingFollowTooPermissive::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Link::LimitingFollowTooPermissive::_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

CosTrading::Link::LimitingFollowTooPermissive::LimitingFollowTooPermissive (
    CosTrading::FollowOption _tao_limiting_follow_rule,
    CosTrading::FollowOption _tao_max_link_follow_policy
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Link/LimitingFollowTooPermissive:1.0",
        "LimitingFollowTooPermissive"
      )
{
  this->limiting_follow_rule = _tao_limiting_follow_rule;
  this->max_link_follow_policy = _tao_max_link_follow_policy;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Link::LimitingFollowTooPermissive::_type (void) const
{
  return ::CosTrading::Link::_tc_LimitingFollowTooPermissive;
}

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

static const CORBA::Long _oc_CosTrading_Link_LimitingFollowTooPermissive[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  60,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b2f), 
  ACE_NTOHL (0x4c696d69), 
  ACE_NTOHL (0x74696e67), 
  ACE_NTOHL (0x466f6c6c), 
  ACE_NTOHL (0x6f77546f), 
  ACE_NTOHL (0x6f506572), 
  ACE_NTOHL (0x6d697373), 
  ACE_NTOHL (0x6976653a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Link/LimitingFollowTooPermissive:1.0
    28,
  ACE_NTOHL (0x4c696d69), 
  ACE_NTOHL (0x74696e67), 
  ACE_NTOHL (0x466f6c6c), 
  ACE_NTOHL (0x6f77546f), 
  ACE_NTOHL (0x6f506572), 
  ACE_NTOHL (0x6d697373), 
  ACE_NTOHL (0x69766500),  // name = LimitingFollowTooPermissive
  2, // member count
    21,
  ACE_NTOHL (0x6c696d69), 
  ACE_NTOHL (0x74696e67), 
  ACE_NTOHL (0x5f666f6c), 
  ACE_NTOHL (0x6c6f775f), 
  ACE_NTOHL (0x72756c65), 
  ACE_NTOHL (0x0),  // name = limiting_follow_rule
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
  23,
  ACE_NTOHL (0x6d61785f), 
  ACE_NTOHL (0x6c696e6b), 
  ACE_NTOHL (0x5f666f6c), 
  ACE_NTOHL (0x6c6f775f), 
  ACE_NTOHL (0x706f6c69), 
  ACE_NTOHL (0x63790000),  // name = max_link_follow_policy
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    40,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f46), 
    ACE_NTOHL (0x6f6c6c6f), 
    ACE_NTOHL (0x774f7074), 
    ACE_NTOHL (0x696f6e3a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/FollowOption:1.0
    13,
    ACE_NTOHL (0x466f6c6c), 
    ACE_NTOHL (0x6f774f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x0),  // name = FollowOption
    3, // member count
    11,
    ACE_NTOHL (0x6c6f6361), 
    ACE_NTOHL (0x6c5f6f6e), 
    ACE_NTOHL (0x6c790000),  // name = local_only
    12,
    ACE_NTOHL (0x69665f6e), 
    ACE_NTOHL (0x6f5f6c6f), 
    ACE_NTOHL (0x63616c00),  // name = if_no_local
    7,
    ACE_NTOHL (0x616c7761), 
    ACE_NTOHL (0x79730000),  // name = always
    
};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link_LimitingFollowTooPermissive (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Link_LimitingFollowTooPermissive),
    (char *) &_oc_CosTrading_Link_LimitingFollowTooPermissive,
    0,
    sizeof (CosTrading::Link::LimitingFollowTooPermissive)
  );

::CORBA::TypeCode_ptr CosTrading::Link::_tc_LimitingFollowTooPermissive =
  &_tc_TAO_tc_CosTrading_Link_LimitingFollowTooPermissive;

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

void CosTrading::Link::add_link (
    const char * name,
    ::CosTrading::Lookup_ptr target,
    ::CosTrading::FollowOption def_pass_on_follow_rule,
    ::CosTrading::FollowOption limiting_follow_rule
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Link::IllegalLinkName,
    ::CosTrading::Link::DuplicateLinkName,
    ::CosTrading::InvalidLookupRef,
    ::CosTrading::Link::DefaultFollowTooPermissive,
    ::CosTrading::Link::LimitingFollowTooPermissive
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Link_Proxy_Broker_ == 0)
    {
      CosTrading_Link_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::LinkName>::in_arg_val _tao_name (name);
  TAO::Arg_Traits< ::CosTrading::Lookup>::in_arg_val _tao_target (target);
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_def_pass_on_follow_rule (def_pass_on_follow_rule);
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_limiting_follow_rule (limiting_follow_rule);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name,
      &_tao_target,
      &_tao_def_pass_on_follow_rule,
      &_tao_limiting_follow_rule
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Link_add_link_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        CosTrading::Link::IllegalLinkName::_alloc,
        CosTrading::Link::_tc_IllegalLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/Link/DuplicateLinkName:1.0",
        CosTrading::Link::DuplicateLinkName::_alloc,
        CosTrading::Link::_tc_DuplicateLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/InvalidLookupRef:1.0",
        CosTrading::InvalidLookupRef::_alloc,
        CosTrading::_tc_InvalidLookupRef
      },
      
      {
        "IDL:omg.org/CosTrading/Link/DefaultFollowTooPermissive:1.0",
        CosTrading::Link::DefaultFollowTooPermissive::_alloc,
        CosTrading::Link::_tc_DefaultFollowTooPermissive
      },
      
      {
        "IDL:omg.org/CosTrading/Link/LimitingFollowTooPermissive:1.0",
        CosTrading::Link::LimitingFollowTooPermissive::_alloc,
        CosTrading::Link::_tc_LimitingFollowTooPermissive
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      5,
      "add_link",
      8,
      this->the_TAO_Link_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Link_add_link_exceptiondata,
      5
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void CosTrading::Link::remove_link (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Link::IllegalLinkName,
    ::CosTrading::Link::UnknownLinkName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Link_Proxy_Broker_ == 0)
    {
      CosTrading_Link_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::LinkName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Link_remove_link_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        CosTrading::Link::IllegalLinkName::_alloc,
        CosTrading::Link::_tc_IllegalLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0",
        CosTrading::Link::UnknownLinkName::_alloc,
        CosTrading::Link::_tc_UnknownLinkName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_link",
      11,
      this->the_TAO_Link_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Link_remove_link_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::CosTrading::Link::LinkInfo * CosTrading::Link::describe_link (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Link::IllegalLinkName,
    ::CosTrading::Link::UnknownLinkName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Link_Proxy_Broker_ == 0)
    {
      CosTrading_Link_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Link::LinkInfo>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::LinkName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Link_describe_link_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        CosTrading::Link::IllegalLinkName::_alloc,
        CosTrading::Link::_tc_IllegalLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0",
        CosTrading::Link::UnknownLinkName::_alloc,
        CosTrading::Link::_tc_UnknownLinkName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "describe_link",
      13,
      this->the_TAO_Link_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Link_describe_link_exceptiondata,
      2
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::LinkNameSeq * CosTrading::Link::list_links (
    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_Link_Proxy_Broker_ == 0)
    {
      CosTrading_Link_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::LinkNameSeq>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "list_links",
      10,
      this->the_TAO_Link_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosTrading::Link::modify_link (
    const char * name,
    ::CosTrading::FollowOption def_pass_on_follow_rule,
    ::CosTrading::FollowOption limiting_follow_rule
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::Link::IllegalLinkName,
    ::CosTrading::Link::UnknownLinkName,
    ::CosTrading::Link::DefaultFollowTooPermissive,
    ::CosTrading::Link::LimitingFollowTooPermissive
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Link_Proxy_Broker_ == 0)
    {
      CosTrading_Link_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::LinkName>::in_arg_val _tao_name (name);
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_def_pass_on_follow_rule (def_pass_on_follow_rule);
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_limiting_follow_rule (limiting_follow_rule);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name,
      &_tao_def_pass_on_follow_rule,
      &_tao_limiting_follow_rule
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Link_modify_link_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/Link/IllegalLinkName:1.0",
        CosTrading::Link::IllegalLinkName::_alloc,
        CosTrading::Link::_tc_IllegalLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/Link/UnknownLinkName:1.0",
        CosTrading::Link::UnknownLinkName::_alloc,
        CosTrading::Link::_tc_UnknownLinkName
      },
      
      {
        "IDL:omg.org/CosTrading/Link/DefaultFollowTooPermissive:1.0",
        CosTrading::Link::DefaultFollowTooPermissive::_alloc,
        CosTrading::Link::_tc_DefaultFollowTooPermissive
      },
      
      {
        "IDL:omg.org/CosTrading/Link/LimitingFollowTooPermissive:1.0",
        CosTrading::Link::LimitingFollowTooPermissive::_alloc,
        CosTrading::Link::_tc_LimitingFollowTooPermissive
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "modify_link",
      11,
      this->the_TAO_Link_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Link_modify_link_exceptiondata,
      4
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

CosTrading::Link::Link (void)
 : the_TAO_Link_Proxy_Broker_ (0)
{
  this->CosTrading_Link_setup_collocation ();
}

void
CosTrading::Link::CosTrading_Link_setup_collocation ()
{
  if (::CosTrading__TAO_Link_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_Link_Proxy_Broker_ =
        ::CosTrading__TAO_Link_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosTrading_TraderComponents_setup_collocation ();
  this->CosTrading_SupportAttributes_setup_collocation ();
  this->CosTrading_LinkAttributes_setup_collocation ();
}

CosTrading::Link::~Link (void)
{}

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

CosTrading::Link_ptr
CosTrading::Link::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Link>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Link:1.0",
        CosTrading__TAO_Link_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Link_ptr
CosTrading::Link::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Link>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Link:1.0",
        CosTrading__TAO_Link_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Link_ptr
CosTrading::Link::_duplicate (Link_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::Link::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_Link[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  32,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4c), 
  ACE_NTOHL (0x696e6b3a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Link:1.0
    5,
  ACE_NTOHL (0x4c696e6b), 
  ACE_NTOHL (0x0),  // name = Link
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Link (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_Link),
    (char *) &_oc_CosTrading_Link,
    0,
    sizeof (CosTrading::Link)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Link =
    &_tc_TAO_tc_CosTrading_Link;
}

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

// Traits specializations for CosTrading::Proxy.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Proxy_ptr
TAO::Objref_Traits<CosTrading::Proxy>::tao_duplicate (
    CosTrading::Proxy_ptr p
  )
{
  return CosTrading::Proxy::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::Proxy>::tao_release (
    CosTrading::Proxy_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Proxy_ptr
TAO::Objref_Traits<CosTrading::Proxy>::tao_nil (void)
{
  return CosTrading::Proxy::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::Proxy>::tao_marshal (
    CosTrading::Proxy_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker * 
(*CosTrading__TAO_Proxy_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_CosTrading_Proxy_ConstraintRecipe[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  50,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x2f436f6e), 
  ACE_NTOHL (0x73747261), 
  ACE_NTOHL (0x696e7452), 
  ACE_NTOHL (0x65636970), 
  ACE_NTOHL (0x653a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Proxy/ConstraintRecipe:1.0
    17,
  ACE_NTOHL (0x436f6e73), 
  ACE_NTOHL (0x74726169), 
  ACE_NTOHL (0x6e745265), 
  ACE_NTOHL (0x63697065), 
  ACE_NTOHL (0x0),  // name = ConstraintRecipe
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f49), 
    ACE_NTOHL (0x73747269), 
    ACE_NTOHL (0x6e673a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
        8,
    ACE_NTOHL (0x49737472), 
    ACE_NTOHL (0x696e6700),  // name = Istring
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Proxy_ConstraintRecipe (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_Proxy_ConstraintRecipe),
    (char *) &_oc_CosTrading_Proxy_ConstraintRecipe,
    0,
    sizeof (CosTrading::Proxy::ConstraintRecipe)
  );

::CORBA::TypeCode_ptr CosTrading::Proxy::_tc_ConstraintRecipe =
  &_tc_TAO_tc_CosTrading_Proxy_ConstraintRecipe;

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

static const CORBA::Long _oc_CosTrading_Proxy_ProxyInfo[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x2f50726f), 
  ACE_NTOHL (0x7879496e), 
  ACE_NTOHL (0x666f3a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Proxy/ProxyInfo:1.0
    10,
  ACE_NTOHL (0x50726f78), 
  ACE_NTOHL (0x79496e66), 
  ACE_NTOHL (0x6f000000),  // name = ProxyInfo
  6, // member count
    5,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = type
    CORBA::tk_alias, // typecode kind for typedefs
  144, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    43,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f53), 
    ACE_NTOHL (0x65727669), 
    ACE_NTOHL (0x63655479), 
    ACE_NTOHL (0x70654e61), 
    ACE_NTOHL (0x6d653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/ServiceTypeName:1.0
        16,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6500),  // name = ServiceTypeName
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  7,
  ACE_NTOHL (0x74617267), 
  ACE_NTOHL (0x65740000),  // name = target
    CORBA::tk_objref, // typecode kind
  56, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    34,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4c), 
    ACE_NTOHL (0x6f6f6b75), 
    ACE_NTOHL (0x703a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Lookup:1.0
        7,
    ACE_NTOHL (0x4c6f6f6b), 
    ACE_NTOHL (0x75700000),  // name = Lookup
    
  11,
  ACE_NTOHL (0x70726f70), 
  ACE_NTOHL (0x65727469), 
  ACE_NTOHL (0x65730000),  // name = properties
    CORBA::tk_alias, // typecode kind for typedefs
  408, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    39,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7065), 
    ACE_NTOHL (0x72747953), 
    ACE_NTOHL (0x65713a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PropertySeq:1.0
        12,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x53657100),  // name = PropertySeq
        CORBA::tk_sequence, // typecode kind
    336, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      320, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        36,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x726f7065), 
        ACE_NTOHL (0x7274793a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/Property:1.0
                9,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x0),  // name = Property
        2, // member count
                5,
        ACE_NTOHL (0x6e616d65), 
        ACE_NTOHL (0x0),  // name = name
                CORBA::tk_alias, // typecode kind for typedefs
        140, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          40,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x7274794e), 
          ACE_NTOHL (0x616d653a), 
          ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTrading/PropertyName:1.0
                    13,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x4e616d65), 
          ACE_NTOHL (0x0),  // name = PropertyName
                    CORBA::tk_alias, // typecode kind for typedefs
          64, // encapsulation length
            TAO_ENCAP_BYTE_ORDER, // byte order
            35,
            ACE_NTOHL (0x49444c3a), 
            ACE_NTOHL (0x6f6d672e), 
            ACE_NTOHL (0x6f72672f), 
            ACE_NTOHL (0x436f7354), 
            ACE_NTOHL (0x72616469), 
            ACE_NTOHL (0x6e672f49), 
            ACE_NTOHL (0x73747269), 
            ACE_NTOHL (0x6e673a31), 
            ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
                        8,
            ACE_NTOHL (0x49737472), 
            ACE_NTOHL (0x696e6700),  // name = Istring
                        CORBA::tk_string, 
            0U, // string length


        6,
        ACE_NTOHL (0x76616c75), 
        ACE_NTOHL (0x65000000),  // name = value
                CORBA::tk_alias, // typecode kind for typedefs
        76, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          41,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x726f7065), 
          ACE_NTOHL (0x72747956), 
          ACE_NTOHL (0x616c7565), 
          ACE_NTOHL (0x3a312e30), 
          ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PropertyValue:1.0
                    14,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x56616c75), 
          ACE_NTOHL (0x65000000),  // name = PropertyValue
                    CORBA::tk_any,



      0U,


  13,
  ACE_NTOHL (0x69665f6d), 
  ACE_NTOHL (0x61746368), 
  ACE_NTOHL (0x5f616c6c), 
  ACE_NTOHL (0x0),  // name = if_match_all
    CORBA::tk_boolean,

  7,
  ACE_NTOHL (0x72656369), 
  ACE_NTOHL (0x70650000),  // name = recipe
    CORBA::tk_alias, // typecode kind for typedefs
  156, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    50,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7879), 
    ACE_NTOHL (0x2f436f6e), 
    ACE_NTOHL (0x73747261), 
    ACE_NTOHL (0x696e7452), 
    ACE_NTOHL (0x65636970), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Proxy/ConstraintRecipe:1.0
        17,
    ACE_NTOHL (0x436f6e73), 
    ACE_NTOHL (0x74726169), 
    ACE_NTOHL (0x6e745265), 
    ACE_NTOHL (0x63697065), 
    ACE_NTOHL (0x0),  // name = ConstraintRecipe
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


  20,
  ACE_NTOHL (0x706f6c69), 
  ACE_NTOHL (0x63696573), 
  ACE_NTOHL (0x5f746f5f), 
  ACE_NTOHL (0x70617373), 
  ACE_NTOHL (0x5f6f6e00),  // name = policies_to_pass_on
    CORBA::tk_alias, // typecode kind for typedefs
  328, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    37,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x6f6c6963), 
    ACE_NTOHL (0x79536571), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/PolicySeq:1.0
        10,
    ACE_NTOHL (0x506f6c69), 
    ACE_NTOHL (0x63795365), 
    ACE_NTOHL (0x71000000),  // name = PolicySeq
        CORBA::tk_sequence, // typecode kind
    256, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      240, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        34,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e672f50), 
        ACE_NTOHL (0x6f6c6963), 
        ACE_NTOHL (0x793a312e), 
        ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Policy:1.0
                7,
        ACE_NTOHL (0x506f6c69), 
        ACE_NTOHL (0x63790000),  // name = Policy
        2, // member count
                5,
        ACE_NTOHL (0x6e616d65), 
        ACE_NTOHL (0x0),  // name = name
                CORBA::tk_alias, // typecode kind for typedefs
        72, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          38,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x6f6c6963), 
          ACE_NTOHL (0x794e616d), 
          ACE_NTOHL (0x653a312e), 
          ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/PolicyName:1.0
                    11,
          ACE_NTOHL (0x506f6c69), 
          ACE_NTOHL (0x63794e61), 
          ACE_NTOHL (0x6d650000),  // name = PolicyName
                    CORBA::tk_string, 
          0U, // string length

        6,
        ACE_NTOHL (0x76616c75), 
        ACE_NTOHL (0x65000000),  // name = value
                CORBA::tk_alias, // typecode kind for typedefs
        68, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          39,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e672f50), 
          ACE_NTOHL (0x6f6c6963), 
          ACE_NTOHL (0x7956616c), 
          ACE_NTOHL (0x75653a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/PolicyValue:1.0
                    12,
          ACE_NTOHL (0x506f6c69), 
          ACE_NTOHL (0x63795661), 
          ACE_NTOHL (0x6c756500),  // name = PolicyValue
                    CORBA::tk_any,



      0U,


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Proxy_ProxyInfo (
    CORBA::tk_struct,
    sizeof (_oc_CosTrading_Proxy_ProxyInfo),
    (char *) &_oc_CosTrading_Proxy_ProxyInfo,
    0,
    sizeof (CosTrading::Proxy::ProxyInfo)
  );

::CORBA::TypeCode_ptr CosTrading::Proxy::_tc_ProxyInfo =
  &_tc_TAO_tc_CosTrading_Proxy_ProxyInfo;

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

void 
CosTrading::Proxy::ProxyInfo::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  ProxyInfo *_tao_tmp_pointer =
    static_cast<ProxyInfo *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CosTrading::Proxy::IllegalRecipe::IllegalRecipe (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Proxy/IllegalRecipe:1.0",
        "IllegalRecipe"
      )
{
}

CosTrading::Proxy::IllegalRecipe::~IllegalRecipe (void)
{
}

CosTrading::Proxy::IllegalRecipe::IllegalRecipe (const ::CosTrading::Proxy::IllegalRecipe &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->recipe = CORBA::string_dup (_tao_excp.recipe.in ());
}

CosTrading::Proxy::IllegalRecipe&
CosTrading::Proxy::IllegalRecipe::operator= (const ::CosTrading::Proxy::IllegalRecipe &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->recipe = CORBA::string_dup (_tao_excp.recipe.in ());
  return *this;
}

void CosTrading::Proxy::IllegalRecipe::_tao_any_destructor (void *_tao_void_pointer)
{
  IllegalRecipe *_tao_tmp_pointer =
    static_cast<IllegalRecipe*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Proxy::IllegalRecipe::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Proxy::IllegalRecipe, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Proxy::IllegalRecipe::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Proxy::IllegalRecipe (*this),
      0
    );
  return result;
}

void CosTrading::Proxy::IllegalRecipe::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Proxy::IllegalRecipe::_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

CosTrading::Proxy::IllegalRecipe::IllegalRecipe (
    const char * _tao_recipe
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Proxy/IllegalRecipe:1.0",
        "IllegalRecipe"
      )
{
  this->recipe = CORBA::string_dup (_tao_recipe);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Proxy::IllegalRecipe::_type (void) const
{
  return ::CosTrading::Proxy::_tc_IllegalRecipe;
}

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

static const CORBA::Long _oc_CosTrading_Proxy_IllegalRecipe[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x2f496c6c), 
  ACE_NTOHL (0x6567616c), 
  ACE_NTOHL (0x52656369), 
  ACE_NTOHL (0x70653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Proxy/IllegalRecipe:1.0
    14,
  ACE_NTOHL (0x496c6c65), 
  ACE_NTOHL (0x67616c52), 
  ACE_NTOHL (0x65636970), 
  ACE_NTOHL (0x65000000),  // name = IllegalRecipe
  1, // member count
    7,
  ACE_NTOHL (0x72656369), 
  ACE_NTOHL (0x70650000),  // name = recipe
    CORBA::tk_alias, // typecode kind for typedefs
  156, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    50,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f50), 
    ACE_NTOHL (0x726f7879), 
    ACE_NTOHL (0x2f436f6e), 
    ACE_NTOHL (0x73747261), 
    ACE_NTOHL (0x696e7452), 
    ACE_NTOHL (0x65636970), 
    ACE_NTOHL (0x653a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Proxy/ConstraintRecipe:1.0
        17,
    ACE_NTOHL (0x436f6e73), 
    ACE_NTOHL (0x74726169), 
    ACE_NTOHL (0x6e745265), 
    ACE_NTOHL (0x63697065), 
    ACE_NTOHL (0x0),  // name = ConstraintRecipe
        CORBA::tk_alias, // typecode kind for typedefs
    64, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      35,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e672f49), 
      ACE_NTOHL (0x73747269), 
      ACE_NTOHL (0x6e673a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/Istring:1.0
            8,
      ACE_NTOHL (0x49737472), 
      ACE_NTOHL (0x696e6700),  // name = Istring
            CORBA::tk_string, 
      0U, // string length


};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Proxy_IllegalRecipe (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Proxy_IllegalRecipe),
    (char *) &_oc_CosTrading_Proxy_IllegalRecipe,
    0,
    sizeof (CosTrading::Proxy::IllegalRecipe)
  );

::CORBA::TypeCode_ptr CosTrading::Proxy::_tc_IllegalRecipe =
  &_tc_TAO_tc_CosTrading_Proxy_IllegalRecipe;

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

CosTrading::Proxy::NotProxyOfferId::NotProxyOfferId (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Proxy/NotProxyOfferId:1.0",
        "NotProxyOfferId"
      )
{
}

CosTrading::Proxy::NotProxyOfferId::~NotProxyOfferId (void)
{
}

CosTrading::Proxy::NotProxyOfferId::NotProxyOfferId (const ::CosTrading::Proxy::NotProxyOfferId &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->id = CORBA::string_dup (_tao_excp.id.in ());
}

CosTrading::Proxy::NotProxyOfferId&
CosTrading::Proxy::NotProxyOfferId::operator= (const ::CosTrading::Proxy::NotProxyOfferId &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->id = CORBA::string_dup (_tao_excp.id.in ());
  return *this;
}

void CosTrading::Proxy::NotProxyOfferId::_tao_any_destructor (void *_tao_void_pointer)
{
  NotProxyOfferId *_tao_tmp_pointer =
    static_cast<NotProxyOfferId*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTrading::Proxy::NotProxyOfferId::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTrading::Proxy::NotProxyOfferId, 0);
  return retval;
}

CORBA::Exception *
CosTrading::Proxy::NotProxyOfferId::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTrading::Proxy::NotProxyOfferId (*this),
      0
    );
  return result;
}

void CosTrading::Proxy::NotProxyOfferId::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTrading::Proxy::NotProxyOfferId::_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

CosTrading::Proxy::NotProxyOfferId::NotProxyOfferId (
    const char * _tao_id
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTrading/Proxy/NotProxyOfferId:1.0",
        "NotProxyOfferId"
      )
{
  this->id = CORBA::string_dup (_tao_id);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTrading::Proxy::NotProxyOfferId::_type (void) const
{
  return ::CosTrading::Proxy::_tc_NotProxyOfferId;
}

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

static const CORBA::Long _oc_CosTrading_Proxy_NotProxyOfferId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  49,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x2f4e6f74), 
  ACE_NTOHL (0x50726f78), 
  ACE_NTOHL (0x794f6666), 
  ACE_NTOHL (0x65724964), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Proxy/NotProxyOfferId:1.0
    16,
  ACE_NTOHL (0x4e6f7450), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496400),  // name = NotProxyOfferId
  1, // member count
    3,
  ACE_NTOHL (0x69640000),  // name = id
    CORBA::tk_alias, // typecode kind for typedefs
  64, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    35,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e672f4f), 
    ACE_NTOHL (0x66666572), 
    ACE_NTOHL (0x49643a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferId:1.0
        8,
    ACE_NTOHL (0x4f666665), 
    ACE_NTOHL (0x72496400),  // name = OfferId
        CORBA::tk_string, 
    0U, // string length

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Proxy_NotProxyOfferId (
    CORBA::tk_except,
    sizeof (_oc_CosTrading_Proxy_NotProxyOfferId),
    (char *) &_oc_CosTrading_Proxy_NotProxyOfferId,
    0,
    sizeof (CosTrading::Proxy::NotProxyOfferId)
  );

::CORBA::TypeCode_ptr CosTrading::Proxy::_tc_NotProxyOfferId =
  &_tc_TAO_tc_CosTrading_Proxy_NotProxyOfferId;

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

char * CosTrading::Proxy::export_proxy (
    ::CosTrading::Lookup_ptr target,
    const char * type,
    const ::CosTrading::PropertySeq & properties,
    ::CORBA::Boolean if_match_all,
    const char * recipe,
    const ::CosTrading::PolicySeq & policies_to_pass_on
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTrading::InvalidLookupRef,
    ::CosTrading::IllegalPropertyName,
    ::CosTrading::PropertyTypeMismatch,
    ::CosTrading::ReadonlyDynamicProperty,
    ::CosTrading::MissingMandatoryProperty,
    ::CosTrading::Proxy::IllegalRecipe,
    ::CosTrading::DuplicatePropertyName,
    ::CosTrading::DuplicatePolicyName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Proxy_Proxy_Broker_ == 0)
    {
      CosTrading_Proxy_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::OfferId>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::Lookup>::in_arg_val _tao_target (target);
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_type (type);
  TAO::Arg_Traits< ::CosTrading::PropertySeq>::in_arg_val _tao_properties (properties);
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_if_match_all (if_match_all);
  TAO::Arg_Traits< ::CosTrading::Proxy::ConstraintRecipe>::in_arg_val _tao_recipe (recipe);
  TAO::Arg_Traits< ::CosTrading::PolicySeq>::in_arg_val _tao_policies_to_pass_on (policies_to_pass_on);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_target,
      &_tao_type,
      &_tao_properties,
      &_tao_if_match_all,
      &_tao_recipe,
      &_tao_policies_to_pass_on
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Proxy_export_proxy_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        CosTrading::IllegalServiceType::_alloc,
        CosTrading::_tc_IllegalServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        CosTrading::UnknownServiceType::_alloc,
        CosTrading::_tc_UnknownServiceType
      },
      
      {
        "IDL:omg.org/CosTrading/InvalidLookupRef:1.0",
        CosTrading::InvalidLookupRef::_alloc,
        CosTrading::_tc_InvalidLookupRef
      },
      
      {
        "IDL:omg.org/CosTrading/IllegalPropertyName:1.0",
        CosTrading::IllegalPropertyName::_alloc,
        CosTrading::_tc_IllegalPropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/PropertyTypeMismatch:1.0",
        CosTrading::PropertyTypeMismatch::_alloc,
        CosTrading::_tc_PropertyTypeMismatch
      },
      
      {
        "IDL:omg.org/CosTrading/ReadonlyDynamicProperty:1.0",
        CosTrading::ReadonlyDynamicProperty::_alloc,
        CosTrading::_tc_ReadonlyDynamicProperty
      },
      
      {
        "IDL:omg.org/CosTrading/MissingMandatoryProperty:1.0",
        CosTrading::MissingMandatoryProperty::_alloc,
        CosTrading::_tc_MissingMandatoryProperty
      },
      
      {
        "IDL:omg.org/CosTrading/Proxy/IllegalRecipe:1.0",
        CosTrading::Proxy::IllegalRecipe::_alloc,
        CosTrading::Proxy::_tc_IllegalRecipe
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePropertyName:1.0",
        CosTrading::DuplicatePropertyName::_alloc,
        CosTrading::_tc_DuplicatePropertyName
      },
      
      {
        "IDL:omg.org/CosTrading/DuplicatePolicyName:1.0",
        CosTrading::DuplicatePolicyName::_alloc,
        CosTrading::_tc_DuplicatePolicyName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      7,
      "export_proxy",
      12,
      this->the_TAO_Proxy_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Proxy_export_proxy_exceptiondata,
      10
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosTrading::Proxy::withdraw_proxy (
    const char * id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalOfferId,
    ::CosTrading::UnknownOfferId,
    ::CosTrading::Proxy::NotProxyOfferId
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Proxy_Proxy_Broker_ == 0)
    {
      CosTrading_Proxy_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::OfferId>::in_arg_val _tao_id (id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_id
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Proxy_withdraw_proxy_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        CosTrading::IllegalOfferId::_alloc,
        CosTrading::_tc_IllegalOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        CosTrading::UnknownOfferId::_alloc,
        CosTrading::_tc_UnknownOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/Proxy/NotProxyOfferId:1.0",
        CosTrading::Proxy::NotProxyOfferId::_alloc,
        CosTrading::Proxy::_tc_NotProxyOfferId
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "withdraw_proxy",
      14,
      this->the_TAO_Proxy_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Proxy_withdraw_proxy_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::CosTrading::Proxy::ProxyInfo * CosTrading::Proxy::describe_proxy (
    const char * id
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalOfferId,
    ::CosTrading::UnknownOfferId,
    ::CosTrading::Proxy::NotProxyOfferId
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Proxy_Proxy_Broker_ == 0)
    {
      CosTrading_Proxy_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Proxy::ProxyInfo>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::OfferId>::in_arg_val _tao_id (id);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_id
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Proxy_describe_proxy_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalOfferId:1.0",
        CosTrading::IllegalOfferId::_alloc,
        CosTrading::_tc_IllegalOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownOfferId:1.0",
        CosTrading::UnknownOfferId::_alloc,
        CosTrading::_tc_UnknownOfferId
      },
      
      {
        "IDL:omg.org/CosTrading/Proxy/NotProxyOfferId:1.0",
        CosTrading::Proxy::NotProxyOfferId::_alloc,
        CosTrading::Proxy::_tc_NotProxyOfferId
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "describe_proxy",
      14,
      this->the_TAO_Proxy_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Proxy_describe_proxy_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

CosTrading::Proxy::Proxy (void)
 : the_TAO_Proxy_Proxy_Broker_ (0)
{
  this->CosTrading_Proxy_setup_collocation ();
}

void
CosTrading::Proxy::CosTrading_Proxy_setup_collocation ()
{
  if (::CosTrading__TAO_Proxy_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_Proxy_Proxy_Broker_ =
        ::CosTrading__TAO_Proxy_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosTrading_TraderComponents_setup_collocation ();
  this->CosTrading_SupportAttributes_setup_collocation ();
}

CosTrading::Proxy::~Proxy (void)
{}

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

CosTrading::Proxy_ptr
CosTrading::Proxy::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Proxy>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Proxy:1.0",
        CosTrading__TAO_Proxy_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Proxy_ptr
CosTrading::Proxy::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Proxy>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Proxy:1.0",
        CosTrading__TAO_Proxy_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Proxy_ptr
CosTrading::Proxy::_duplicate (Proxy_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::Proxy::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_Proxy[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  33,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f50), 
  ACE_NTOHL (0x726f7879), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Proxy:1.0
    6,
  ACE_NTOHL (0x50726f78), 
  ACE_NTOHL (0x79000000),  // name = Proxy
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Proxy (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_Proxy),
    (char *) &_oc_CosTrading_Proxy,
    0,
    sizeof (CosTrading::Proxy)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Proxy =
    &_tc_TAO_tc_CosTrading_Proxy;
}

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

// Traits specializations for CosTrading::Admin.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Admin_ptr
TAO::Objref_Traits<CosTrading::Admin>::tao_duplicate (
    CosTrading::Admin_ptr p
  )
{
  return CosTrading::Admin::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::Admin>::tao_release (
    CosTrading::Admin_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::Admin_ptr
TAO::Objref_Traits<CosTrading::Admin>::tao_nil (void)
{
  return CosTrading::Admin::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::Admin>::tao_marshal (
    CosTrading::Admin_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

#if !defined (_COSTRADING_ADMIN_OCTETSEQ_CS_)
#define _COSTRADING_ADMIN_OCTETSEQ_CS_

CosTrading::Admin::OctetSeq::OctetSeq (void)
{}

CosTrading::Admin::OctetSeq::OctetSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (max)
{}

CosTrading::Admin::OctetSeq::OctetSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Octet * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (max, length, buffer, release)
{}

CosTrading::Admin::OctetSeq::OctetSeq (
    const OctetSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Octet
      >
    (seq)
{}

CosTrading::Admin::OctetSeq::~OctetSeq (void)
{}

void CosTrading::Admin::OctetSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  OctetSeq * _tao_tmp_pointer =
    static_cast<OctetSeq *> (_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_CosTrading_Admin_OctetSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f41), 
  ACE_NTOHL (0x646d696e), 
  ACE_NTOHL (0x2f4f6374), 
  ACE_NTOHL (0x65745365), 
  ACE_NTOHL (0x713a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTrading/Admin/OctetSeq:1.0
    9,
  ACE_NTOHL (0x4f637465), 
  ACE_NTOHL (0x74536571), 
  ACE_NTOHL (0x0),  // name = OctetSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_octet,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Admin_OctetSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTrading_Admin_OctetSeq),
    (char *) &_oc_CosTrading_Admin_OctetSeq,
    0,
    sizeof (CosTrading::Admin::OctetSeq)
  );

::CORBA::TypeCode_ptr CosTrading::Admin::_tc_OctetSeq =
  &_tc_TAO_tc_CosTrading_Admin_OctetSeq;

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

::CosTrading::Admin::OctetSeq * CosTrading::Admin::request_id_stem (
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Admin::OctetSeq>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_request_id_stem",
      20,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_def_search_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_def_search_card",
      19,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_max_search_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_search_card",
      19,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_def_match_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_def_match_card",
      18,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_max_match_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_match_card",
      18,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_def_return_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_def_return_card",
      19,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_max_return_card (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_return_card",
      19,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_max_list (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_list",
      12,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::Admin::set_supports_modifiable_properties (
    ::CORBA::Boolean value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_supports_modifiable_properties",
      34,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::Admin::set_supports_dynamic_properties (
    ::CORBA::Boolean value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_supports_dynamic_properties",
      31,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::Admin::set_supports_proxy_offers (
    ::CORBA::Boolean value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_supports_proxy_offers",
      25,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_def_hop_count (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_def_hop_count",
      17,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::ULong CosTrading::Admin::set_max_hop_count (
    ::CORBA::ULong value
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_value (value);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_value
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_hop_count",
      17,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::FollowOption CosTrading::Admin::set_def_follow_policy (
    ::CosTrading::FollowOption policy
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_policy (policy);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_policy
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_def_follow_policy",
      21,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::FollowOption CosTrading::Admin::set_max_follow_policy (
    ::CosTrading::FollowOption policy
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_policy (policy);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_policy
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_follow_policy",
      21,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::FollowOption CosTrading::Admin::set_max_link_follow_policy (
    ::CosTrading::FollowOption policy
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::FollowOption>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::FollowOption>::in_arg_val _tao_policy (policy);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_policy
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_max_link_follow_policy",
      26,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CosTrading::TypeRepository_ptr CosTrading::Admin::set_type_repos (
    ::CosTrading::TypeRepository_ptr repository
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< CosTrading::TypeRepository>::ret_val _tao_retval;
  TAO::Arg_Traits< CosTrading::TypeRepository>::in_arg_val _tao_repository (repository);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_repository
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_type_repos",
      14,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

::CosTrading::Admin::OctetSeq * CosTrading::Admin::set_request_id_stem (
    const ::CosTrading::Admin::OctetSeq & stem
    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_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTrading::Admin::OctetSeq>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::Admin::OctetSeq>::in_arg_val _tao_stem (stem);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_stem
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "set_request_id_stem",
      19,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosTrading::Admin::list_offers (
    ::CORBA::ULong how_many,
    ::CosTrading::OfferIdSeq_out ids,
    ::CosTrading::OfferIdIterator_out id_itr
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::NotImplemented
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_how_many (how_many);
  TAO::Arg_Traits< ::CosTrading::OfferIdSeq>::out_arg_val _tao_ids (ids);
  TAO::Arg_Traits< ::CosTrading::OfferIdIterator>::out_arg_val _tao_id_itr (id_itr);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_how_many,
      &_tao_ids,
      &_tao_id_itr
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Admin_list_offers_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/NotImplemented:1.0",
        CosTrading::NotImplemented::_alloc,
        CosTrading::_tc_NotImplemented
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "list_offers",
      11,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Admin_list_offers_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void CosTrading::Admin::list_proxies (
    ::CORBA::ULong how_many,
    ::CosTrading::OfferIdSeq_out ids,
    ::CosTrading::OfferIdIterator_out id_itr
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::NotImplemented
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_Admin_Proxy_Broker_ == 0)
    {
      CosTrading_Admin_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_how_many (how_many);
  TAO::Arg_Traits< ::CosTrading::OfferIdSeq>::out_arg_val _tao_ids (ids);
  TAO::Arg_Traits< ::CosTrading::OfferIdIterator>::out_arg_val _tao_id_itr (id_itr);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_how_many,
      &_tao_ids,
      &_tao_id_itr
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_Admin_list_proxies_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/NotImplemented:1.0",
        CosTrading::NotImplemented::_alloc,
        CosTrading::_tc_NotImplemented
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      4,
      "list_proxies",
      12,
      this->the_TAO_Admin_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_Admin_list_proxies_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

CosTrading::Admin::Admin (void)
 : the_TAO_Admin_Proxy_Broker_ (0)
{
  this->CosTrading_Admin_setup_collocation ();
}

void
CosTrading::Admin::CosTrading_Admin_setup_collocation ()
{
  if (::CosTrading__TAO_Admin_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_Admin_Proxy_Broker_ =
        ::CosTrading__TAO_Admin_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->CosTrading_TraderComponents_setup_collocation ();
  this->CosTrading_SupportAttributes_setup_collocation ();
  this->CosTrading_ImportAttributes_setup_collocation ();
  this->CosTrading_LinkAttributes_setup_collocation ();
}

CosTrading::Admin::~Admin (void)
{}

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

CosTrading::Admin_ptr
CosTrading::Admin::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Admin>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Admin:1.0",
        CosTrading__TAO_Admin_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Admin_ptr
CosTrading::Admin::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<Admin>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/Admin:1.0",
        CosTrading__TAO_Admin_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::Admin_ptr
CosTrading::Admin::_duplicate (Admin_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::Admin::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_Admin[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  33,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f41), 
  ACE_NTOHL (0x646d696e), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/Admin:1.0
    6,
  ACE_NTOHL (0x41646d69), 
  ACE_NTOHL (0x6e000000),  // name = Admin
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_Admin (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_Admin),
    (char *) &_oc_CosTrading_Admin,
    0,
    sizeof (CosTrading::Admin)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_Admin =
    &_tc_TAO_tc_CosTrading_Admin;
}

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

// Traits specializations for CosTrading::OfferIterator.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::OfferIterator_ptr
TAO::Objref_Traits<CosTrading::OfferIterator>::tao_duplicate (
    CosTrading::OfferIterator_ptr p
  )
{
  return CosTrading::OfferIterator::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::OfferIterator>::tao_release (
    CosTrading::OfferIterator_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::OfferIterator_ptr
TAO::Objref_Traits<CosTrading::OfferIterator>::tao_nil (void)
{
  return CosTrading::OfferIterator::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::OfferIterator>::tao_marshal (
    CosTrading::OfferIterator_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

CORBA::ULong CosTrading::OfferIterator::max_left (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::UnknownMaxLeft
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_OfferIterator_Proxy_Broker_ == 0)
    {
      CosTrading_OfferIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_OfferIterator_max_left_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/UnknownMaxLeft:1.0",
        CosTrading::UnknownMaxLeft::_alloc,
        CosTrading::_tc_UnknownMaxLeft
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "max_left",
      8,
      this->the_TAO_OfferIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_OfferIterator_max_left_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::OfferIterator::next_n (
    ::CORBA::ULong n,
    ::CosTrading::OfferSeq_out offers
    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_OfferIterator_Proxy_Broker_ == 0)
    {
      CosTrading_OfferIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< ::CosTrading::OfferSeq>::out_arg_val _tao_offers (offers);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_offers
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "next_n",
      6,
      this->the_TAO_OfferIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

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

CosTrading::OfferIterator::OfferIterator (void)
 : the_TAO_OfferIterator_Proxy_Broker_ (0)
{
  this->CosTrading_OfferIterator_setup_collocation ();
}

void
CosTrading::OfferIterator::CosTrading_OfferIterator_setup_collocation ()
{
  if (::CosTrading__TAO_OfferIterator_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_OfferIterator_Proxy_Broker_ =
        ::CosTrading__TAO_OfferIterator_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::OfferIterator::~OfferIterator (void)
{}

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

CosTrading::OfferIterator_ptr
CosTrading::OfferIterator::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<OfferIterator>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/OfferIterator:1.0",
        CosTrading__TAO_OfferIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::OfferIterator_ptr
CosTrading::OfferIterator::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<OfferIterator>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/OfferIterator:1.0",
        CosTrading__TAO_OfferIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::OfferIterator_ptr
CosTrading::OfferIterator::_duplicate (OfferIterator_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::OfferIterator::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_OfferIterator[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  41,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49746572), 
  ACE_NTOHL (0x61746f72), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTrading/OfferIterator:1.0
    14,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72497465), 
  ACE_NTOHL (0x7261746f), 
  ACE_NTOHL (0x72000000),  // name = OfferIterator
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_OfferIterator (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_OfferIterator),
    (char *) &_oc_CosTrading_OfferIterator,
    0,
    sizeof (CosTrading::OfferIterator)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_OfferIterator =
    &_tc_TAO_tc_CosTrading_OfferIterator;
}

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

// Traits specializations for CosTrading::OfferIdIterator.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::OfferIdIterator_ptr
TAO::Objref_Traits<CosTrading::OfferIdIterator>::tao_duplicate (
    CosTrading::OfferIdIterator_ptr p
  )
{
  return CosTrading::OfferIdIterator::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTrading::OfferIdIterator>::tao_release (
    CosTrading::OfferIdIterator_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTrading::OfferIdIterator_ptr
TAO::Objref_Traits<CosTrading::OfferIdIterator>::tao_nil (void)
{
  return CosTrading::OfferIdIterator::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTrading::OfferIdIterator>::tao_marshal (
    CosTrading::OfferIdIterator_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

CORBA::ULong CosTrading::OfferIdIterator::max_left (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::UnknownMaxLeft
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_OfferIdIterator_Proxy_Broker_ == 0)
    {
      CosTrading_OfferIdIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::ULong>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  static TAO::Exception_Data
  _tao_CosTrading_OfferIdIterator_max_left_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/UnknownMaxLeft:1.0",
        CosTrading::UnknownMaxLeft::_alloc,
        CosTrading::_tc_UnknownMaxLeft
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "max_left",
      8,
      this->the_TAO_OfferIdIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTrading_OfferIdIterator_max_left_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Boolean CosTrading::OfferIdIterator::next_n (
    ::CORBA::ULong n,
    ::CosTrading::OfferIdSeq_out ids
    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_OfferIdIterator_Proxy_Broker_ == 0)
    {
      CosTrading_OfferIdIterator_setup_collocation ();
    }
  
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::ULong>::in_arg_val _tao_n (n);
  TAO::Arg_Traits< ::CosTrading::OfferIdSeq>::out_arg_val _tao_ids (ids);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_n,
      &_tao_ids
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "next_n",
      6,
      this->the_TAO_OfferIdIterator_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

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

CosTrading::OfferIdIterator::OfferIdIterator (void)
 : the_TAO_OfferIdIterator_Proxy_Broker_ (0)
{
  this->CosTrading_OfferIdIterator_setup_collocation ();
}

void
CosTrading::OfferIdIterator::CosTrading_OfferIdIterator_setup_collocation ()
{
  if (::CosTrading__TAO_OfferIdIterator_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_OfferIdIterator_Proxy_Broker_ =
        ::CosTrading__TAO_OfferIdIterator_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTrading::OfferIdIterator::~OfferIdIterator (void)
{}

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

CosTrading::OfferIdIterator_ptr
CosTrading::OfferIdIterator::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<OfferIdIterator>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/OfferIdIterator:1.0",
        CosTrading__TAO_OfferIdIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::OfferIdIterator_ptr
CosTrading::OfferIdIterator::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<OfferIdIterator>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTrading/OfferIdIterator:1.0",
        CosTrading__TAO_OfferIdIterator_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTrading::OfferIdIterator_ptr
CosTrading::OfferIdIterator::_duplicate (OfferIdIterator_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTrading::OfferIdIterator::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTrading_OfferIdIterator[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  43,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e672f4f), 
  ACE_NTOHL (0x66666572), 
  ACE_NTOHL (0x49644974), 
  ACE_NTOHL (0x65726174), 
  ACE_NTOHL (0x6f723a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTrading/OfferIdIterator:1.0
    16,
  ACE_NTOHL (0x4f666665), 
  ACE_NTOHL (0x72496449), 
  ACE_NTOHL (0x74657261), 
  ACE_NTOHL (0x746f7200),  // name = OfferIdIterator
  };

static CORBA::TypeCode _tc_TAO_tc_CosTrading_OfferIdIterator (
    CORBA::tk_objref,
    sizeof (_oc_CosTrading_OfferIdIterator),
    (char *) &_oc_CosTrading_OfferIdIterator,
    0,
    sizeof (CosTrading::OfferIdIterator)
  );

namespace CosTrading
{
  ::CORBA::TypeCode_ptr _tc_OfferIdIterator =
    &_tc_TAO_tc_CosTrading_OfferIdIterator;
}

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

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

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

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

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

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

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

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Property *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Property>::extract (
        _tao_any,
        CosTrading::Property::_tao_any_destructor,
        CosTrading::_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 CosTrading::PropertySeq &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::PropertySeq>::insert_copy (
      _tao_any,
      CosTrading::PropertySeq::_tao_any_destructor,
      CosTrading::_tc_PropertySeq,
      _tao_elem
    );
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::FollowOption _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosTrading::FollowOption>::insert (
      _tao_any,
      CosTrading::_tc_FollowOption,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::FollowOption &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosTrading::FollowOption>::extract (
        _tao_any,
        CosTrading::_tc_FollowOption,
        _tao_elem 
      );
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::PolicySeq *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::PolicySeq>::extract (
        _tao_any,
        CosTrading::PolicySeq::_tao_any_destructor,
        CosTrading::_tc_PolicySeq,
        _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<CosTrading::UnknownMaxLeft>::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 CosTrading::UnknownMaxLeft &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::UnknownMaxLeft>::insert_copy (
      _tao_any,
      CosTrading::UnknownMaxLeft::_tao_any_destructor,
      CosTrading::_tc_UnknownMaxLeft,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::UnknownMaxLeft *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::UnknownMaxLeft>::extract (
        _tao_any,
        CosTrading::UnknownMaxLeft::_tao_any_destructor,
        CosTrading::_tc_UnknownMaxLeft,
        _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<CosTrading::NotImplemented>::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 CosTrading::NotImplemented &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::NotImplemented>::insert_copy (
      _tao_any,
      CosTrading::NotImplemented::_tao_any_destructor,
      CosTrading::_tc_NotImplemented,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::NotImplemented *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::NotImplemented>::extract (
        _tao_any,
        CosTrading::NotImplemented::_tao_any_destructor,
        CosTrading::_tc_NotImplemented,
        _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<CosTrading::IllegalServiceType>::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 CosTrading::IllegalServiceType &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::IllegalServiceType>::insert_copy (
      _tao_any,
      CosTrading::IllegalServiceType::_tao_any_destructor,
      CosTrading::_tc_IllegalServiceType,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::IllegalServiceType *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::IllegalServiceType>::extract (
        _tao_any,
        CosTrading::IllegalServiceType::_tao_any_destructor,
        CosTrading::_tc_IllegalServiceType,
        _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<CosTrading::UnknownServiceType>::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 CosTrading::UnknownServiceType &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::UnknownServiceType>::insert_copy (
      _tao_any,
      CosTrading::UnknownServiceType::_tao_any_destructor,
      CosTrading::_tc_UnknownServiceType,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::UnknownServiceType *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::UnknownServiceType>::extract (
        _tao_any,
        CosTrading::UnknownServiceType::_tao_any_destructor,
        CosTrading::_tc_UnknownServiceType,
        _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<CosTrading::IllegalPropertyName>::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 CosTrading::IllegalPropertyName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::IllegalPropertyName>::insert_copy (
      _tao_any,
      CosTrading::IllegalPropertyName::_tao_any_destructor,
      CosTrading::_tc_IllegalPropertyName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::IllegalPropertyName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::IllegalPropertyName>::extract (
        _tao_any,
        CosTrading::IllegalPropertyName::_tao_any_destructor,
        CosTrading::_tc_IllegalPropertyName,
        _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<CosTrading::DuplicatePropertyName>::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 CosTrading::DuplicatePropertyName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::DuplicatePropertyName>::insert_copy (
      _tao_any,
      CosTrading::DuplicatePropertyName::_tao_any_destructor,
      CosTrading::_tc_DuplicatePropertyName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::DuplicatePropertyName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::DuplicatePropertyName>::extract (
        _tao_any,
        CosTrading::DuplicatePropertyName::_tao_any_destructor,
        CosTrading::_tc_DuplicatePropertyName,
        _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<CosTrading::PropertyTypeMismatch>::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 CosTrading::PropertyTypeMismatch &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::PropertyTypeMismatch>::insert_copy (
      _tao_any,
      CosTrading::PropertyTypeMismatch::_tao_any_destructor,
      CosTrading::_tc_PropertyTypeMismatch,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::PropertyTypeMismatch *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::PropertyTypeMismatch>::extract (
        _tao_any,
        CosTrading::PropertyTypeMismatch::_tao_any_destructor,
        CosTrading::_tc_PropertyTypeMismatch,
        _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<CosTrading::MissingMandatoryProperty>::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 CosTrading::MissingMandatoryProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::MissingMandatoryProperty>::insert_copy (
      _tao_any,
      CosTrading::MissingMandatoryProperty::_tao_any_destructor,
      CosTrading::_tc_MissingMandatoryProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::MissingMandatoryProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::MissingMandatoryProperty>::extract (
        _tao_any,
        CosTrading::MissingMandatoryProperty::_tao_any_destructor,
        CosTrading::_tc_MissingMandatoryProperty,
        _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<CosTrading::ReadonlyDynamicProperty>::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 CosTrading::ReadonlyDynamicProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::ReadonlyDynamicProperty>::insert_copy (
      _tao_any,
      CosTrading::ReadonlyDynamicProperty::_tao_any_destructor,
      CosTrading::_tc_ReadonlyDynamicProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::ReadonlyDynamicProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::ReadonlyDynamicProperty>::extract (
        _tao_any,
        CosTrading::ReadonlyDynamicProperty::_tao_any_destructor,
        CosTrading::_tc_ReadonlyDynamicProperty,
        _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<CosTrading::IllegalConstraint>::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 CosTrading::IllegalConstraint &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::IllegalConstraint>::insert_copy (
      _tao_any,
      CosTrading::IllegalConstraint::_tao_any_destructor,
      CosTrading::_tc_IllegalConstraint,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::IllegalConstraint *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::IllegalConstraint>::extract (
        _tao_any,
        CosTrading::IllegalConstraint::_tao_any_destructor,
        CosTrading::_tc_IllegalConstraint,
        _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<CosTrading::InvalidLookupRef>::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 CosTrading::InvalidLookupRef &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::InvalidLookupRef>::insert_copy (
      _tao_any,
      CosTrading::InvalidLookupRef::_tao_any_destructor,
      CosTrading::_tc_InvalidLookupRef,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::InvalidLookupRef *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::InvalidLookupRef>::extract (
        _tao_any,
        CosTrading::InvalidLookupRef::_tao_any_destructor,
        CosTrading::_tc_InvalidLookupRef,
        _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<CosTrading::IllegalOfferId>::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 CosTrading::IllegalOfferId &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::IllegalOfferId>::insert_copy (
      _tao_any,
      CosTrading::IllegalOfferId::_tao_any_destructor,
      CosTrading::_tc_IllegalOfferId,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::IllegalOfferId *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::IllegalOfferId>::extract (
        _tao_any,
        CosTrading::IllegalOfferId::_tao_any_destructor,
        CosTrading::_tc_IllegalOfferId,
        _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<CosTrading::UnknownOfferId>::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 CosTrading::UnknownOfferId &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::UnknownOfferId>::insert_copy (
      _tao_any,
      CosTrading::UnknownOfferId::_tao_any_destructor,
      CosTrading::_tc_UnknownOfferId,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::UnknownOfferId *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::UnknownOfferId>::extract (
        _tao_any,
        CosTrading::UnknownOfferId::_tao_any_destructor,
        CosTrading::_tc_UnknownOfferId,
        _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<CosTrading::DuplicatePolicyName>::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 CosTrading::DuplicatePolicyName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::DuplicatePolicyName>::insert_copy (
      _tao_any,
      CosTrading::DuplicatePolicyName::_tao_any_destructor,
      CosTrading::_tc_DuplicatePolicyName,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::TraderComponents>::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,
    CosTrading::TraderComponents_ptr _tao_elem
  )
{
  CosTrading::TraderComponents_ptr _tao_objptr =
    CosTrading::TraderComponents::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::TraderComponents_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::TraderComponents>::insert (
      _tao_any,
      CosTrading::TraderComponents::_tao_any_destructor,
      CosTrading::_tc_TraderComponents,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::TraderComponents_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::TraderComponents>::extract (
        _tao_any,
        CosTrading::TraderComponents::_tao_any_destructor,
        CosTrading::_tc_TraderComponents,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::SupportAttributes>::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,
    CosTrading::SupportAttributes_ptr _tao_elem
  )
{
  CosTrading::SupportAttributes_ptr _tao_objptr =
    CosTrading::SupportAttributes::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::SupportAttributes_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::SupportAttributes>::insert (
      _tao_any,
      CosTrading::SupportAttributes::_tao_any_destructor,
      CosTrading::_tc_SupportAttributes,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::SupportAttributes_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::SupportAttributes>::extract (
        _tao_any,
        CosTrading::SupportAttributes::_tao_any_destructor,
        CosTrading::_tc_SupportAttributes,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::ImportAttributes>::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,
    CosTrading::ImportAttributes_ptr _tao_elem
  )
{
  CosTrading::ImportAttributes_ptr _tao_objptr =
    CosTrading::ImportAttributes::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::ImportAttributes_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::ImportAttributes>::insert (
      _tao_any,
      CosTrading::ImportAttributes::_tao_any_destructor,
      CosTrading::_tc_ImportAttributes,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::ImportAttributes_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::ImportAttributes>::extract (
        _tao_any,
        CosTrading::ImportAttributes::_tao_any_destructor,
        CosTrading::_tc_ImportAttributes,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::LinkAttributes>::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,
    CosTrading::LinkAttributes_ptr _tao_elem
  )
{
  CosTrading::LinkAttributes_ptr _tao_objptr =
    CosTrading::LinkAttributes::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::LinkAttributes_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::LinkAttributes>::insert (
      _tao_any,
      CosTrading::LinkAttributes::_tao_any_destructor,
      CosTrading::_tc_LinkAttributes,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::LinkAttributes_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::LinkAttributes>::extract (
        _tao_any,
        CosTrading::LinkAttributes::_tao_any_destructor,
        CosTrading::_tc_LinkAttributes,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::Lookup>::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,
    CosTrading::Lookup_ptr _tao_elem
  )
{
  CosTrading::Lookup_ptr _tao_objptr =
    CosTrading::Lookup::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Lookup_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::Lookup>::insert (
      _tao_any,
      CosTrading::Lookup::_tao_any_destructor,
      CosTrading::_tc_Lookup,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Lookup_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::Lookup>::extract (
        _tao_any,
        CosTrading::Lookup::_tao_any_destructor,
        CosTrading::_tc_Lookup,
        _tao_elem
      );
}

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

void operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Lookup::HowManyProps _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosTrading::Lookup::HowManyProps>::insert (
      _tao_any,
      CosTrading::Lookup::_tc_HowManyProps,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Lookup::HowManyProps &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosTrading::Lookup::HowManyProps>::extract (
        _tao_any,
        CosTrading::Lookup::_tc_HowManyProps,
        _tao_elem 
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTrading::Lookup::SpecifiedProps &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Lookup::SpecifiedProps>::insert_copy (
      _tao_any,
      CosTrading::Lookup::SpecifiedProps::_tao_any_destructor,
      CosTrading::Lookup::_tc_SpecifiedProps,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Lookup::SpecifiedProps *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Lookup::SpecifiedProps>::extract (
        _tao_any,
        CosTrading::Lookup::SpecifiedProps::_tao_any_destructor,
        CosTrading::Lookup::_tc_SpecifiedProps,
        _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<CosTrading::Lookup::IllegalPreference>::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 CosTrading::Lookup::IllegalPreference &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Lookup::IllegalPreference>::insert_copy (
      _tao_any,
      CosTrading::Lookup::IllegalPreference::_tao_any_destructor,
      CosTrading::Lookup::_tc_IllegalPreference,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Lookup::IllegalPreference *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Lookup::IllegalPreference>::extract (
        _tao_any,
        CosTrading::Lookup::IllegalPreference::_tao_any_destructor,
        CosTrading::Lookup::_tc_IllegalPreference,
        _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<CosTrading::Lookup::IllegalPolicyName>::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 CosTrading::Lookup::IllegalPolicyName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Lookup::IllegalPolicyName>::insert_copy (
      _tao_any,
      CosTrading::Lookup::IllegalPolicyName::_tao_any_destructor,
      CosTrading::Lookup::_tc_IllegalPolicyName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Lookup::IllegalPolicyName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Lookup::IllegalPolicyName>::extract (
        _tao_any,
        CosTrading::Lookup::IllegalPolicyName::_tao_any_destructor,
        CosTrading::Lookup::_tc_IllegalPolicyName,
        _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<CosTrading::Lookup::PolicyTypeMismatch>::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 CosTrading::Lookup::PolicyTypeMismatch &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Lookup::PolicyTypeMismatch>::insert_copy (
      _tao_any,
      CosTrading::Lookup::PolicyTypeMismatch::_tao_any_destructor,
      CosTrading::Lookup::_tc_PolicyTypeMismatch,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Lookup::PolicyTypeMismatch *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Lookup::PolicyTypeMismatch>::extract (
        _tao_any,
        CosTrading::Lookup::PolicyTypeMismatch::_tao_any_destructor,
        CosTrading::Lookup::_tc_PolicyTypeMismatch,
        _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<CosTrading::Lookup::InvalidPolicyValue>::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 CosTrading::Lookup::InvalidPolicyValue &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Lookup::InvalidPolicyValue>::insert_copy (
      _tao_any,
      CosTrading::Lookup::InvalidPolicyValue::_tao_any_destructor,
      CosTrading::Lookup::_tc_InvalidPolicyValue,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::Register>::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,
    CosTrading::Register_ptr _tao_elem
  )
{
  CosTrading::Register_ptr _tao_objptr =
    CosTrading::Register::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Register_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::Register>::insert (
      _tao_any,
      CosTrading::Register::_tao_any_destructor,
      CosTrading::_tc_Register,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Register_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::Register>::extract (
        _tao_any,
        CosTrading::Register::_tao_any_destructor,
        CosTrading::_tc_Register,
        _tao_elem
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTrading::Register::OfferInfo &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::OfferInfo>::insert_copy (
      _tao_any,
      CosTrading::Register::OfferInfo::_tao_any_destructor,
      CosTrading::Register::_tc_OfferInfo,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::OfferInfo *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::OfferInfo>::extract (
        _tao_any,
        CosTrading::Register::OfferInfo::_tao_any_destructor,
        CosTrading::Register::_tc_OfferInfo,
        _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<CosTrading::Register::InvalidObjectRef>::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 CosTrading::Register::InvalidObjectRef &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::InvalidObjectRef>::insert_copy (
      _tao_any,
      CosTrading::Register::InvalidObjectRef::_tao_any_destructor,
      CosTrading::Register::_tc_InvalidObjectRef,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::InvalidObjectRef *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::InvalidObjectRef>::extract (
        _tao_any,
        CosTrading::Register::InvalidObjectRef::_tao_any_destructor,
        CosTrading::Register::_tc_InvalidObjectRef,
        _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<CosTrading::Register::UnknownPropertyName>::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 CosTrading::Register::UnknownPropertyName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::UnknownPropertyName>::insert_copy (
      _tao_any,
      CosTrading::Register::UnknownPropertyName::_tao_any_destructor,
      CosTrading::Register::_tc_UnknownPropertyName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::UnknownPropertyName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::UnknownPropertyName>::extract (
        _tao_any,
        CosTrading::Register::UnknownPropertyName::_tao_any_destructor,
        CosTrading::Register::_tc_UnknownPropertyName,
        _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<CosTrading::Register::InterfaceTypeMismatch>::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 CosTrading::Register::InterfaceTypeMismatch &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::InterfaceTypeMismatch>::insert_copy (
      _tao_any,
      CosTrading::Register::InterfaceTypeMismatch::_tao_any_destructor,
      CosTrading::Register::_tc_InterfaceTypeMismatch,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::InterfaceTypeMismatch *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::InterfaceTypeMismatch>::extract (
        _tao_any,
        CosTrading::Register::InterfaceTypeMismatch::_tao_any_destructor,
        CosTrading::Register::_tc_InterfaceTypeMismatch,
        _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<CosTrading::Register::ProxyOfferId>::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 CosTrading::Register::ProxyOfferId &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::ProxyOfferId>::insert_copy (
      _tao_any,
      CosTrading::Register::ProxyOfferId::_tao_any_destructor,
      CosTrading::Register::_tc_ProxyOfferId,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::ProxyOfferId *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::ProxyOfferId>::extract (
        _tao_any,
        CosTrading::Register::ProxyOfferId::_tao_any_destructor,
        CosTrading::Register::_tc_ProxyOfferId,
        _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<CosTrading::Register::MandatoryProperty>::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 CosTrading::Register::MandatoryProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::MandatoryProperty>::insert_copy (
      _tao_any,
      CosTrading::Register::MandatoryProperty::_tao_any_destructor,
      CosTrading::Register::_tc_MandatoryProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::MandatoryProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::MandatoryProperty>::extract (
        _tao_any,
        CosTrading::Register::MandatoryProperty::_tao_any_destructor,
        CosTrading::Register::_tc_MandatoryProperty,
        _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<CosTrading::Register::ReadonlyProperty>::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 CosTrading::Register::ReadonlyProperty &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::ReadonlyProperty>::insert_copy (
      _tao_any,
      CosTrading::Register::ReadonlyProperty::_tao_any_destructor,
      CosTrading::Register::_tc_ReadonlyProperty,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::ReadonlyProperty *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::ReadonlyProperty>::extract (
        _tao_any,
        CosTrading::Register::ReadonlyProperty::_tao_any_destructor,
        CosTrading::Register::_tc_ReadonlyProperty,
        _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<CosTrading::Register::NoMatchingOffers>::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 CosTrading::Register::NoMatchingOffers &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::NoMatchingOffers>::insert_copy (
      _tao_any,
      CosTrading::Register::NoMatchingOffers::_tao_any_destructor,
      CosTrading::Register::_tc_NoMatchingOffers,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::NoMatchingOffers *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::NoMatchingOffers>::extract (
        _tao_any,
        CosTrading::Register::NoMatchingOffers::_tao_any_destructor,
        CosTrading::Register::_tc_NoMatchingOffers,
        _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<CosTrading::Register::IllegalTraderName>::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 CosTrading::Register::IllegalTraderName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::IllegalTraderName>::insert_copy (
      _tao_any,
      CosTrading::Register::IllegalTraderName::_tao_any_destructor,
      CosTrading::Register::_tc_IllegalTraderName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::IllegalTraderName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::IllegalTraderName>::extract (
        _tao_any,
        CosTrading::Register::IllegalTraderName::_tao_any_destructor,
        CosTrading::Register::_tc_IllegalTraderName,
        _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<CosTrading::Register::UnknownTraderName>::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 CosTrading::Register::UnknownTraderName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::UnknownTraderName>::insert_copy (
      _tao_any,
      CosTrading::Register::UnknownTraderName::_tao_any_destructor,
      CosTrading::Register::_tc_UnknownTraderName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Register::UnknownTraderName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Register::UnknownTraderName>::extract (
        _tao_any,
        CosTrading::Register::UnknownTraderName::_tao_any_destructor,
        CosTrading::Register::_tc_UnknownTraderName,
        _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<CosTrading::Register::RegisterNotSupported>::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 CosTrading::Register::RegisterNotSupported &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Register::RegisterNotSupported>::insert_copy (
      _tao_any,
      CosTrading::Register::RegisterNotSupported::_tao_any_destructor,
      CosTrading::Register::_tc_RegisterNotSupported,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::Link>::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,
    CosTrading::Link_ptr _tao_elem
  )
{
  CosTrading::Link_ptr _tao_objptr =
    CosTrading::Link::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Link_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::Link>::insert (
      _tao_any,
      CosTrading::Link::_tao_any_destructor,
      CosTrading::_tc_Link,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Link_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::Link>::extract (
        _tao_any,
        CosTrading::Link::_tao_any_destructor,
        CosTrading::_tc_Link,
        _tao_elem
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTrading::Link::LinkInfo &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::LinkInfo>::insert_copy (
      _tao_any,
      CosTrading::Link::LinkInfo::_tao_any_destructor,
      CosTrading::Link::_tc_LinkInfo,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Link::LinkInfo *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Link::LinkInfo>::extract (
        _tao_any,
        CosTrading::Link::LinkInfo::_tao_any_destructor,
        CosTrading::Link::_tc_LinkInfo,
        _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<CosTrading::Link::IllegalLinkName>::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 CosTrading::Link::IllegalLinkName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::IllegalLinkName>::insert_copy (
      _tao_any,
      CosTrading::Link::IllegalLinkName::_tao_any_destructor,
      CosTrading::Link::_tc_IllegalLinkName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Link::IllegalLinkName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Link::IllegalLinkName>::extract (
        _tao_any,
        CosTrading::Link::IllegalLinkName::_tao_any_destructor,
        CosTrading::Link::_tc_IllegalLinkName,
        _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<CosTrading::Link::UnknownLinkName>::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 CosTrading::Link::UnknownLinkName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::UnknownLinkName>::insert_copy (
      _tao_any,
      CosTrading::Link::UnknownLinkName::_tao_any_destructor,
      CosTrading::Link::_tc_UnknownLinkName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Link::UnknownLinkName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Link::UnknownLinkName>::extract (
        _tao_any,
        CosTrading::Link::UnknownLinkName::_tao_any_destructor,
        CosTrading::Link::_tc_UnknownLinkName,
        _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<CosTrading::Link::DuplicateLinkName>::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 CosTrading::Link::DuplicateLinkName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::DuplicateLinkName>::insert_copy (
      _tao_any,
      CosTrading::Link::DuplicateLinkName::_tao_any_destructor,
      CosTrading::Link::_tc_DuplicateLinkName,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Link::DuplicateLinkName *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Link::DuplicateLinkName>::extract (
        _tao_any,
        CosTrading::Link::DuplicateLinkName::_tao_any_destructor,
        CosTrading::Link::_tc_DuplicateLinkName,
        _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<CosTrading::Link::DefaultFollowTooPermissive>::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 CosTrading::Link::DefaultFollowTooPermissive &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::DefaultFollowTooPermissive>::insert_copy (
      _tao_any,
      CosTrading::Link::DefaultFollowTooPermissive::_tao_any_destructor,
      CosTrading::Link::_tc_DefaultFollowTooPermissive,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Link::DefaultFollowTooPermissive *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Link::DefaultFollowTooPermissive>::extract (
        _tao_any,
        CosTrading::Link::DefaultFollowTooPermissive::_tao_any_destructor,
        CosTrading::Link::_tc_DefaultFollowTooPermissive,
        _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<CosTrading::Link::LimitingFollowTooPermissive>::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 CosTrading::Link::LimitingFollowTooPermissive &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Link::LimitingFollowTooPermissive>::insert_copy (
      _tao_any,
      CosTrading::Link::LimitingFollowTooPermissive::_tao_any_destructor,
      CosTrading::Link::_tc_LimitingFollowTooPermissive,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::Proxy>::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,
    CosTrading::Proxy_ptr _tao_elem
  )
{
  CosTrading::Proxy_ptr _tao_objptr =
    CosTrading::Proxy::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Proxy_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::Proxy>::insert (
      _tao_any,
      CosTrading::Proxy::_tao_any_destructor,
      CosTrading::_tc_Proxy,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Proxy_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::Proxy>::extract (
        _tao_any,
        CosTrading::Proxy::_tao_any_destructor,
        CosTrading::_tc_Proxy,
        _tao_elem
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTrading::Proxy::ProxyInfo &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Proxy::ProxyInfo>::insert_copy (
      _tao_any,
      CosTrading::Proxy::ProxyInfo::_tao_any_destructor,
      CosTrading::Proxy::_tc_ProxyInfo,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Proxy::ProxyInfo *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Proxy::ProxyInfo>::extract (
        _tao_any,
        CosTrading::Proxy::ProxyInfo::_tao_any_destructor,
        CosTrading::Proxy::_tc_ProxyInfo,
        _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<CosTrading::Proxy::IllegalRecipe>::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 CosTrading::Proxy::IllegalRecipe &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Proxy::IllegalRecipe>::insert_copy (
      _tao_any,
      CosTrading::Proxy::IllegalRecipe::_tao_any_destructor,
      CosTrading::Proxy::_tc_IllegalRecipe,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTrading::Proxy::IllegalRecipe *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTrading::Proxy::IllegalRecipe>::extract (
        _tao_any,
        CosTrading::Proxy::IllegalRecipe::_tao_any_destructor,
        CosTrading::Proxy::_tc_IllegalRecipe,
        _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<CosTrading::Proxy::NotProxyOfferId>::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 CosTrading::Proxy::NotProxyOfferId &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Proxy::NotProxyOfferId>::insert_copy (
      _tao_any,
      CosTrading::Proxy::NotProxyOfferId::_tao_any_destructor,
      CosTrading::Proxy::_tc_NotProxyOfferId,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::Admin>::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,
    CosTrading::Admin_ptr _tao_elem
  )
{
  CosTrading::Admin_ptr _tao_objptr =
    CosTrading::Admin::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::Admin_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::Admin>::insert (
      _tao_any,
      CosTrading::Admin::_tao_any_destructor,
      CosTrading::_tc_Admin,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::Admin_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::Admin>::extract (
        _tao_any,
        CosTrading::Admin::_tao_any_destructor,
        CosTrading::_tc_Admin,
        _tao_elem
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTrading::Admin::OctetSeq &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTrading::Admin::OctetSeq>::insert_copy (
      _tao_any,
      CosTrading::Admin::OctetSeq::_tao_any_destructor,
      CosTrading::Admin::_tc_OctetSeq,
      _tao_elem
    );
}

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

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

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

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::OfferIterator>::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,
    CosTrading::OfferIterator_ptr _tao_elem
  )
{
  CosTrading::OfferIterator_ptr _tao_objptr =
    CosTrading::OfferIterator::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::OfferIterator_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::OfferIterator>::insert (
      _tao_any,
      CosTrading::OfferIterator::_tao_any_destructor,
      CosTrading::_tc_OfferIterator,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::OfferIterator_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::OfferIterator>::extract (
        _tao_any,
        CosTrading::OfferIterator::_tao_any_destructor,
        CosTrading::_tc_OfferIterator,
        _tao_elem
      );
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTrading::OfferIdIterator>::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,
    CosTrading::OfferIdIterator_ptr _tao_elem
  )
{
  CosTrading::OfferIdIterator_ptr _tao_objptr =
    CosTrading::OfferIdIterator::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTrading::OfferIdIterator_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTrading::OfferIdIterator>::insert (
      _tao_any,
      CosTrading::OfferIdIterator::_tao_any_destructor,
      CosTrading::_tc_OfferIdIterator,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTrading::OfferIdIterator_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTrading::OfferIdIterator>::extract (
        _tao_any,
        CosTrading::OfferIdIterator::_tao_any_destructor,
        CosTrading::_tc_OfferIdIterator,
        _tao_elem
      );
}

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

#if !defined _TAO_CDR_OP_CosTrading_PropertyNameSeq_CPP_
#define _TAO_CDR_OP_CosTrading_PropertyNameSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::PropertyNameSeq &_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,
    CosTrading::PropertyNameSeq &_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_CosTrading_PropertyNameSeq_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Property &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.name.in ()) &&
    (strm << _tao_aggregate.value);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Property &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.name.out ()) &&
    (strm >> _tao_aggregate.value);
}

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

#if !defined _TAO_CDR_OP_CosTrading_PropertySeq_CPP_
#define _TAO_CDR_OP_CosTrading_PropertySeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::PropertySeq &_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,
    CosTrading::PropertySeq &_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_CosTrading_PropertySeq_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Offer &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.reference.in ()) &&
    (strm << _tao_aggregate.properties);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Offer &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.reference.out ()) &&
    (strm >> _tao_aggregate.properties);
}

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

#if !defined _TAO_CDR_OP_CosTrading_OfferSeq_CPP_
#define _TAO_CDR_OP_CosTrading_OfferSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::OfferSeq &_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,
    CosTrading::OfferSeq &_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_CosTrading_OfferSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTrading_OfferIdSeq_CPP_
#define _TAO_CDR_OP_CosTrading_OfferIdSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::OfferIdSeq &_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,
    CosTrading::OfferIdSeq &_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_CosTrading_OfferIdSeq_CPP_ */

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

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

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

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

#if !defined _TAO_CDR_OP_CosTrading_LinkNameSeq_CPP_
#define _TAO_CDR_OP_CosTrading_LinkNameSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::LinkNameSeq &_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,
    CosTrading::LinkNameSeq &_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_CosTrading_LinkNameSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTrading_PolicyNameSeq_CPP_
#define _TAO_CDR_OP_CosTrading_PolicyNameSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::PolicyNameSeq &_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,
    CosTrading::PolicyNameSeq &_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_CosTrading_PolicyNameSeq_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Policy &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.name.in ()) &&
    (strm << _tao_aggregate.value);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Policy &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.name.out ()) &&
    (strm >> _tao_aggregate.value);
}

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

#if !defined _TAO_CDR_OP_CosTrading_PolicySeq_CPP_
#define _TAO_CDR_OP_CosTrading_PolicySeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::PolicySeq &_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,
    CosTrading::PolicySeq &_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_CosTrading_PolicySeq_CPP_ */

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosTrading::UnknownMaxLeft&
  )
{
  return 1;
}

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosTrading::NotImplemented&
  )
{
  return 1;
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::IllegalServiceType &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::IllegalServiceType &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.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 CosTrading::UnknownServiceType &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::UnknownServiceType &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.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 CosTrading::IllegalPropertyName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::IllegalPropertyName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::DuplicatePropertyName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::DuplicatePropertyName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::PropertyTypeMismatch &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.prop)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::PropertyTypeMismatch &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.prop)
  )
    {
      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 CosTrading::MissingMandatoryProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::MissingMandatoryProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.name.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 CosTrading::ReadonlyDynamicProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::ReadonlyDynamicProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.name.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 CosTrading::IllegalConstraint &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.constr.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::IllegalConstraint &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.constr.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 CosTrading::InvalidLookupRef &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        CORBA::Object::marshal (
            _tao_aggregate.target.in (),
            strm
          )
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::InvalidLookupRef &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.target.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 CosTrading::IllegalOfferId &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.id.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::IllegalOfferId &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.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 CosTrading::UnknownOfferId &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.id.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::UnknownOfferId &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.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 CosTrading::DuplicatePolicyName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::DuplicatePolicyName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.out ())
  )
    {
      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 CosTrading::TraderComponents_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::TraderComponents_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTrading::TraderComponents RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTrading__TAO_TraderComponents_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 CosTrading::SupportAttributes_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::SupportAttributes_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTrading::SupportAttributes RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTrading__TAO_SupportAttributes_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 CosTrading::ImportAttributes_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::ImportAttributes_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTrading::ImportAttributes RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTrading__TAO_ImportAttributes_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 CosTrading::LinkAttributes_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

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

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

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

// TAO_IDL - Generated from
// be/be_visitor_union/cdr_op_cs.cpp:67

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Lookup::SpecifiedProps &_tao_union
  )
{
  if ( !(strm << _tao_union._d ()) )
    {
      return 0;
    }
  
  CORBA::Boolean result = 1;
  
  switch (_tao_union._d ())
  {
    case CosTrading::Lookup::some:
      {
        result = strm << _tao_union.prop_names ();
      }
      break;
    default:
      break;
  }
  
  return result;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Lookup::SpecifiedProps &_tao_union
  )
{
  CosTrading::Lookup::HowManyProps _tao_discriminant;
  if ( !(strm >> _tao_discriminant) )
    {
      return 0;
    }
  
  CORBA::Boolean result = 1;
  
  switch (_tao_discriminant)
  {
    case CosTrading::Lookup::some:
      {
        CosTrading::PropertyNameSeq _tao_union_tmp;
        result = strm >> _tao_union_tmp;
        
        if (result)
          {
            _tao_union.prop_names (_tao_union_tmp);
            _tao_union._d (_tao_discriminant);
          }
      }
      break;
    default:
      _tao_union._d (_tao_discriminant);
      break;
  }
  
  return result;
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Lookup::IllegalPreference &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.pref.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Lookup::IllegalPreference &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.pref.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 CosTrading::Lookup::IllegalPolicyName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Lookup::IllegalPolicyName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::Lookup::PolicyTypeMismatch &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.the_policy)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Lookup::PolicyTypeMismatch &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.the_policy)
  )
    {
      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 CosTrading::Lookup::InvalidPolicyValue &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.the_policy)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Lookup::InvalidPolicyValue &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.the_policy)
  )
    {
      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 CosTrading::Lookup_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Register::OfferInfo &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.reference.in ()) &&
    (strm << _tao_aggregate.type.in ()) &&
    (strm << _tao_aggregate.properties);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::OfferInfo &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.reference.out ()) &&
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.properties);
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Register::InvalidObjectRef &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.ref.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::InvalidObjectRef &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.ref.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 CosTrading::Register::UnknownPropertyName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::UnknownPropertyName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::Register::InterfaceTypeMismatch &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.reference.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::InterfaceTypeMismatch &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.reference.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 CosTrading::Register::ProxyOfferId &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.id.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::ProxyOfferId &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.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 CosTrading::Register::MandatoryProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::MandatoryProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.name.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 CosTrading::Register::ReadonlyProperty &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type.in ()) &&
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::ReadonlyProperty &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.name.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 CosTrading::Register::NoMatchingOffers &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.constr.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::NoMatchingOffers &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.constr.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 CosTrading::Register::IllegalTraderName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::IllegalTraderName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name)
  )
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Register::UnknownTraderName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::UnknownTraderName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name)
  )
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Register::RegisterNotSupported &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Register::RegisterNotSupported &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name)
  )
    {
      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 CosTrading::Register_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Link::LinkInfo &_tao_aggregate
  )
{
  return
    CORBA::Object::marshal (
        _tao_aggregate.target.in (),
        strm
      ) &&
    CORBA::Object::marshal (
        _tao_aggregate.target_reg.in (),
        strm
      ) &&
    (strm << _tao_aggregate.def_pass_on_follow_rule) &&
    (strm << _tao_aggregate.limiting_follow_rule);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::LinkInfo &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.target.out ()) &&
    (strm >> _tao_aggregate.target_reg.out ()) &&
    (strm >> _tao_aggregate.def_pass_on_follow_rule) &&
    (strm >> _tao_aggregate.limiting_follow_rule);
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Link::IllegalLinkName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::IllegalLinkName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::Link::UnknownLinkName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::UnknownLinkName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::Link::DuplicateLinkName &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.name.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::DuplicateLinkName &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.name.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 CosTrading::Link::DefaultFollowTooPermissive &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.def_pass_on_follow_rule) &&
        (strm << _tao_aggregate.limiting_follow_rule)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::DefaultFollowTooPermissive &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.def_pass_on_follow_rule) &&
    (strm >> _tao_aggregate.limiting_follow_rule)
  )
    {
      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 CosTrading::Link::LimitingFollowTooPermissive &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.limiting_follow_rule) &&
        (strm << _tao_aggregate.max_link_follow_policy)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Link::LimitingFollowTooPermissive &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.limiting_follow_rule) &&
    (strm >> _tao_aggregate.max_link_follow_policy)
  )
    {
      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 CosTrading::Link_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Proxy::ProxyInfo &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.type.in ()) &&
    CORBA::Object::marshal (
        _tao_aggregate.target.in (),
        strm
      ) &&
    (strm << _tao_aggregate.properties) &&
    (strm << CORBA::Any::from_boolean (_tao_aggregate.if_match_all)) &&
    (strm << _tao_aggregate.recipe.in ()) &&
    (strm << _tao_aggregate.policies_to_pass_on);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Proxy::ProxyInfo &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.type.out ()) &&
    (strm >> _tao_aggregate.target.out ()) &&
    (strm >> _tao_aggregate.properties) &&
    (strm >> CORBA::Any::to_boolean (_tao_aggregate.if_match_all)) &&
    (strm >> _tao_aggregate.recipe.out ()) &&
    (strm >> _tao_aggregate.policies_to_pass_on);
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Proxy::IllegalRecipe &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.recipe.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Proxy::IllegalRecipe &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.recipe.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 CosTrading::Proxy::NotProxyOfferId &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.id.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Proxy::NotProxyOfferId &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.id.out ())
  )
    {
      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 CosTrading::Proxy_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

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

#if !defined _TAO_CDR_OP_CosTrading_Admin_OctetSeq_CPP_
#define _TAO_CDR_OP_CosTrading_Admin_OctetSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTrading::Admin::OctetSeq &_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> *> ((CosTrading::Admin::OctetSeq *)&_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,
    CosTrading::Admin::OctetSeq &_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_CosTrading_Admin_OctetSeq_CPP_ */

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

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::Admin_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTrading::Admin RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTrading__TAO_Admin_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 CosTrading::OfferIterator_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTrading::OfferIterator_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTrading::OfferIterator RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTrading__TAO_OfferIterator_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 CosTrading::OfferIdIterator_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

