// -*- 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 "miopC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "tao/Typecode.h"
#include "tao/Any_Dual_Impl_T.h"
#include "tao/Any_Array_Impl_T.h"

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

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

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

// Arg traits specializations.
namespace TAO
{
}


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

#if !defined (_MIOP_UNIQUEID_CS_)
#define _MIOP_UNIQUEID_CS_

MIOP::UniqueId::UniqueId (void)
{}

MIOP::UniqueId::UniqueId (
    CORBA::ULong length,
    CORBA::Octet * buffer,
    CORBA::Boolean release
  )
  : TAO_Bounded_Sequence<
        CORBA::Octet,
        252
      >
    (length, buffer, release)
{}

MIOP::UniqueId::UniqueId (
    const UniqueId &seq
  )
  : TAO_Bounded_Sequence<
        CORBA::Octet,
        252
      >
    (seq)
{}

MIOP::UniqueId::~UniqueId (void)
{}

void MIOP::UniqueId::_tao_any_destructor (
    void * _tao_void_pointer
  )
{
  UniqueId * _tao_tmp_pointer =
    static_cast<UniqueId *> (_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_MIOP_UniqueId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  30,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x4d494f50), 
  ACE_NTOHL (0x2f556e69), 
  ACE_NTOHL (0x71756549), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/MIOP/UniqueId:1.0
    9,
  ACE_NTOHL (0x556e6971), 
  ACE_NTOHL (0x75654964), 
  ACE_NTOHL (0x0),  // name = UniqueId
    CORBA::tk_sequence, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_octet,

    252U,

};

static CORBA::TypeCode _tc_TAO_tc_MIOP_UniqueId (
    CORBA::tk_alias,
    sizeof (_oc_MIOP_UniqueId),
    (char *) &_oc_MIOP_UniqueId,
    0,
    sizeof (MIOP::UniqueId)
  );

namespace MIOP
{
  ::CORBA::TypeCode_ptr _tc_UniqueId =
    &_tc_TAO_tc_MIOP_UniqueId;
}

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

static const CORBA::Long _oc_MIOP_PacketHeader_1_0[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  38,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x4d494f50), 
  ACE_NTOHL (0x2f506163), 
  ACE_NTOHL (0x6b657448), 
  ACE_NTOHL (0x65616465), 
  ACE_NTOHL (0x725f315f), 
  ACE_NTOHL (0x303a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/MIOP/PacketHeader_1_0:1.0
    17,
  ACE_NTOHL (0x5061636b), 
  ACE_NTOHL (0x65744865), 
  ACE_NTOHL (0x61646572), 
  ACE_NTOHL (0x5f315f30), 
  ACE_NTOHL (0x0),  // name = PacketHeader_1_0
  7, // member count
    6,
  ACE_NTOHL (0x6d616769), 
  ACE_NTOHL (0x63000000),  // name = magic
    CORBA::tk_array, // typecode kind
  12, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_char,

    4U,

  12,
  ACE_NTOHL (0x6864725f), 
  ACE_NTOHL (0x76657273), 
  ACE_NTOHL (0x696f6e00),  // name = hdr_version
    CORBA::tk_octet,

  6,
  ACE_NTOHL (0x666c6167), 
  ACE_NTOHL (0x73000000),  // name = flags
    CORBA::tk_octet,

  14,
  ACE_NTOHL (0x7061636b), 
  ACE_NTOHL (0x65745f6c), 
  ACE_NTOHL (0x656e6774), 
  ACE_NTOHL (0x68000000),  // name = packet_length
    CORBA::tk_ushort,

  14,
  ACE_NTOHL (0x7061636b), 
  ACE_NTOHL (0x65745f6e), 
  ACE_NTOHL (0x756d6265), 
  ACE_NTOHL (0x72000000),  // name = packet_number
    CORBA::tk_ulong,

  18,
  ACE_NTOHL (0x6e756d62), 
  ACE_NTOHL (0x65725f6f), 
  ACE_NTOHL (0x665f7061), 
  ACE_NTOHL (0x636b6574), 
  ACE_NTOHL (0x73000000),  // name = number_of_packets
    CORBA::tk_ulong,

  3,
  ACE_NTOHL (0x49640000),  // name = Id
    CORBA::tk_alias, // typecode kind for typedefs
  76, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    30,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x4d494f50), 
    ACE_NTOHL (0x2f556e69), 
    ACE_NTOHL (0x71756549), 
    ACE_NTOHL (0x643a312e), 
    ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/MIOP/UniqueId:1.0
        9,
    ACE_NTOHL (0x556e6971), 
    ACE_NTOHL (0x75654964), 
    ACE_NTOHL (0x0),  // name = UniqueId
        CORBA::tk_sequence, // typecode kind
    12, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      CORBA::tk_octet,

      252U,


};

