// -*- 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 "CosTradingReposC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.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/Fixed_Size_Argument_T.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 "CosTradingReposC.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 */
  
  // 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_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 */
  
  // 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: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 */
  
  // 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_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 */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_SERVICETYPENAMESEQ__ARG_TRAITS_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_SERVICETYPENAMESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq,
            CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq_var,
            CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq_out
          >
  {
  };

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_PROPSTRUCTSEQ__ARG_TRAITS_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_PROPSTRUCTSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTradingRepos::ServiceTypeRepository::PropStructSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosTradingRepos::ServiceTypeRepository::PropStructSeq,
            CosTradingRepos::ServiceTypeRepository::PropStructSeq_var,
            CosTradingRepos::ServiceTypeRepository::PropStructSeq_out
          >
  {
  };

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_INCARNATIONNUMBER__ARG_TRAITS_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_INCARNATIONNUMBER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTradingRepos::ServiceTypeRepository::IncarnationNumber>
    : public
        Fixed_Size_Arg_Traits_T<
            CosTradingRepos::ServiceTypeRepository::IncarnationNumber
          >
  {
  };

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_TYPESTRUCT__ARG_TRAITS_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_TYPESTRUCT__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTradingRepos::ServiceTypeRepository::TypeStruct>
    : public
        Var_Size_Arg_Traits_T<
            CosTradingRepos::ServiceTypeRepository::TypeStruct,
            CosTradingRepos::ServiceTypeRepository::TypeStruct_var,
            CosTradingRepos::ServiceTypeRepository::TypeStruct_out
          >
  {
  };

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_SPECIFIEDSERVICETYPES__ARG_TRAITS_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_SPECIFIEDSERVICETYPES__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Trading_Export Arg_Traits<CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes>
    : public
        Fixed_Size_Arg_Traits_T<
            CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes
          >
  {
  };

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


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

// Traits specializations for CosTradingRepos::ServiceTypeRepository.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTradingRepos::ServiceTypeRepository_ptr
TAO::Objref_Traits<CosTradingRepos::ServiceTypeRepository>::tao_duplicate (
    CosTradingRepos::ServiceTypeRepository_ptr p
  )
{
  return CosTradingRepos::ServiceTypeRepository::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosTradingRepos::ServiceTypeRepository>::tao_release (
    CosTradingRepos::ServiceTypeRepository_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosTradingRepos::ServiceTypeRepository_ptr
TAO::Objref_Traits<CosTradingRepos::ServiceTypeRepository>::tao_nil (void)
{
  return CosTradingRepos::ServiceTypeRepository::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosTradingRepos::ServiceTypeRepository>::tao_marshal (
    CosTradingRepos::ServiceTypeRepository_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_SERVICETYPENAMESEQ_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_SERVICETYPENAMESEQ_CS_

CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::ServiceTypeNameSeq (void)
{}

CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::ServiceTypeNameSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::ServiceTypeNameSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    char * * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_String_Sequence
    (max, length, buffer, release)
{}

CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::ServiceTypeNameSeq (
    const ServiceTypeNameSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::~ServiceTypeNameSeq (void)
{}

void CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  ServiceTypeNameSeq * _tao_tmp_pointer =
    static_cast<ServiceTypeNameSeq *> (_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_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  73,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5365), 
  ACE_NTOHL (0x72766963), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x654e616d), 
  ACE_NTOHL (0x65536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeNameSeq:1.0
    19,
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x7970654e), 
  ACE_NTOHL (0x616d6553), 
  ACE_NTOHL (0x65710000),  // name = ServiceTypeNameSeq
    CORBA::tk_sequence, // typecode kind
  160, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    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


    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeNameSeq =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq;

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_PropertyMode[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  67,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5072), 
  ACE_NTOHL (0x6f706572), 
  ACE_NTOHL (0x74794d6f), 
  ACE_NTOHL (0x64653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
  13,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x65727479), 
  ACE_NTOHL (0x4d6f6465), 
  ACE_NTOHL (0x0),  // name = PropertyMode
  4, // member count
  12,
  ACE_NTOHL (0x50524f50), 
  ACE_NTOHL (0x5f4e4f52), 
  ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
  14,
  ACE_NTOHL (0x50524f50), 
  ACE_NTOHL (0x5f524541), 
  ACE_NTOHL (0x444f4e4c), 
  ACE_NTOHL (0x59000000),  // name = PROP_READONLY
  15,
  ACE_NTOHL (0x50524f50), 
  ACE_NTOHL (0x5f4d414e), 
  ACE_NTOHL (0x4441544f), 
  ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
  24,
  ACE_NTOHL (0x50524f50), 
  ACE_NTOHL (0x5f4d414e), 
  ACE_NTOHL (0x4441544f), 
  ACE_NTOHL (0x52595f52), 
  ACE_NTOHL (0x4541444f), 
  ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
  };

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropertyMode (
    CORBA::tk_enum,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_PropertyMode),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_PropertyMode,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::PropertyMode)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_PropertyMode =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropertyMode;

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_PropStruct[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  65,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5072), 
  ACE_NTOHL (0x6f705374), 
  ACE_NTOHL (0x72756374), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0
    11,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x53747275), 
  ACE_NTOHL (0x63740000),  // name = PropStruct
  3, // 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


  11,
  ACE_NTOHL (0x76616c75), 
  ACE_NTOHL (0x655f7479), 
  ACE_NTOHL (0x70650000),  // name = value_type
    CORBA::tk_TypeCode,

  5,
  ACE_NTOHL (0x6d6f6465), 
  ACE_NTOHL (0x0),  // name = mode
    CORBA::tk_enum, // typecode kind
  184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    67,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f5072), 
    ACE_NTOHL (0x6f706572), 
    ACE_NTOHL (0x74794d6f), 
    ACE_NTOHL (0x64653a31), 
    ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
    13,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x65727479), 
    ACE_NTOHL (0x4d6f6465), 
    ACE_NTOHL (0x0),  // name = PropertyMode
    4, // member count
    12,
    ACE_NTOHL (0x50524f50), 
    ACE_NTOHL (0x5f4e4f52), 
    ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
    14,
    ACE_NTOHL (0x50524f50), 
    ACE_NTOHL (0x5f524541), 
    ACE_NTOHL (0x444f4e4c), 
    ACE_NTOHL (0x59000000),  // name = PROP_READONLY
    15,
    ACE_NTOHL (0x50524f50), 
    ACE_NTOHL (0x5f4d414e), 
    ACE_NTOHL (0x4441544f), 
    ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
    24,
    ACE_NTOHL (0x50524f50), 
    ACE_NTOHL (0x5f4d414e), 
    ACE_NTOHL (0x4441544f), 
    ACE_NTOHL (0x52595f52), 
    ACE_NTOHL (0x4541444f), 
    ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
    
};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropStruct (
    CORBA::tk_struct,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_PropStruct),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_PropStruct,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::PropStruct)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_PropStruct =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropStruct;

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

void 
CosTradingRepos::ServiceTypeRepository::PropStruct::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  PropStruct *_tao_tmp_pointer =
    static_cast<PropStruct *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

#if !defined (_COSTRADINGREPOS_SERVICETYPEREPOSITORY_PROPSTRUCTSEQ_CS_)
#define _COSTRADINGREPOS_SERVICETYPEREPOSITORY_PROPSTRUCTSEQ_CS_

CosTradingRepos::ServiceTypeRepository::PropStructSeq::PropStructSeq (void)
{}

CosTradingRepos::ServiceTypeRepository::PropStructSeq::PropStructSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CosTradingRepos::ServiceTypeRepository::PropStruct
      >
    (max)
{}

CosTradingRepos::ServiceTypeRepository::PropStructSeq::PropStructSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CosTradingRepos::ServiceTypeRepository::PropStruct * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CosTradingRepos::ServiceTypeRepository::PropStruct
      >
    (max, length, buffer, release)
{}

CosTradingRepos::ServiceTypeRepository::PropStructSeq::PropStructSeq (
    const PropStructSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CosTradingRepos::ServiceTypeRepository::PropStruct
      >
    (seq)
{}

CosTradingRepos::ServiceTypeRepository::PropStructSeq::~PropStructSeq (void)
{}

void CosTradingRepos::ServiceTypeRepository::PropStructSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  PropStructSeq * _tao_tmp_pointer =
    static_cast<PropStructSeq *> (_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_CosTradingRepos_ServiceTypeRepository_PropStructSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  68,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5072), 
  ACE_NTOHL (0x6f705374), 
  ACE_NTOHL (0x72756374), 
  ACE_NTOHL (0x5365713a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStructSeq:1.0
    14,
  ACE_NTOHL (0x50726f70), 
  ACE_NTOHL (0x53747275), 
  ACE_NTOHL (0x63745365), 
  ACE_NTOHL (0x71000000),  // name = PropStructSeq
    CORBA::tk_sequence, // typecode kind
  496, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    480, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      65,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e675265), 
      ACE_NTOHL (0x706f732f), 
      ACE_NTOHL (0x53657276), 
      ACE_NTOHL (0x69636554), 
      ACE_NTOHL (0x79706552), 
      ACE_NTOHL (0x65706f73), 
      ACE_NTOHL (0x69746f72), 
      ACE_NTOHL (0x792f5072), 
      ACE_NTOHL (0x6f705374), 
      ACE_NTOHL (0x72756374), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0
            11,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x53747275), 
      ACE_NTOHL (0x63740000),  // name = PropStruct
      3, // 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


      11,
      ACE_NTOHL (0x76616c75), 
      ACE_NTOHL (0x655f7479), 
      ACE_NTOHL (0x70650000),  // name = value_type
            CORBA::tk_TypeCode,

      5,
      ACE_NTOHL (0x6d6f6465), 
      ACE_NTOHL (0x0),  // name = mode
            CORBA::tk_enum, // typecode kind
      184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
        67,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e675265), 
        ACE_NTOHL (0x706f732f), 
        ACE_NTOHL (0x53657276), 
        ACE_NTOHL (0x69636554), 
        ACE_NTOHL (0x79706552), 
        ACE_NTOHL (0x65706f73), 
        ACE_NTOHL (0x69746f72), 
        ACE_NTOHL (0x792f5072), 
        ACE_NTOHL (0x6f706572), 
        ACE_NTOHL (0x74794d6f), 
        ACE_NTOHL (0x64653a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
        13,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x65727479), 
        ACE_NTOHL (0x4d6f6465), 
        ACE_NTOHL (0x0),  // name = PropertyMode
        4, // member count
        12,
        ACE_NTOHL (0x50524f50), 
        ACE_NTOHL (0x5f4e4f52), 
        ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
        14,
        ACE_NTOHL (0x50524f50), 
        ACE_NTOHL (0x5f524541), 
        ACE_NTOHL (0x444f4e4c), 
        ACE_NTOHL (0x59000000),  // name = PROP_READONLY
        15,
        ACE_NTOHL (0x50524f50), 
        ACE_NTOHL (0x5f4d414e), 
        ACE_NTOHL (0x4441544f), 
        ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
        24,
        ACE_NTOHL (0x50524f50), 
        ACE_NTOHL (0x5f4d414e), 
        ACE_NTOHL (0x4441544f), 
        ACE_NTOHL (0x52595f52), 
        ACE_NTOHL (0x4541444f), 
        ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
        

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropStructSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_PropStructSeq),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_PropStructSeq,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::PropStructSeq)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_PropStructSeq =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_PropStructSeq;

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_Identifier[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  65,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f4964), 
  ACE_NTOHL (0x656e7469), 
  ACE_NTOHL (0x66696572), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0
    11,
  ACE_NTOHL (0x4964656e), 
  ACE_NTOHL (0x74696669), 
  ACE_NTOHL (0x65720000),  // name = Identifier
    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_CosTradingRepos_ServiceTypeRepository_Identifier (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_Identifier),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_Identifier,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::Identifier)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_Identifier =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_Identifier;

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_IncarnationNumber[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  72,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f496e), 
  ACE_NTOHL (0x6361726e), 
  ACE_NTOHL (0x6174696f), 
  ACE_NTOHL (0x6e4e756d), 
  ACE_NTOHL (0x6265723a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0
    18,
  ACE_NTOHL (0x496e6361), 
  ACE_NTOHL (0x726e6174), 
  ACE_NTOHL (0x696f6e4e), 
  ACE_NTOHL (0x756d6265), 
  ACE_NTOHL (0x72000000),  // name = IncarnationNumber
  2, // member count
    5,
  ACE_NTOHL (0x68696768), 
  ACE_NTOHL (0x0),  // name = high
    CORBA::tk_ulong,

  4,
  ACE_NTOHL (0x6c6f7700),  // name = low
    CORBA::tk_ulong,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_IncarnationNumber (
    CORBA::tk_struct,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_IncarnationNumber),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_IncarnationNumber,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::IncarnationNumber)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_IncarnationNumber =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_IncarnationNumber;

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

void 
CosTradingRepos::ServiceTypeRepository::IncarnationNumber::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  IncarnationNumber *_tao_tmp_pointer =
    static_cast<IncarnationNumber *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_TypeStruct[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  65,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5479), 
  ACE_NTOHL (0x70655374), 
  ACE_NTOHL (0x72756374), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/TypeStruct:1.0
    11,
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x53747275), 
  ACE_NTOHL (0x63740000),  // name = TypeStruct
  5, // member count
    8,
  ACE_NTOHL (0x69665f6e), 
  ACE_NTOHL (0x616d6500),  // name = if_name
    CORBA::tk_alias, // typecode kind for typedefs
  164, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f4964), 
    ACE_NTOHL (0x656e7469), 
    ACE_NTOHL (0x66696572), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0
        11,
    ACE_NTOHL (0x4964656e), 
    ACE_NTOHL (0x74696669), 
    ACE_NTOHL (0x65720000),  // name = Identifier
        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 (0x70726f70), 
  ACE_NTOHL (0x73000000),  // name = props
    CORBA::tk_alias, // typecode kind for typedefs
  600, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    68,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f5072), 
    ACE_NTOHL (0x6f705374), 
    ACE_NTOHL (0x72756374), 
    ACE_NTOHL (0x5365713a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStructSeq:1.0
        14,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x53747275), 
    ACE_NTOHL (0x63745365), 
    ACE_NTOHL (0x71000000),  // name = PropStructSeq
        CORBA::tk_sequence, // typecode kind
    496, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_struct, // typecode kind
      480, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        65,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x436f7354), 
        ACE_NTOHL (0x72616469), 
        ACE_NTOHL (0x6e675265), 
        ACE_NTOHL (0x706f732f), 
        ACE_NTOHL (0x53657276), 
        ACE_NTOHL (0x69636554), 
        ACE_NTOHL (0x79706552), 
        ACE_NTOHL (0x65706f73), 
        ACE_NTOHL (0x69746f72), 
        ACE_NTOHL (0x792f5072), 
        ACE_NTOHL (0x6f705374), 
        ACE_NTOHL (0x72756374), 
        ACE_NTOHL (0x3a312e30), 
        ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0
                11,
        ACE_NTOHL (0x50726f70), 
        ACE_NTOHL (0x53747275), 
        ACE_NTOHL (0x63740000),  // name = PropStruct
        3, // 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


        11,
        ACE_NTOHL (0x76616c75), 
        ACE_NTOHL (0x655f7479), 
        ACE_NTOHL (0x70650000),  // name = value_type
                CORBA::tk_TypeCode,

        5,
        ACE_NTOHL (0x6d6f6465), 
        ACE_NTOHL (0x0),  // name = mode
                CORBA::tk_enum, // typecode kind
        184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
          67,
          ACE_NTOHL (0x49444c3a), 
          ACE_NTOHL (0x6f6d672e), 
          ACE_NTOHL (0x6f72672f), 
          ACE_NTOHL (0x436f7354), 
          ACE_NTOHL (0x72616469), 
          ACE_NTOHL (0x6e675265), 
          ACE_NTOHL (0x706f732f), 
          ACE_NTOHL (0x53657276), 
          ACE_NTOHL (0x69636554), 
          ACE_NTOHL (0x79706552), 
          ACE_NTOHL (0x65706f73), 
          ACE_NTOHL (0x69746f72), 
          ACE_NTOHL (0x792f5072), 
          ACE_NTOHL (0x6f706572), 
          ACE_NTOHL (0x74794d6f), 
          ACE_NTOHL (0x64653a31), 
          ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
          13,
          ACE_NTOHL (0x50726f70), 
          ACE_NTOHL (0x65727479), 
          ACE_NTOHL (0x4d6f6465), 
          ACE_NTOHL (0x0),  // name = PropertyMode
          4, // member count
          12,
          ACE_NTOHL (0x50524f50), 
          ACE_NTOHL (0x5f4e4f52), 
          ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
          14,
          ACE_NTOHL (0x50524f50), 
          ACE_NTOHL (0x5f524541), 
          ACE_NTOHL (0x444f4e4c), 
          ACE_NTOHL (0x59000000),  // name = PROP_READONLY
          15,
          ACE_NTOHL (0x50524f50), 
          ACE_NTOHL (0x5f4d414e), 
          ACE_NTOHL (0x4441544f), 
          ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
          24,
          ACE_NTOHL (0x50524f50), 
          ACE_NTOHL (0x5f4d414e), 
          ACE_NTOHL (0x4441544f), 
          ACE_NTOHL (0x52595f52), 
          ACE_NTOHL (0x4541444f), 
          ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
          

      0U,


  12,
  ACE_NTOHL (0x73757065), 
  ACE_NTOHL (0x725f7479), 
  ACE_NTOHL (0x70657300),  // name = super_types
    CORBA::tk_alias, // typecode kind for typedefs
  276, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    73,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f5365), 
    ACE_NTOHL (0x72766963), 
    ACE_NTOHL (0x65547970), 
    ACE_NTOHL (0x654e616d), 
    ACE_NTOHL (0x65536571), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeNameSeq:1.0
        19,
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x7970654e), 
    ACE_NTOHL (0x616d6553), 
    ACE_NTOHL (0x65710000),  // name = ServiceTypeNameSeq
        CORBA::tk_sequence, // typecode kind
    160, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      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


      0U,


  7,
  ACE_NTOHL (0x6d61736b), 
  ACE_NTOHL (0x65640000),  // name = masked
    CORBA::tk_boolean,

  12,
  ACE_NTOHL (0x696e6361), 
  ACE_NTOHL (0x726e6174), 
  ACE_NTOHL (0x696f6e00),  // name = incarnation
    CORBA::tk_struct, // typecode kind
  136, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    72,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f496e), 
    ACE_NTOHL (0x6361726e), 
    ACE_NTOHL (0x6174696f), 
    ACE_NTOHL (0x6e4e756d), 
    ACE_NTOHL (0x6265723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0
        18,
    ACE_NTOHL (0x496e6361), 
    ACE_NTOHL (0x726e6174), 
    ACE_NTOHL (0x696f6e4e), 
    ACE_NTOHL (0x756d6265), 
    ACE_NTOHL (0x72000000),  // name = IncarnationNumber
    2, // member count
        5,
    ACE_NTOHL (0x68696768), 
    ACE_NTOHL (0x0),  // name = high
        CORBA::tk_ulong,

    4,
    ACE_NTOHL (0x6c6f7700),  // name = low
        CORBA::tk_ulong,


};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_TypeStruct (
    CORBA::tk_struct,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_TypeStruct),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_TypeStruct,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::TypeStruct)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_TypeStruct =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_TypeStruct;

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