static CORBA::TypeCode _tc_TAO_tc_MIOP_PacketHeader_1_0 (
    CORBA::tk_struct,
    sizeof (_oc_MIOP_PacketHeader_1_0),
    (char *) &_oc_MIOP_PacketHeader_1_0,
    0,
    sizeof (MIOP::PacketHeader_1_0)
  );

namespace MIOP
{
  ::CORBA::TypeCode_ptr _tc_PacketHeader_1_0 =
    &_tc_TAO_tc_MIOP_PacketHeader_1_0;
}

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

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

// TAO_IDL - Generated from
// be/be_visitor_array/array_cs.cpp:109

MIOP::PacketHeader_1_0::_magic_slice *
MIOP::PacketHeader_1_0::_magic_dup (const MIOP::PacketHeader_1_0::_magic_slice *_tao_src_array)
{
  MIOP::PacketHeader_1_0::_magic_slice *_tao_dup_array =
    MIOP::PacketHeader_1_0::_magic_alloc ();
  
  if (!_tao_dup_array)
    {
      return (MIOP::PacketHeader_1_0::_magic_slice *)0;
    }
  
  MIOP::PacketHeader_1_0::_magic_copy (_tao_dup_array, _tao_src_array);
  return _tao_dup_array;
}

MIOP::PacketHeader_1_0::_magic_slice *
MIOP::PacketHeader_1_0::_magic_alloc (void)
{
  MIOP::PacketHeader_1_0::_magic_slice *retval = 0;
  ACE_NEW_RETURN (retval, CORBA::Char[4], 0);
  return retval;
}

void
MIOP::PacketHeader_1_0::_magic_free (
    MIOP::PacketHeader_1_0::_magic_slice *_tao_slice
  )
{
  delete [] _tao_slice;
}

void 
MIOP::PacketHeader_1_0::_magic_copy (
    MIOP::PacketHeader_1_0::_magic_slice * _tao_to,
    const MIOP::PacketHeader_1_0::_magic_slice *_tao_from
  )
{
  // Copy each individual element.
  for (CORBA::ULong i0 = 0; i0 < 4; ++i0)
    {
      _tao_to[i0] = _tao_from[i0];
    }
}

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

static const CORBA::Long _oc_MIOP_Version[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  29,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x4d494f50), 
  ACE_NTOHL (0x2f566572), 
  ACE_NTOHL (0x73696f6e), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/MIOP/Version:1.0
    8,
  ACE_NTOHL (0x56657273), 
  ACE_NTOHL (0x696f6e00),  // name = Version
    CORBA::tk_struct, // typecode kind
  88, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    29,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x47494f50), 
    ACE_NTOHL (0x2f566572), 
    ACE_NTOHL (0x73696f6e), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/GIOP/Version:1.0
        8,
    ACE_NTOHL (0x56657273), 
    ACE_NTOHL (0x696f6e00),  // name = Version
    2, // member count
        6,
    ACE_NTOHL (0x6d616a6f), 
    ACE_NTOHL (0x72000000),  // name = major
        CORBA::tk_octet,

    6,
    ACE_NTOHL (0x6d696e6f), 
    ACE_NTOHL (0x72000000),  // name = minor
        CORBA::tk_octet,


};