void 
CosTradingRepos::ServiceTypeRepository::TypeStruct::_tao_any_destructor (
    void *_tao_void_pointer
  )
{
  TypeStruct *_tao_tmp_pointer =
    static_cast<TypeStruct *> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_ListOption[] =
{
  TAO_ENCAP_BYTE_ORDER, // byte order
  65,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f4c69), 
  ACE_NTOHL (0x73744f70), 
  ACE_NTOHL (0x74696f6e), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ListOption:1.0
  11,
  ACE_NTOHL (0x4c697374), 
  ACE_NTOHL (0x4f707469), 
  ACE_NTOHL (0x6f6e0000),  // name = ListOption
  2, // member count
  4,
  ACE_NTOHL (0x616c6c00),  // name = all
  6,
  ACE_NTOHL (0x73696e63), 
  ACE_NTOHL (0x65000000),  // name = since
  };

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ListOption (
    CORBA::tk_enum,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_ListOption),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_ListOption,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::ListOption)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_ListOption =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ListOption;

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

CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::SpecifiedServiceTypes (void)
{
  ACE_OS::memset (&this->disc_, 0, sizeof (this->disc_));
  ACE_OS::memset (&this->u_, 0, sizeof (this->u_));
  this->disc_ = CosTradingRepos::ServiceTypeRepository::all;
}

CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::SpecifiedServiceTypes (const ::CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &u)
{
  this->disc_ = u.disc_;
  switch (this->disc_)
  {
    case CosTradingRepos::ServiceTypeRepository::all:
    {
      this->u_.all__ = u.u_.all__;
    }
    break;
    case CosTradingRepos::ServiceTypeRepository::since:
    {
      this->u_.incarnation_ = u.u_.incarnation_;
    }
    break;
    default:
    break;
  }
}

CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::~SpecifiedServiceTypes (void)
{
  // Finalize.
  this->_reset (this->disc_, 1);
}

void CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::_tao_any_destructor (void *_tao_void_pointer)
{
  SpecifiedServiceTypes *tmp =
    static_cast<SpecifiedServiceTypes *> (_tao_void_pointer);
  delete tmp;
}

CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &
CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::operator= (const ::CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &u)
{
  if (&u == this)
    {
      return *this;
    }
  
  this->_reset (u.disc_, 0);
  this->disc_ = u.disc_;
  
  switch (this->disc_)
  {
    case CosTradingRepos::ServiceTypeRepository::all:
    {
      this->u_.all__ = u.u_.all__;
    }
    break;
    case CosTradingRepos::ServiceTypeRepository::since:
    {
      this->u_.incarnation_ = u.u_.incarnation_;
    }
    break;
    default:
    break;
  }
  
  return *this;
}

// Reset method to reset old values of a union.
void CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::_reset (CosTradingRepos::ServiceTypeRepository::ListOption, CORBA::Boolean /*finalize*/)
{
  switch (this->disc_)
  {
    
    case CosTradingRepos::ServiceTypeRepository::all:
      break;
    case CosTradingRepos::ServiceTypeRepository::since:
      break;
    default:
    break;
  }
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_SpecifiedServiceTypes[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  76,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5370), 
  ACE_NTOHL (0x65636966), 
  ACE_NTOHL (0x69656453), 
  ACE_NTOHL (0x65727669), 
  ACE_NTOHL (0x63655479), 
  ACE_NTOHL (0x7065733a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/SpecifiedServiceTypes:1.0
  22,
  ACE_NTOHL (0x53706563), 
  ACE_NTOHL (0x69666965), 
  ACE_NTOHL (0x64536572), 
  ACE_NTOHL (0x76696365), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x73000000),  // name = SpecifiedServiceTypes
    CORBA::tk_enum, // typecode kind
  116, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f4c69), 
    ACE_NTOHL (0x73744f70), 
    ACE_NTOHL (0x74696f6e), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ListOption:1.0
    11,
    ACE_NTOHL (0x4c697374), 
    ACE_NTOHL (0x4f707469), 
    ACE_NTOHL (0x6f6e0000),  // name = ListOption
    2, // member count
    4,
    ACE_NTOHL (0x616c6c00),  // name = all
    6,
    ACE_NTOHL (0x73696e63), 
    ACE_NTOHL (0x65000000),  // name = since
    
-1, // default used index
  2, // member count
    0x00000000, // union case label (evaluated value)
  5,
  ACE_NTOHL (0x616c6c5f), 
  ACE_NTOHL (0x0),  // name = all_
    CORBA::tk_boolean,

  0x00000001, // union case label (evaluated value)
  12,
  ACE_NTOHL (0x696e6361), 
  ACE_NTOHL (0x726e6174), 
  ACE_NTOHL (0x696f6e00),  // name = incarnation
    CORBA::tk_struct, // typecode kind
  136, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    72,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f496e), 
    ACE_NTOHL (0x6361726e), 
    ACE_NTOHL (0x6174696f), 
    ACE_NTOHL (0x6e4e756d), 
    ACE_NTOHL (0x6265723a), 
    ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0
        18,
    ACE_NTOHL (0x496e6361), 
    ACE_NTOHL (0x726e6174), 
    ACE_NTOHL (0x696f6e4e), 
    ACE_NTOHL (0x756d6265), 
    ACE_NTOHL (0x72000000),  // name = IncarnationNumber
    2, // member count
        5,
    ACE_NTOHL (0x68696768), 
    ACE_NTOHL (0x0),  // name = high
        CORBA::tk_ulong,

    4,
    ACE_NTOHL (0x6c6f7700),  // name = low
        CORBA::tk_ulong,


};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_SpecifiedServiceTypes (
    CORBA::tk_union,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_SpecifiedServiceTypes),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_SpecifiedServiceTypes,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_SpecifiedServiceTypes =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_SpecifiedServiceTypes;

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

CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::ServiceTypeExists (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeExists:1.0",
        "ServiceTypeExists"
      )
{
}

CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::~ServiceTypeExists (void)
{
}

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

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

void CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_tao_any_destructor (void *_tao_void_pointer)
{
  ServiceTypeExists *_tao_tmp_pointer =
    static_cast<ServiceTypeExists*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::ServiceTypeExists, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::ServiceTypeExists (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_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

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

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeExists;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_ServiceTypeExists[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  72,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5365), 
  ACE_NTOHL (0x72766963), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x65457869), 
  ACE_NTOHL (0x7374733a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeExists:1.0
    18,
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706545), 
  ACE_NTOHL (0x78697374), 
  ACE_NTOHL (0x73000000),  // name = ServiceTypeExists
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    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_CosTradingRepos_ServiceTypeRepository_ServiceTypeExists (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_ServiceTypeExists),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_ServiceTypeExists,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::ServiceTypeExists)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeExists =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ServiceTypeExists;

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

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

CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::~InterfaceTypeMismatch (void)
{
}

CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::InterfaceTypeMismatch (const ::CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->base_service = CORBA::string_dup (_tao_excp.base_service.in ());
  this->base_if = CORBA::string_dup (_tao_excp.base_if.in ());
  this->derived_service = CORBA::string_dup (_tao_excp.derived_service.in ());
  this->derived_if = CORBA::string_dup (_tao_excp.derived_if.in ());
}

CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch&
CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::operator= (const ::CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->base_service = CORBA::string_dup (_tao_excp.base_service.in ());
  this->base_if = CORBA::string_dup (_tao_excp.base_if.in ());
  this->derived_service = CORBA::string_dup (_tao_excp.derived_service.in ());
  this->derived_if = CORBA::string_dup (_tao_excp.derived_if.in ());
  return *this;
}

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

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

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

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

void CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::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

CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::InterfaceTypeMismatch (
    const char * _tao_base_service,
    const char * _tao_base_if,
    const char * _tao_derived_service,
    const char * _tao_derived_if
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/InterfaceTypeMismatch:1.0",
        "InterfaceTypeMismatch"
      )
{
  this->base_service = CORBA::string_dup (_tao_base_service);
  this->base_if = CORBA::string_dup (_tao_base_if);
  this->derived_service = CORBA::string_dup (_tao_derived_service);
  this->derived_if = CORBA::string_dup (_tao_derived_if);
}

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

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_InterfaceTypeMismatch[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  76,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f496e), 
  ACE_NTOHL (0x74657266), 
  ACE_NTOHL (0x61636554), 
  ACE_NTOHL (0x7970654d), 
  ACE_NTOHL (0x69736d61), 
  ACE_NTOHL (0x7463683a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/InterfaceTypeMismatch:1.0
    22,
  ACE_NTOHL (0x496e7465), 
  ACE_NTOHL (0x72666163), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x654d6973), 
  ACE_NTOHL (0x6d617463), 
  ACE_NTOHL (0x68000000),  // name = InterfaceTypeMismatch
  4, // member count
    13,
  ACE_NTOHL (0x62617365), 
  ACE_NTOHL (0x5f736572), 
  ACE_NTOHL (0x76696365), 
  ACE_NTOHL (0x0),  // name = base_service
    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


  8,
  ACE_NTOHL (0x62617365), 
  ACE_NTOHL (0x5f696600),  // name = base_if
    CORBA::tk_alias, // typecode kind for typedefs
  164, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f4964), 
    ACE_NTOHL (0x656e7469), 
    ACE_NTOHL (0x66696572), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0
        11,
    ACE_NTOHL (0x4964656e), 
    ACE_NTOHL (0x74696669), 
    ACE_NTOHL (0x65720000),  // name = Identifier
        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


  16,
  ACE_NTOHL (0x64657269), 
  ACE_NTOHL (0x7665645f), 
  ACE_NTOHL (0x73657276), 
  ACE_NTOHL (0x69636500),  // name = derived_service
    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 (0x64657269), 
  ACE_NTOHL (0x7665645f), 
  ACE_NTOHL (0x69660000),  // name = derived_if
    CORBA::tk_alias, // typecode kind for typedefs
  164, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f4964), 
    ACE_NTOHL (0x656e7469), 
    ACE_NTOHL (0x66696572), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0
        11,
    ACE_NTOHL (0x4964656e), 
    ACE_NTOHL (0x74696669), 
    ACE_NTOHL (0x65720000),  // name = Identifier
        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_CosTradingRepos_ServiceTypeRepository_InterfaceTypeMismatch (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_InterfaceTypeMismatch),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_InterfaceTypeMismatch,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_InterfaceTypeMismatch =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_InterfaceTypeMismatch;

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

CosTradingRepos::ServiceTypeRepository::HasSubTypes::HasSubTypes (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/HasSubTypes:1.0",
        "HasSubTypes"
      )
{
}

CosTradingRepos::ServiceTypeRepository::HasSubTypes::~HasSubTypes (void)
{
}

CosTradingRepos::ServiceTypeRepository::HasSubTypes::HasSubTypes (const ::CosTradingRepos::ServiceTypeRepository::HasSubTypes &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->the_type = CORBA::string_dup (_tao_excp.the_type.in ());
  this->sub_type = CORBA::string_dup (_tao_excp.sub_type.in ());
}

CosTradingRepos::ServiceTypeRepository::HasSubTypes&
CosTradingRepos::ServiceTypeRepository::HasSubTypes::operator= (const ::CosTradingRepos::ServiceTypeRepository::HasSubTypes &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->the_type = CORBA::string_dup (_tao_excp.the_type.in ());
  this->sub_type = CORBA::string_dup (_tao_excp.sub_type.in ());
  return *this;
}

void CosTradingRepos::ServiceTypeRepository::HasSubTypes::_tao_any_destructor (void *_tao_void_pointer)
{
  HasSubTypes *_tao_tmp_pointer =
    static_cast<HasSubTypes*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::HasSubTypes::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::HasSubTypes, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::HasSubTypes::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::HasSubTypes (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::HasSubTypes::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::HasSubTypes::_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

CosTradingRepos::ServiceTypeRepository::HasSubTypes::HasSubTypes (
    const char * _tao_the_type,
    const char * _tao_sub_type
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/HasSubTypes:1.0",
        "HasSubTypes"
      )
{
  this->the_type = CORBA::string_dup (_tao_the_type);
  this->sub_type = CORBA::string_dup (_tao_sub_type);
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::HasSubTypes::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_HasSubTypes;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_HasSubTypes[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  66,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f4861), 
  ACE_NTOHL (0x73537562), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x733a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/HasSubTypes:1.0
    12,
  ACE_NTOHL (0x48617353), 
  ACE_NTOHL (0x75625479), 
  ACE_NTOHL (0x70657300),  // name = HasSubTypes
  2, // member count
    9,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = the_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


  9,
  ACE_NTOHL (0x7375625f), 
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x0),  // name = sub_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_CosTradingRepos_ServiceTypeRepository_HasSubTypes (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_HasSubTypes),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_HasSubTypes,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::HasSubTypes)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_HasSubTypes =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_HasSubTypes;

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

CosTradingRepos::ServiceTypeRepository::AlreadyMasked::AlreadyMasked (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/AlreadyMasked:1.0",
        "AlreadyMasked"
      )
{
}

CosTradingRepos::ServiceTypeRepository::AlreadyMasked::~AlreadyMasked (void)
{
}

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

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

void CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_tao_any_destructor (void *_tao_void_pointer)
{
  AlreadyMasked *_tao_tmp_pointer =
    static_cast<AlreadyMasked*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::AlreadyMasked, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::AlreadyMasked (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_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

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

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_AlreadyMasked;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_AlreadyMasked[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  68,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f416c), 
  ACE_NTOHL (0x72656164), 
  ACE_NTOHL (0x794d6173), 
  ACE_NTOHL (0x6b65643a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/AlreadyMasked:1.0
    14,
  ACE_NTOHL (0x416c7265), 
  ACE_NTOHL (0x6164794d), 
  ACE_NTOHL (0x61736b65), 
  ACE_NTOHL (0x64000000),  // name = AlreadyMasked
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    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_CosTradingRepos_ServiceTypeRepository_AlreadyMasked (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_AlreadyMasked),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_AlreadyMasked,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::AlreadyMasked)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_AlreadyMasked =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_AlreadyMasked;

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

CosTradingRepos::ServiceTypeRepository::NotMasked::NotMasked (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/NotMasked:1.0",
        "NotMasked"
      )
{
}

CosTradingRepos::ServiceTypeRepository::NotMasked::~NotMasked (void)
{
}

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

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

void CosTradingRepos::ServiceTypeRepository::NotMasked::_tao_any_destructor (void *_tao_void_pointer)
{
  NotMasked *_tao_tmp_pointer =
    static_cast<NotMasked*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::NotMasked::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::NotMasked, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::NotMasked::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::NotMasked (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::NotMasked::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::NotMasked::_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

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

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::NotMasked::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_NotMasked;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_NotMasked[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  64,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f4e6f), 
  ACE_NTOHL (0x744d6173), 
  ACE_NTOHL (0x6b65643a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/NotMasked:1.0
    10,
  ACE_NTOHL (0x4e6f744d), 
  ACE_NTOHL (0x61736b65), 
  ACE_NTOHL (0x64000000),  // name = NotMasked
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    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_CosTradingRepos_ServiceTypeRepository_NotMasked (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_NotMasked),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_NotMasked,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::NotMasked)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_NotMasked =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_NotMasked;

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

CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::ValueTypeRedefinition (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ValueTypeRedefinition:1.0",
        "ValueTypeRedefinition"
      )
{
}

CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::~ValueTypeRedefinition (void)
{
}

CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::ValueTypeRedefinition (const ::CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
  this->type_1 = CORBA::string_dup (_tao_excp.type_1.in ());
  this->definition_1 = _tao_excp.definition_1;
  this->type_2 = CORBA::string_dup (_tao_excp.type_2.in ());
  this->definition_2 = _tao_excp.definition_2;
}

CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition&
CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::operator= (const ::CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition &_tao_excp)
{
  this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
  this->type_1 = CORBA::string_dup (_tao_excp.type_1.in ());
  this->definition_1 = _tao_excp.definition_1;
  this->type_2 = CORBA::string_dup (_tao_excp.type_2.in ());
  this->definition_2 = _tao_excp.definition_2;
  return *this;
}

void CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_tao_any_destructor (void *_tao_void_pointer)
{
  ValueTypeRedefinition *_tao_tmp_pointer =
    static_cast<ValueTypeRedefinition*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_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

CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::ValueTypeRedefinition (
    const char * _tao_type_1,
    const CosTradingRepos::ServiceTypeRepository::PropStruct & _tao_definition_1,
    const char * _tao_type_2,
    const CosTradingRepos::ServiceTypeRepository::PropStruct & _tao_definition_2
  )
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ValueTypeRedefinition:1.0",
        "ValueTypeRedefinition"
      )
{
  this->type_1 = CORBA::string_dup (_tao_type_1);
  this->definition_1 = _tao_definition_1;
  this->type_2 = CORBA::string_dup (_tao_type_2);
  this->definition_2 = _tao_definition_2;
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_ValueTypeRedefinition;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_ValueTypeRedefinition[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  76,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f5661), 
  ACE_NTOHL (0x6c756554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65646566), 
  ACE_NTOHL (0x696e6974), 
  ACE_NTOHL (0x696f6e3a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ValueTypeRedefinition:1.0
    22,
  ACE_NTOHL (0x56616c75), 
  ACE_NTOHL (0x65547970), 
  ACE_NTOHL (0x65526564), 
  ACE_NTOHL (0x6566696e), 
  ACE_NTOHL (0x6974696f), 
  ACE_NTOHL (0x6e000000),  // name = ValueTypeRedefinition
  4, // member count
    7,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x5f310000),  // name = type_1
    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


  13,
  ACE_NTOHL (0x64656669), 
  ACE_NTOHL (0x6e697469), 
  ACE_NTOHL (0x6f6e5f31), 
  ACE_NTOHL (0x0),  // name = definition_1
    CORBA::tk_struct, // typecode kind
  480, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f5072), 
    ACE_NTOHL (0x6f705374), 
    ACE_NTOHL (0x72756374), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0
        11,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x53747275), 
    ACE_NTOHL (0x63740000),  // name = PropStruct
    3, // 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


    11,
    ACE_NTOHL (0x76616c75), 
    ACE_NTOHL (0x655f7479), 
    ACE_NTOHL (0x70650000),  // name = value_type
        CORBA::tk_TypeCode,

    5,
    ACE_NTOHL (0x6d6f6465), 
    ACE_NTOHL (0x0),  // name = mode
        CORBA::tk_enum, // typecode kind
    184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
      67,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e675265), 
      ACE_NTOHL (0x706f732f), 
      ACE_NTOHL (0x53657276), 
      ACE_NTOHL (0x69636554), 
      ACE_NTOHL (0x79706552), 
      ACE_NTOHL (0x65706f73), 
      ACE_NTOHL (0x69746f72), 
      ACE_NTOHL (0x792f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74794d6f), 
      ACE_NTOHL (0x64653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
      13,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x4d6f6465), 
      ACE_NTOHL (0x0),  // name = PropertyMode
      4, // member count
      12,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4e4f52), 
      ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
      14,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f524541), 
      ACE_NTOHL (0x444f4e4c), 
      ACE_NTOHL (0x59000000),  // name = PROP_READONLY
      15,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4d414e), 
      ACE_NTOHL (0x4441544f), 
      ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
      24,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4d414e), 
      ACE_NTOHL (0x4441544f), 
      ACE_NTOHL (0x52595f52), 
      ACE_NTOHL (0x4541444f), 
      ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
      

  7,
  ACE_NTOHL (0x74797065), 
  ACE_NTOHL (0x5f320000),  // name = type_2
    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


  13,
  ACE_NTOHL (0x64656669), 
  ACE_NTOHL (0x6e697469), 
  ACE_NTOHL (0x6f6e5f32), 
  ACE_NTOHL (0x0),  // name = definition_2
    CORBA::tk_struct, // typecode kind
  480, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    65,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x436f7354), 
    ACE_NTOHL (0x72616469), 
    ACE_NTOHL (0x6e675265), 
    ACE_NTOHL (0x706f732f), 
    ACE_NTOHL (0x53657276), 
    ACE_NTOHL (0x69636554), 
    ACE_NTOHL (0x79706552), 
    ACE_NTOHL (0x65706f73), 
    ACE_NTOHL (0x69746f72), 
    ACE_NTOHL (0x792f5072), 
    ACE_NTOHL (0x6f705374), 
    ACE_NTOHL (0x72756374), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0
        11,
    ACE_NTOHL (0x50726f70), 
    ACE_NTOHL (0x53747275), 
    ACE_NTOHL (0x63740000),  // name = PropStruct
    3, // 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


    11,
    ACE_NTOHL (0x76616c75), 
    ACE_NTOHL (0x655f7479), 
    ACE_NTOHL (0x70650000),  // name = value_type
        CORBA::tk_TypeCode,

    5,
    ACE_NTOHL (0x6d6f6465), 
    ACE_NTOHL (0x0),  // name = mode
        CORBA::tk_enum, // typecode kind
    184, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
      67,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x436f7354), 
      ACE_NTOHL (0x72616469), 
      ACE_NTOHL (0x6e675265), 
      ACE_NTOHL (0x706f732f), 
      ACE_NTOHL (0x53657276), 
      ACE_NTOHL (0x69636554), 
      ACE_NTOHL (0x79706552), 
      ACE_NTOHL (0x65706f73), 
      ACE_NTOHL (0x69746f72), 
      ACE_NTOHL (0x792f5072), 
      ACE_NTOHL (0x6f706572), 
      ACE_NTOHL (0x74794d6f), 
      ACE_NTOHL (0x64653a31), 
      ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0
      13,
      ACE_NTOHL (0x50726f70), 
      ACE_NTOHL (0x65727479), 
      ACE_NTOHL (0x4d6f6465), 
      ACE_NTOHL (0x0),  // name = PropertyMode
      4, // member count
      12,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4e4f52), 
      ACE_NTOHL (0x4d414c00),  // name = PROP_NORMAL
      14,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f524541), 
      ACE_NTOHL (0x444f4e4c), 
      ACE_NTOHL (0x59000000),  // name = PROP_READONLY
      15,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4d414e), 
      ACE_NTOHL (0x4441544f), 
      ACE_NTOHL (0x52590000),  // name = PROP_MANDATORY
      24,
      ACE_NTOHL (0x50524f50), 
      ACE_NTOHL (0x5f4d414e), 
      ACE_NTOHL (0x4441544f), 
      ACE_NTOHL (0x52595f52), 
      ACE_NTOHL (0x4541444f), 
      ACE_NTOHL (0x4e4c5900),  // name = PROP_MANDATORY_READONLY
      

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ValueTypeRedefinition (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_ValueTypeRedefinition),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_ValueTypeRedefinition,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_ValueTypeRedefinition =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_ValueTypeRedefinition;

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

CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::DuplicateServiceTypeName (void)
  : CORBA::UserException (
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/DuplicateServiceTypeName:1.0",
        "DuplicateServiceTypeName"
      )
{
}

CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::~DuplicateServiceTypeName (void)
{
}

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

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

void CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_tao_any_destructor (void *_tao_void_pointer)
{
  DuplicateServiceTypeName *_tao_tmp_pointer =
    static_cast<DuplicateServiceTypeName*> (_tao_void_pointer);
  delete _tao_tmp_pointer;
}

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

CORBA::Exception *CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName, 0);
  return retval;
}

CORBA::Exception *
CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName (*this),
      0
    );
  return result;
}

void CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_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

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

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_type (void) const
{
  return ::CosTradingRepos::ServiceTypeRepository::_tc_DuplicateServiceTypeName;
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository_DuplicateServiceTypeName[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  79,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x792f4475), 
  ACE_NTOHL (0x706c6963), 
  ACE_NTOHL (0x61746553), 
  ACE_NTOHL (0x65727669), 
  ACE_NTOHL (0x63655479), 
  ACE_NTOHL (0x70654e61), 
  ACE_NTOHL (0x6d653a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository/DuplicateServiceTypeName:1.0
    25,
  ACE_NTOHL (0x4475706c), 
  ACE_NTOHL (0x69636174), 
  ACE_NTOHL (0x65536572), 
  ACE_NTOHL (0x76696365), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x4e616d65), 
  ACE_NTOHL (0x0),  // name = DuplicateServiceTypeName
  1, // member count
    5,
  ACE_NTOHL (0x6e616d65), 
  ACE_NTOHL (0x0),  // name = name
    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_CosTradingRepos_ServiceTypeRepository_DuplicateServiceTypeName (
    CORBA::tk_except,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository_DuplicateServiceTypeName),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository_DuplicateServiceTypeName,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName)
  );

::CORBA::TypeCode_ptr CosTradingRepos::ServiceTypeRepository::_tc_DuplicateServiceTypeName =
  &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository_DuplicateServiceTypeName;

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