static CORBA::TypeCode _tc_TAO_tc_MIOP_Version (
    CORBA::tk_alias,
    sizeof (_oc_MIOP_Version),
    (char *) &_oc_MIOP_Version,
    0,
    sizeof (MIOP::Version)
  );

namespace MIOP
{
  ::CORBA::TypeCode_ptr _tc_Version =
    &_tc_TAO_tc_MIOP_Version;
}

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

static const CORBA::Long _oc_MIOP_Address[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  29,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x4d494f50), 
  ACE_NTOHL (0x2f416464), 
  ACE_NTOHL (0x72657373), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/MIOP/Address:1.0
    8,
  ACE_NTOHL (0x41646472), 
  ACE_NTOHL (0x65737300),  // name = Address
    CORBA::tk_string, 
  0U, // string length
};

static CORBA::TypeCode _tc_TAO_tc_MIOP_Address (
    CORBA::tk_alias,
    sizeof (_oc_MIOP_Address),
    (char *) &_oc_MIOP_Address,
    0,
    sizeof (MIOP::Address)
  );

namespace MIOP
{
  ::CORBA::TypeCode_ptr _tc_Address =
    &_tc_TAO_tc_MIOP_Address;
}

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

static const CORBA::Long _oc_MIOP_UIPMC_ProfileBody[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  39,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x4d494f50), 
  ACE_NTOHL (0x2f554950), 
  ACE_NTOHL (0x4d435f50), 
  ACE_NTOHL (0x726f6669), 
  ACE_NTOHL (0x6c65426f), 
  ACE_NTOHL (0x64793a31), 
  ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/MIOP/UIPMC_ProfileBody:1.0
    18,
  ACE_NTOHL (0x5549504d), 
  ACE_NTOHL (0x435f5072), 
  ACE_NTOHL (0x6f66696c), 
  ACE_NTOHL (0x65426f64), 
  ACE_NTOHL (0x79000000),  // name = UIPMC_ProfileBody
  4, // member count
    13,
  ACE_NTOHL (0x6d696f70), 
  ACE_NTOHL (0x5f766572), 
  ACE_NTOHL (0x73696f6e), 
  ACE_NTOHL (0x0),  // name = miop_version
    CORBA::tk_alias, // typecode kind for typedefs
  148, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    29,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x4d494f50), 
    ACE_NTOHL (0x2f566572), 
    ACE_NTOHL (0x73696f6e), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/MIOP/Version:1.0
        8,
    ACE_NTOHL (0x56657273), 
    ACE_NTOHL (0x696f6e00),  // name = Version
        CORBA::tk_struct, // typecode kind
    88, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      29,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x47494f50), 
      ACE_NTOHL (0x2f566572), 
      ACE_NTOHL (0x73696f6e), 
      ACE_NTOHL (0x3a312e30), 
      ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/GIOP/Version:1.0
            8,
      ACE_NTOHL (0x56657273), 
      ACE_NTOHL (0x696f6e00),  // name = Version
      2, // member count
            6,
      ACE_NTOHL (0x6d616a6f), 
      ACE_NTOHL (0x72000000),  // name = major
            CORBA::tk_octet,

      6,
      ACE_NTOHL (0x6d696e6f), 
      ACE_NTOHL (0x72000000),  // name = minor
            CORBA::tk_octet,



  12,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x61646472), 
  ACE_NTOHL (0x65737300),  // name = the_address
    CORBA::tk_alias, // typecode kind for typedefs
  60, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    29,
    ACE_NTOHL (0x49444c3a), 
    ACE_NTOHL (0x6f6d672e), 
    ACE_NTOHL (0x6f72672f), 
    ACE_NTOHL (0x4d494f50), 
    ACE_NTOHL (0x2f416464), 
    ACE_NTOHL (0x72657373), 
    ACE_NTOHL (0x3a312e30), 
    ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/MIOP/Address:1.0
        8,
    ACE_NTOHL (0x41646472), 
    ACE_NTOHL (0x65737300),  // name = Address
        CORBA::tk_string, 
    0U, // string length

  9,
  ACE_NTOHL (0x7468655f), 
  ACE_NTOHL (0x706f7274), 
  ACE_NTOHL (0x0),  // name = the_port
    CORBA::tk_short,

  11,
  ACE_NTOHL (0x636f6d70), 
  ACE_NTOHL (0x6f6e656e), 
  ACE_NTOHL (0x74730000),  // name = components
    CORBA::tk_sequence, // typecode kind
  264, // encapsulation length
    TAO_ENCAP_BYTE_ORDER, // byte order
    CORBA::tk_struct, // typecode kind
    248, // encapsulation length
      TAO_ENCAP_BYTE_ORDER, // byte order
      36,
      ACE_NTOHL (0x49444c3a), 
      ACE_NTOHL (0x6f6d672e), 
      ACE_NTOHL (0x6f72672f), 
      ACE_NTOHL (0x494f502f), 
      ACE_NTOHL (0x54616767), 
      ACE_NTOHL (0x6564436f), 
      ACE_NTOHL (0x6d706f6e), 
      ACE_NTOHL (0x656e743a), 
      ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/IOP/TaggedComponent:1.0
            16,
      ACE_NTOHL (0x54616767), 
      ACE_NTOHL (0x6564436f), 
      ACE_NTOHL (0x6d706f6e), 
      ACE_NTOHL (0x656e7400),  // name = TaggedComponent
      2, // member count
            4,
      ACE_NTOHL (0x74616700),  // name = tag
            CORBA::tk_alias, // typecode kind for typedefs
      60, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        32,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x494f502f), 
        ACE_NTOHL (0x436f6d70), 
        ACE_NTOHL (0x6f6e656e), 
        ACE_NTOHL (0x7449643a), 
        ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/IOP/ComponentId:1.0
                12,
        ACE_NTOHL (0x436f6d70), 
        ACE_NTOHL (0x6f6e656e), 
        ACE_NTOHL (0x74496400),  // name = ComponentId
                CORBA::tk_ulong,


      15,
      ACE_NTOHL (0x636f6d70), 
      ACE_NTOHL (0x6f6e656e), 
      ACE_NTOHL (0x745f6461), 
      ACE_NTOHL (0x74610000),  // name = component_data
            CORBA::tk_alias, // typecode kind for typedefs
      76, // encapsulation length
        TAO_ENCAP_BYTE_ORDER, // byte order
        31,
        ACE_NTOHL (0x49444c3a), 
        ACE_NTOHL (0x6f6d672e), 
        ACE_NTOHL (0x6f72672f), 
        ACE_NTOHL (0x434f5242), 
        ACE_NTOHL (0x412f4f63), 
        ACE_NTOHL (0x74657453), 
        ACE_NTOHL (0x65713a31), 
        ACE_NTOHL (0x2e300000),  // repository ID = IDL:omg.org/CORBA/OctetSeq:1.0
                9,
        ACE_NTOHL (0x4f637465), 
        ACE_NTOHL (0x74536571), 
        ACE_NTOHL (0x0),  // name = OctetSeq
                CORBA::tk_sequence, // typecode kind
        12, // encapsulation length
          TAO_ENCAP_BYTE_ORDER, // byte order
          CORBA::tk_octet,

          0U,



    0U,

};

static CORBA::TypeCode _tc_TAO_tc_MIOP_UIPMC_ProfileBody (
    CORBA::tk_struct,
    sizeof (_oc_MIOP_UIPMC_ProfileBody),
    (char *) &_oc_MIOP_UIPMC_ProfileBody,
    0,
    sizeof (MIOP::UIPMC_ProfileBody)
  );

namespace MIOP
{
  ::CORBA::TypeCode_ptr _tc_UIPMC_ProfileBody =
    &_tc_TAO_tc_MIOP_UIPMC_ProfileBody;
}

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

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

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

#if !defined (_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_IOP_TAGGEDCOMPONENT__CS_)
#define _MIOP_UIPMC_PROFILEBODY__TAO_SEQ_IOP_TAGGEDCOMPONENT__CS_

MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_::_tao_seq_IOP_TaggedComponent_ (void)
{}

MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_::_tao_seq_IOP_TaggedComponent_ (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        IOP::TaggedComponent
      >
    (max)
{}

MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_::_tao_seq_IOP_TaggedComponent_ (
    CORBA::ULong max,
    CORBA::ULong length,
    IOP::TaggedComponent * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        IOP::TaggedComponent
      >
    (max, length, buffer, release)
{}

MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_::_tao_seq_IOP_TaggedComponent_ (
    const _tao_seq_IOP_TaggedComponent_ &seq
  )
  : TAO_Unbounded_Sequence<
        IOP::TaggedComponent
      >
    (seq)
{}

MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_::~_tao_seq_IOP_TaggedComponent_ (void)
{}

#endif /* end #if !defined */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#if !defined _TAO_CDR_OP_MIOP_UniqueId_CPP_
#define _TAO_CDR_OP_MIOP_UniqueId_CPP_

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

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    MIOP::UniqueId &_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;
        }
      
      if (_tao_seq_len <= _tao_sequence.maximum ())
        {
          // 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_octet_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
        
        }
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_MIOP_UniqueId_CPP_ */

// TAO_IDL - Generated from
// be/be_visitor_array/cdr_op_cs.cpp:177

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const MIOP::PacketHeader_1_0::_magic_forany &_tao_array
  )
{
   return strm.write_char_array ((const ACE_CDR::Char *)_tao_array.in (), 4);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    MIOP::PacketHeader_1_0::_magic_forany &_tao_array
  )
{
   return strm.read_char_array ((ACE_CDR::Char *) _tao_array.out (), 4);
}

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const MIOP::PacketHeader_1_0 &_tao_aggregate
  )
{
  MIOP::PacketHeader_1_0::_magic_forany _tao_aggregate_magic
      (const_cast<
          MIOP::PacketHeader_1_0::_magic_slice*> (
          _tao_aggregate.magic
        )
    );
  return
    (strm << _tao_aggregate_magic) &&
    (strm << CORBA::Any::from_octet (_tao_aggregate.hdr_version)) &&
    (strm << CORBA::Any::from_octet (_tao_aggregate.flags)) &&
    (strm << _tao_aggregate.packet_length) &&
    (strm << _tao_aggregate.packet_number) &&
    (strm << _tao_aggregate.number_of_packets) &&
    (strm << _tao_aggregate.Id);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    MIOP::PacketHeader_1_0 &_tao_aggregate
  )
{
  MIOP::PacketHeader_1_0::_magic_forany _tao_aggregate_magic
      (const_cast<
          MIOP::PacketHeader_1_0::_magic_slice*> (
          _tao_aggregate.magic
        )
    );
  return
    (strm >> _tao_aggregate_magic) &&
    (strm >> CORBA::Any::to_octet (_tao_aggregate.hdr_version)) &&
    (strm >> CORBA::Any::to_octet (_tao_aggregate.flags)) &&
    (strm >> _tao_aggregate.packet_length) &&
    (strm >> _tao_aggregate.packet_number) &&
    (strm >> _tao_aggregate.number_of_packets) &&
    (strm >> _tao_aggregate.Id);
}

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

#if !defined _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__CPP_
#define _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_ &_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,
    MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_ &_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_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__CPP_ */

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

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const MIOP::UIPMC_ProfileBody &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.miop_version) &&
    (strm << _tao_aggregate.the_address.in ()) &&
    (strm << _tao_aggregate.the_port) &&
    (strm << _tao_aggregate.components);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    MIOP::UIPMC_ProfileBody &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.miop_version) &&
    (strm >> _tao_aggregate.the_address.out ()) &&
    (strm >> _tao_aggregate.the_port) &&
    (strm >> _tao_aggregate.components);
}