::CosTradingRepos::ServiceTypeRepository::IncarnationNumber CosTradingRepos::ServiceTypeRepository::incarnation (
    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_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::IncarnationNumber>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "_get_incarnation",
      16,
      this->the_TAO_ServiceTypeRepository_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

::CosTradingRepos::ServiceTypeRepository::IncarnationNumber CosTradingRepos::ServiceTypeRepository::add_type (
    const char * name,
    const char * if_name,
    const ::CosTradingRepos::ServiceTypeRepository::PropStructSeq & props,
    const ::CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq & super_types
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTradingRepos::ServiceTypeRepository::ServiceTypeExists,
    ::CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch,
    ::CosTrading::IllegalPropertyName,
    ::CosTrading::DuplicatePropertyName,
    ::CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition,
    ::CosTrading::UnknownServiceType,
    ::CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::IncarnationNumber>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::Identifier>::in_arg_val _tao_if_name (if_name);
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::PropStructSeq>::in_arg_val _tao_props (props);
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq>::in_arg_val _tao_super_types (super_types);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name,
      &_tao_if_name,
      &_tao_props,
      &_tao_super_types
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_add_type_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosTrading/IllegalServiceType:1.0",
        CosTrading::IllegalServiceType::_alloc,
        CosTrading::_tc_IllegalServiceType
      },
      
      {
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeExists:1.0",
        CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeExists
      },
      
      {
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/InterfaceTypeMismatch:1.0",
        CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_InterfaceTypeMismatch
      },
      
      {
        "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/CosTradingRepos/ServiceTypeRepository/ValueTypeRedefinition:1.0",
        CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_ValueTypeRedefinition
      },
      
      {
        "IDL:omg.org/CosTrading/UnknownServiceType:1.0",
        CosTrading::UnknownServiceType::_alloc,
        CosTrading::_tc_UnknownServiceType
      },
      
      {
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/DuplicateServiceTypeName:1.0",
        CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_DuplicateServiceTypeName
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      5,
      "add_type",
      8,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_add_type_exceptiondata,
      8
      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 CosTradingRepos::ServiceTypeRepository::remove_type (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTradingRepos::ServiceTypeRepository::HasSubTypes
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_remove_type_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/CosTradingRepos/ServiceTypeRepository/HasSubTypes:1.0",
        CosTradingRepos::ServiceTypeRepository::HasSubTypes::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_HasSubTypes
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "remove_type",
      11,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_remove_type_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

::CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq * CosTradingRepos::ServiceTypeRepository::list_types (
    const ::CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes & which_types
    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_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes>::in_arg_val _tao_which_types (which_types);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_which_types
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "list_types",
      10,
      this->the_TAO_ServiceTypeRepository_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

::CosTradingRepos::ServiceTypeRepository::TypeStruct * CosTradingRepos::ServiceTypeRepository::describe_type (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::TypeStruct>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_describe_type_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
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "describe_type",
      13,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_describe_type_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

::CosTradingRepos::ServiceTypeRepository::TypeStruct * CosTradingRepos::ServiceTypeRepository::fully_describe_type (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosTradingRepos::ServiceTypeRepository::TypeStruct>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_fully_describe_type_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
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "fully_describe_type",
      19,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_fully_describe_type_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

void CosTradingRepos::ServiceTypeRepository::mask_type (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTradingRepos::ServiceTypeRepository::AlreadyMasked
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_mask_type_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/CosTradingRepos/ServiceTypeRepository/AlreadyMasked:1.0",
        CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_AlreadyMasked
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "mask_type",
      9,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_mask_type_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void CosTradingRepos::ServiceTypeRepository::unmask_type (
    const char * name
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosTrading::IllegalServiceType,
    ::CosTrading::UnknownServiceType,
    ::CosTradingRepos::ServiceTypeRepository::NotMasked
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_ServiceTypeRepository_Proxy_Broker_ == 0)
    {
      CosTradingRepos_ServiceTypeRepository_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosTrading::ServiceTypeName>::in_arg_val _tao_name (name);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_name
    };
  
  static TAO::Exception_Data
  _tao_CosTradingRepos_ServiceTypeRepository_unmask_type_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/CosTradingRepos/ServiceTypeRepository/NotMasked:1.0",
        CosTradingRepos::ServiceTypeRepository::NotMasked::_alloc,
        CosTradingRepos::ServiceTypeRepository::_tc_NotMasked
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "unmask_type",
      11,
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosTradingRepos_ServiceTypeRepository_unmask_type_exceptiondata,
      3
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

CosTradingRepos::ServiceTypeRepository::ServiceTypeRepository (void)
 : the_TAO_ServiceTypeRepository_Proxy_Broker_ (0)
{
  this->CosTradingRepos_ServiceTypeRepository_setup_collocation ();
}

void
CosTradingRepos::ServiceTypeRepository::CosTradingRepos_ServiceTypeRepository_setup_collocation ()
{
  if (::CosTradingRepos__TAO_ServiceTypeRepository_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_ServiceTypeRepository_Proxy_Broker_ =
        ::CosTradingRepos__TAO_ServiceTypeRepository_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosTradingRepos::ServiceTypeRepository::~ServiceTypeRepository (void)
{}

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

CosTradingRepos::ServiceTypeRepository_ptr
CosTradingRepos::ServiceTypeRepository::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ServiceTypeRepository>::narrow (
        _tao_objref,
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository:1.0",
        CosTradingRepos__TAO_ServiceTypeRepository_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTradingRepos::ServiceTypeRepository_ptr
CosTradingRepos::ServiceTypeRepository::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<ServiceTypeRepository>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository:1.0",
        CosTradingRepos__TAO_ServiceTypeRepository_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosTradingRepos::ServiceTypeRepository_ptr
CosTradingRepos::ServiceTypeRepository::_duplicate (ServiceTypeRepository_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosTradingRepos::ServiceTypeRepository::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosTradingRepos_ServiceTypeRepository[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  54,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675265), 
  ACE_NTOHL (0x706f732f), 
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x793a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTradingRepos/ServiceTypeRepository:1.0
    22,
  ACE_NTOHL (0x53657276), 
  ACE_NTOHL (0x69636554), 
  ACE_NTOHL (0x79706552), 
  ACE_NTOHL (0x65706f73), 
  ACE_NTOHL (0x69746f72), 
  ACE_NTOHL (0x79000000),  // name = ServiceTypeRepository
  };

static CORBA::TypeCode _tc_TAO_tc_CosTradingRepos_ServiceTypeRepository (
    CORBA::tk_objref,
    sizeof (_oc_CosTradingRepos_ServiceTypeRepository),
    (char *) &_oc_CosTradingRepos_ServiceTypeRepository,
    0,
    sizeof (CosTradingRepos::ServiceTypeRepository)
  );

namespace CosTradingRepos
{
  ::CORBA::TypeCode_ptr _tc_ServiceTypeRepository =
    &_tc_TAO_tc_CosTradingRepos_ServiceTypeRepository;
}

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

#if !defined (_COSTRADINGSEQUENCES_SHORTSEQ_CS_)
#define _COSTRADINGSEQUENCES_SHORTSEQ_CS_

CosTradingSequences::ShortSeq::ShortSeq (void)
{}

CosTradingSequences::ShortSeq::ShortSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Short
      >
    (max)
{}

CosTradingSequences::ShortSeq::ShortSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Short * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Short
      >
    (max, length, buffer, release)
{}

CosTradingSequences::ShortSeq::ShortSeq (
    const ShortSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Short
      >
    (seq)
{}

CosTradingSequences::ShortSeq::~ShortSeq (void)
{}

void CosTradingSequences::ShortSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  ShortSeq * _tao_tmp_pointer =
    static_cast<ShortSeq *> (_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_CosTradingSequences_ShortSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x53686f72), 
  ACE_NTOHL (0x74536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingSequences/ShortSeq:1.0
    9,
  ACE_NTOHL (0x53686f72), 
  ACE_NTOHL (0x74536571), 
  ACE_NTOHL (0x0),  // name = ShortSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_short,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_ShortSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_ShortSeq),
    (char *) &_oc_CosTradingSequences_ShortSeq,
    0,
    sizeof (CosTradingSequences::ShortSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_ShortSeq =
    &_tc_TAO_tc_CosTradingSequences_ShortSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_USHORTSEQ_CS_)
#define _COSTRADINGSEQUENCES_USHORTSEQ_CS_

CosTradingSequences::UShortSeq::UShortSeq (void)
{}

CosTradingSequences::UShortSeq::UShortSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::UShort
      >
    (max)
{}

CosTradingSequences::UShortSeq::UShortSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::UShort * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::UShort
      >
    (max, length, buffer, release)
{}

CosTradingSequences::UShortSeq::UShortSeq (
    const UShortSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::UShort
      >
    (seq)
{}

CosTradingSequences::UShortSeq::~UShortSeq (void)
{}

void CosTradingSequences::UShortSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  UShortSeq * _tao_tmp_pointer =
    static_cast<UShortSeq *> (_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_CosTradingSequences_UShortSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x5553686f), 
  ACE_NTOHL (0x72745365), 
  ACE_NTOHL (0x713a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTradingSequences/UShortSeq:1.0
    10,
  ACE_NTOHL (0x5553686f), 
  ACE_NTOHL (0x72745365), 
  ACE_NTOHL (0x71000000),  // name = UShortSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_ushort,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_UShortSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_UShortSeq),
    (char *) &_oc_CosTradingSequences_UShortSeq,
    0,
    sizeof (CosTradingSequences::UShortSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_UShortSeq =
    &_tc_TAO_tc_CosTradingSequences_UShortSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_LONGSEQ_CS_)
#define _COSTRADINGSEQUENCES_LONGSEQ_CS_

CosTradingSequences::LongSeq::LongSeq (void)
{}

CosTradingSequences::LongSeq::LongSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Long
      >
    (max)
{}

CosTradingSequences::LongSeq::LongSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Long * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Long
      >
    (max, length, buffer, release)
{}

CosTradingSequences::LongSeq::LongSeq (
    const LongSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Long
      >
    (seq)
{}

CosTradingSequences::LongSeq::~LongSeq (void)
{}

void CosTradingSequences::LongSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  LongSeq * _tao_tmp_pointer =
    static_cast<LongSeq *> (_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_CosTradingSequences_LongSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  44,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x4c6f6e67), 
  ACE_NTOHL (0x5365713a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CosTradingSequences/LongSeq:1.0
    8,
  ACE_NTOHL (0x4c6f6e67), 
  ACE_NTOHL (0x53657100),  // name = LongSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_long,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_LongSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_LongSeq),
    (char *) &_oc_CosTradingSequences_LongSeq,
    0,
    sizeof (CosTradingSequences::LongSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_LongSeq =
    &_tc_TAO_tc_CosTradingSequences_LongSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_ULONGSEQ_CS_)
#define _COSTRADINGSEQUENCES_ULONGSEQ_CS_

CosTradingSequences::ULongSeq::ULongSeq (void)
{}

CosTradingSequences::ULongSeq::ULongSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::ULong
      >
    (max)
{}

CosTradingSequences::ULongSeq::ULongSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::ULong * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::ULong
      >
    (max, length, buffer, release)
{}

CosTradingSequences::ULongSeq::ULongSeq (
    const ULongSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::ULong
      >
    (seq)
{}

CosTradingSequences::ULongSeq::~ULongSeq (void)
{}

void CosTradingSequences::ULongSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  ULongSeq * _tao_tmp_pointer =
    static_cast<ULongSeq *> (_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_CosTradingSequences_ULongSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x554c6f6e), 
  ACE_NTOHL (0x67536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingSequences/ULongSeq:1.0
    9,
  ACE_NTOHL (0x554c6f6e), 
  ACE_NTOHL (0x67536571), 
  ACE_NTOHL (0x0),  // name = ULongSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_ulong,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_ULongSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_ULongSeq),
    (char *) &_oc_CosTradingSequences_ULongSeq,
    0,
    sizeof (CosTradingSequences::ULongSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_ULongSeq =
    &_tc_TAO_tc_CosTradingSequences_ULongSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_BOOLEANSEQ_CS_)
#define _COSTRADINGSEQUENCES_BOOLEANSEQ_CS_

CosTradingSequences::BooleanSeq::BooleanSeq (void)
{}

CosTradingSequences::BooleanSeq::BooleanSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Boolean
      >
    (max)
{}

CosTradingSequences::BooleanSeq::BooleanSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Boolean * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Boolean
      >
    (max, length, buffer, release)
{}

CosTradingSequences::BooleanSeq::BooleanSeq (
    const BooleanSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Boolean
      >
    (seq)
{}

CosTradingSequences::BooleanSeq::~BooleanSeq (void)
{}

void CosTradingSequences::BooleanSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  BooleanSeq * _tao_tmp_pointer =
    static_cast<BooleanSeq *> (_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_CosTradingSequences_BooleanSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  47,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x426f6f6c), 
  ACE_NTOHL (0x65616e53), 
  ACE_NTOHL (0x65713a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CosTradingSequences/BooleanSeq:1.0
    11,
  ACE_NTOHL (0x426f6f6c), 
  ACE_NTOHL (0x65616e53), 
  ACE_NTOHL (0x65710000),  // name = BooleanSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_boolean,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_BooleanSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_BooleanSeq),
    (char *) &_oc_CosTradingSequences_BooleanSeq,
    0,
    sizeof (CosTradingSequences::BooleanSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_BooleanSeq =
    &_tc_TAO_tc_CosTradingSequences_BooleanSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_FLOATSEQ_CS_)
#define _COSTRADINGSEQUENCES_FLOATSEQ_CS_

CosTradingSequences::FloatSeq::FloatSeq (void)
{}

CosTradingSequences::FloatSeq::FloatSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Float
      >
    (max)
{}

CosTradingSequences::FloatSeq::FloatSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Float * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Float
      >
    (max, length, buffer, release)
{}

CosTradingSequences::FloatSeq::FloatSeq (
    const FloatSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Float
      >
    (seq)
{}

CosTradingSequences::FloatSeq::~FloatSeq (void)
{}

void CosTradingSequences::FloatSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  FloatSeq * _tao_tmp_pointer =
    static_cast<FloatSeq *> (_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_CosTradingSequences_FloatSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  45,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x466c6f61), 
  ACE_NTOHL (0x74536571), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CosTradingSequences/FloatSeq:1.0
    9,
  ACE_NTOHL (0x466c6f61), 
  ACE_NTOHL (0x74536571), 
  ACE_NTOHL (0x0),  // name = FloatSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_float,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_FloatSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_FloatSeq),
    (char *) &_oc_CosTradingSequences_FloatSeq,
    0,
    sizeof (CosTradingSequences::FloatSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_FloatSeq =
    &_tc_TAO_tc_CosTradingSequences_FloatSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_DOUBLESEQ_CS_)
#define _COSTRADINGSEQUENCES_DOUBLESEQ_CS_

CosTradingSequences::DoubleSeq::DoubleSeq (void)
{}

CosTradingSequences::DoubleSeq::DoubleSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Double
      >
    (max)
{}

CosTradingSequences::DoubleSeq::DoubleSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Double * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Double
      >
    (max, length, buffer, release)
{}

CosTradingSequences::DoubleSeq::DoubleSeq (
    const DoubleSeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Double
      >
    (seq)
{}

CosTradingSequences::DoubleSeq::~DoubleSeq (void)
{}

void CosTradingSequences::DoubleSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  DoubleSeq * _tao_tmp_pointer =
    static_cast<DoubleSeq *> (_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_CosTradingSequences_DoubleSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x446f7562), 
  ACE_NTOHL (0x6c655365), 
  ACE_NTOHL (0x713a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTradingSequences/DoubleSeq:1.0
    10,
  ACE_NTOHL (0x446f7562), 
  ACE_NTOHL (0x6c655365), 
  ACE_NTOHL (0x71000000),  // name = DoubleSeq
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_double,

    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_DoubleSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_DoubleSeq),
    (char *) &_oc_CosTradingSequences_DoubleSeq,
    0,
    sizeof (CosTradingSequences::DoubleSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_DoubleSeq =
    &_tc_TAO_tc_CosTradingSequences_DoubleSeq;
}

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

#if !defined (_COSTRADINGSEQUENCES_STRINGSEQ_CS_)
#define _COSTRADINGSEQUENCES_STRINGSEQ_CS_

CosTradingSequences::StringSeq::StringSeq (void)
{}

CosTradingSequences::StringSeq::StringSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_String_Sequence
    (max)
{}

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

CosTradingSequences::StringSeq::StringSeq (
    const StringSeq &seq
  )
  : TAO_Unbounded_String_Sequence
    (seq)
{}

CosTradingSequences::StringSeq::~StringSeq (void)
{}

void CosTradingSequences::StringSeq::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  StringSeq * _tao_tmp_pointer =
    static_cast<StringSeq *> (_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_CosTradingSequences_StringSeq[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  46,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7354), 
  ACE_NTOHL (0x72616469), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x7175656e), 
  ACE_NTOHL (0x6365732f), 
  ACE_NTOHL (0x53747269), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x713a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosTradingSequences/StringSeq:1.0
    10,
  ACE_NTOHL (0x53747269), 
  ACE_NTOHL (0x6e675365), 
  ACE_NTOHL (0x71000000),  // name = StringSeq
    CORBA::tk_sequence, // typecode kind
  16, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_string, 
    0U, // string length
    0U,

};

static CORBA::TypeCode _tc_TAO_tc_CosTradingSequences_StringSeq (
    CORBA::tk_alias,
    sizeof (_oc_CosTradingSequences_StringSeq),
    (char *) &_oc_CosTradingSequences_StringSeq,
    0,
    sizeof (CosTradingSequences::StringSeq)
  );

namespace CosTradingSequences
{
  ::CORBA::TypeCode_ptr _tc_StringSeq =
    &_tc_TAO_tc_CosTradingSequences_StringSeq;
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Impl_T<CosTradingRepos::ServiceTypeRepository>::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,
    CosTradingRepos::ServiceTypeRepository_ptr _tao_elem
  )
{
  CosTradingRepos::ServiceTypeRepository_ptr _tao_objptr =
    CosTradingRepos::ServiceTypeRepository::_duplicate (_tao_elem);
  _tao_any <<= &_tao_objptr;
}

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosTradingRepos::ServiceTypeRepository>::insert (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::_tao_any_destructor,
      CosTradingRepos::_tc_ServiceTypeRepository,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosTradingRepos::ServiceTypeRepository>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::_tao_any_destructor,
        CosTradingRepos::_tc_ServiceTypeRepository,
        _tao_elem
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeNameSeq,
      _tao_elem
    );
}

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

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

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

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

void operator<<= (
    CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository::PropertyMode _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosTradingRepos::ServiceTypeRepository::PropertyMode>::insert (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::_tc_PropertyMode,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository::PropertyMode &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosTradingRepos::ServiceTypeRepository::PropertyMode>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::_tc_PropertyMode,
        _tao_elem 
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::PropStruct &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::PropStruct>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::PropStruct::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_PropStruct,
      _tao_elem
    );
}

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

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

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

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::PropStructSeq &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::PropStructSeq>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::PropStructSeq::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_PropStructSeq,
      _tao_elem
    );
}

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

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

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

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::IncarnationNumber>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::IncarnationNumber::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_IncarnationNumber,
      _tao_elem
    );
}

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

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

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

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::TypeStruct &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::TypeStruct>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::TypeStruct::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_TypeStruct,
      _tao_elem
    );
}

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

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

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

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

void operator<<= (
    CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository::ListOption _tao_elem
  )
{
  TAO::Any_Basic_Impl_T<CosTradingRepos::ServiceTypeRepository::ListOption>::insert (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::_tc_ListOption,
      _tao_elem
    );
}

CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    CosTradingRepos::ServiceTypeRepository::ListOption &_tao_elem
  )
{
  return
    TAO::Any_Basic_Impl_T<CosTradingRepos::ServiceTypeRepository::ListOption>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::_tc_ListOption,
        _tao_elem 
      );
}

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

// Copying insertion.
void operator<<= (
    CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_SpecifiedServiceTypes,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_SpecifiedServiceTypes,
        _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<CosTradingRepos::ServiceTypeRepository::ServiceTypeExists>::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 CosTradingRepos::ServiceTypeRepository::ServiceTypeExists &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::ServiceTypeExists>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeExists,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::ServiceTypeExists *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::ServiceTypeExists>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::ServiceTypeExists::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_ServiceTypeExists,
        _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<CosTradingRepos::ServiceTypeRepository::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 CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_InterfaceTypeMismatch,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_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<CosTradingRepos::ServiceTypeRepository::HasSubTypes>::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 CosTradingRepos::ServiceTypeRepository::HasSubTypes &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::HasSubTypes>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::HasSubTypes::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_HasSubTypes,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::HasSubTypes *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::HasSubTypes>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::HasSubTypes::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_HasSubTypes,
        _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<CosTradingRepos::ServiceTypeRepository::AlreadyMasked>::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 CosTradingRepos::ServiceTypeRepository::AlreadyMasked &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::AlreadyMasked>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_AlreadyMasked,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::AlreadyMasked *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::AlreadyMasked>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::AlreadyMasked::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_AlreadyMasked,
        _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<CosTradingRepos::ServiceTypeRepository::NotMasked>::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 CosTradingRepos::ServiceTypeRepository::NotMasked &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::NotMasked>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::NotMasked::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_NotMasked,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::NotMasked *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::NotMasked>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::NotMasked::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_NotMasked,
        _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<CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition>::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 CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_ValueTypeRedefinition,
      _tao_elem
    );
}

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

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

// Extraction to const pointer.
CORBA::Boolean operator>>= (
    const CORBA::Any &_tao_any,
    const CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition *&_tao_elem
  )
{
  return
    TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition>::extract (
        _tao_any,
        CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition::_tao_any_destructor,
        CosTradingRepos::ServiceTypeRepository::_tc_ValueTypeRedefinition,
        _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<CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName>::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 CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName>::insert_copy (
      _tao_any,
      CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName::_tao_any_destructor,
      CosTradingRepos::ServiceTypeRepository::_tc_DuplicateServiceTypeName,
      _tao_elem
    );
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#if !defined _TAO_CDR_OP_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq_CPP_
#define _TAO_CDR_OP_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq &_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,
    CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq &_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_CosTradingRepos_ServiceTypeRepository_ServiceTypeNameSeq_CPP_ */

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

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

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

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingRepos::ServiceTypeRepository::PropStruct &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.name.in ()) &&
    (strm << _tao_aggregate.value_type.in ()) &&
    (strm << _tao_aggregate.mode);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::PropStruct &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.name.out ()) &&
    (strm >> _tao_aggregate.value_type.out ()) &&
    (strm >> _tao_aggregate.mode);
}

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

#if !defined _TAO_CDR_OP_CosTradingRepos_ServiceTypeRepository_PropStructSeq_CPP_
#define _TAO_CDR_OP_CosTradingRepos_ServiceTypeRepository_PropStructSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingRepos::ServiceTypeRepository::PropStructSeq &_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,
    CosTradingRepos::ServiceTypeRepository::PropStructSeq &_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_CosTradingRepos_ServiceTypeRepository_PropStructSeq_CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.high) &&
    (strm << _tao_aggregate.low);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::IncarnationNumber &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.high) &&
    (strm >> _tao_aggregate.low);
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingRepos::ServiceTypeRepository::TypeStruct &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.if_name.in ()) &&
    (strm << _tao_aggregate.props) &&
    (strm << _tao_aggregate.super_types) &&
    (strm << CORBA::Any::from_boolean (_tao_aggregate.masked)) &&
    (strm << _tao_aggregate.incarnation);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::TypeStruct &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.if_name.out ()) &&
    (strm >> _tao_aggregate.props) &&
    (strm >> _tao_aggregate.super_types) &&
    (strm >> CORBA::Any::to_boolean (_tao_aggregate.masked)) &&
    (strm >> _tao_aggregate.incarnation);
}

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

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

CORBA::Boolean operator>> (TAO_InputCDR &strm, CosTradingRepos::ServiceTypeRepository::ListOption &_tao_enumval)
{
  CORBA::ULong _tao_temp = 0;
  CORBA::Boolean _tao_result = strm >> _tao_temp;
  
  if (_tao_result == 1)
    {
      _tao_enumval = static_cast<CosTradingRepos::ServiceTypeRepository::ListOption> (_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 CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &_tao_union
  )
{
  if ( !(strm << _tao_union._d ()) )
    {
      return 0;
    }
  
  CORBA::Boolean result = 1;
  
  switch (_tao_union._d ())
  {
    case CosTradingRepos::ServiceTypeRepository::all:
      {
        result = strm << CORBA::Any::from_boolean (_tao_union.all_ ());
      }
      break;
    case CosTradingRepos::ServiceTypeRepository::since:
      {
        result = strm << _tao_union.incarnation ();
      }
      break;
    default:
      break;
  }
  
  return result;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes &_tao_union
  )
{
  CosTradingRepos::ServiceTypeRepository::ListOption _tao_discriminant;
  if ( !(strm >> _tao_discriminant) )
    {
      return 0;
    }
  
  CORBA::Boolean result = 1;
  
  switch (_tao_discriminant)
  {
    case CosTradingRepos::ServiceTypeRepository::all:
      {
        CORBA::Boolean _tao_union_tmp;
        CORBA::Any::to_boolean _tao_union_helper (_tao_union_tmp);
        result = strm >> _tao_union_helper;
        
        if (result)
          {
            _tao_union.all_ (_tao_union_tmp);
            _tao_union._d (_tao_discriminant);
          }
      }
      break;
    case CosTradingRepos::ServiceTypeRepository::since:
      {
        CosTradingRepos::ServiceTypeRepository::IncarnationNumber _tao_union_tmp;
        result = strm >> _tao_union_tmp;
        
        if (result)
          {
            _tao_union.incarnation (_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 CosTradingRepos::ServiceTypeRepository::ServiceTypeExists &_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,
    CosTradingRepos::ServiceTypeRepository::ServiceTypeExists &_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 CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.base_service.in ()) &&
        (strm << _tao_aggregate.base_if.in ()) &&
        (strm << _tao_aggregate.derived_service.in ()) &&
        (strm << _tao_aggregate.derived_if.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::InterfaceTypeMismatch &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.base_service.out ()) &&
    (strm >> _tao_aggregate.base_if.out ()) &&
    (strm >> _tao_aggregate.derived_service.out ()) &&
    (strm >> _tao_aggregate.derived_if.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 CosTradingRepos::ServiceTypeRepository::HasSubTypes &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.the_type.in ()) &&
        (strm << _tao_aggregate.sub_type.in ())
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::HasSubTypes &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.the_type.out ()) &&
    (strm >> _tao_aggregate.sub_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 CosTradingRepos::ServiceTypeRepository::AlreadyMasked &_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,
    CosTradingRepos::ServiceTypeRepository::AlreadyMasked &_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 CosTradingRepos::ServiceTypeRepository::NotMasked &_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,
    CosTradingRepos::ServiceTypeRepository::NotMasked &_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 CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      if (
        (strm << _tao_aggregate.type_1.in ()) &&
        (strm << _tao_aggregate.definition_1) &&
        (strm << _tao_aggregate.type_2.in ()) &&
        (strm << _tao_aggregate.definition_2)
       )
        {
          return 1;
        }
      else
        {
          return 0;
        }
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository::ValueTypeRedefinition &_tao_aggregate
  )
{
  // Demarshal the members.
  if (
    (strm >> _tao_aggregate.type_1.out ()) &&
    (strm >> _tao_aggregate.definition_1) &&
    (strm >> _tao_aggregate.type_2.out ()) &&
    (strm >> _tao_aggregate.definition_2)
  )
    {
      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 CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName &_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,
    CosTradingRepos::ServiceTypeRepository::DuplicateServiceTypeName &_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 CosTradingRepos::ServiceTypeRepository_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingRepos::ServiceTypeRepository_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosTradingRepos::ServiceTypeRepository RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosTradingRepos__TAO_ServiceTypeRepository_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_CosTradingSequences_ShortSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_ShortSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::ShortSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_short_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::ShortSeq &_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.
      return strm.read_short_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_ShortSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_UShortSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_UShortSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::UShortSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::UShortSeq &_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.
      return strm.read_ushort_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_UShortSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_LongSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_LongSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::LongSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_long_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::LongSeq &_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.
      return strm.read_long_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_LongSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_ULongSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_ULongSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::ULongSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::ULongSeq &_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.
      return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_ULongSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_BooleanSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_BooleanSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::BooleanSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_boolean_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::BooleanSeq &_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.
      return strm.read_boolean_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_BooleanSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_FloatSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_FloatSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::FloatSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_float_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::FloatSeq &_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.
      return strm.read_float_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_FloatSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_DoubleSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_DoubleSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::DoubleSeq &_tao_sequence
  )
{
  const CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      return strm.write_double_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosTradingSequences::DoubleSeq &_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.
      return strm.read_double_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_CosTradingSequences_DoubleSeq_CPP_ */

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

#if !defined _TAO_CDR_OP_CosTradingSequences_StringSeq_CPP_
#define _TAO_CDR_OP_CosTradingSequences_StringSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosTradingSequences::StringSeq &_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,
    CosTradingSequences::StringSeq &_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_CosTradingSequences_StringSeq_CPP_ */

