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

#ifndef _TAO_IDL_MIOPC_H_
#define _TAO_IDL_MIOPC_H_

#include /**/ "ace/pre.h"


#include "ace/config-all.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "PortableGroup/portablegroup_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Sequence_T.h"
#include "tao/Seq_Var_T.h"
#include "tao/Seq_Out_T.h"
#include "tao/VarOut_T.h"
#include "tao/Array_VarOut_T.h"

#include "tao/IOPC.h"
#include "tao/GIOPC.h"

#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
#endif
#define TAO_EXPORT_MACRO TAO_PortableGroup_Export

#if defined (TAO_EXPORT_NESTED_CLASSES)
#  if defined (TAO_EXPORT_NESTED_MACRO)
#    undef TAO_EXPORT_NESTED_MACRO
#  endif /* defined (TAO_EXPORT_NESTED_MACRO) */
#  define TAO_EXPORT_NESTED_MACRO TAO_PortableGroup_Export
#endif /* TAO_EXPORT_NESTED_CLASSES */

#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */

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

// TAO_IDL - Generated from
// be/be_visitor_module/module_ch.cpp:48

namespace MIOP
{
  
  // TAO_IDL - Generated from
  // be/be_visitor_sequence/sequence_ch.cpp:101

#if !defined (_MIOP_UNIQUEID_CH_)
#define _MIOP_UNIQUEID_CH_
  
  class UniqueId;
  
  typedef
    TAO_FixedSeq_Var_T<
        UniqueId,
        CORBA::Octet
      >
    UniqueId_var;
  
  typedef
    TAO_Seq_Out_T<
        UniqueId,
        UniqueId_var,
        CORBA::Octet
      >
    UniqueId_out;
  
  class TAO_PortableGroup_Export UniqueId
    : public
        TAO_Bounded_Sequence<
            CORBA::Octet,
            252
          >
  {
  public:
    UniqueId (void);
    UniqueId (
        CORBA::ULong length,
        CORBA::Octet* buffer, 
        CORBA::Boolean release = 0
      );
    UniqueId (const UniqueId &);
    ~UniqueId (void);
    
    static void _tao_any_destructor (void *);
    
    typedef UniqueId_var _var_type;
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_UniqueId;
  
  // TAO_IDL - Generated from
  // be/be_type.cpp:258
  
  struct PacketHeader_1_0;
  
  typedef
    TAO_Var_Var_T<
        PacketHeader_1_0
      >
    PacketHeader_1_0_var;
  
  typedef
    TAO_Out_T<
        PacketHeader_1_0,
        PacketHeader_1_0_var
      >
    PacketHeader_1_0_out;
  
  // TAO_IDL - Generated from
  // be/be_visitor_structure/structure_ch.cpp:52
  
  struct TAO_PortableGroup_Export PacketHeader_1_0
  {
    typedef PacketHeader_1_0_var _var_type;
    
    static void _tao_any_destructor (void *);
    
    
    // TAO_IDL - Generated from 
    // be/be_visitor_array/array_ch.cpp:61

#if !defined (_MIOP_PACKETHEADER_1_0_MAGIC_CH_)
#define _MIOP_PACKETHEADER_1_0_MAGIC_CH_
    
    typedef CORBA::Char _magic[4];
    typedef CORBA::Char _magic_slice;
    struct _magic_tag {};
    
    typedef
      TAO_Array_Forany_T<
          _magic,
          _magic_slice,
          _magic_tag
        >
      _magic_forany;
    
    static _magic_slice *
    _magic_alloc (void);
    
    static void
    _magic_free (
        _magic_slice *_tao_slice
      );
    
    static _magic_slice *
    _magic_dup (
        const _magic_slice *_tao_slice
      );
    
    static void
    _magic_copy (
        _magic_slice *_tao_to,
        const _magic_slice *_tao_from
      );

#endif /* end #if !defined */
    
    _magic magic;
    CORBA::Octet hdr_version;
    CORBA::Octet flags;
    CORBA::UShort packet_length;
    CORBA::ULong packet_number;
    CORBA::ULong number_of_packets;
    MIOP::UniqueId Id;
  };
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PacketHeader_1_0;
  
  // TAO_IDL - Generated from
  // be/be_visitor_typedef/typedef_ch.cpp:482
  
  typedef GIOP::Version Version;
  typedef GIOP::Version_var Version_var;
  typedef GIOP::Version_out Version_out;
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Version;
  
  // TAO_IDL - Generated from
  // be/be_visitor_typedef/typedef_ch.cpp:376
  
  typedef char * Address;
  typedef CORBA::String_var Address_var;
  typedef CORBA::String_out Address_out;
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Address;
  
  // TAO_IDL - Generated from
  // be/be_type.cpp:258
  
  struct UIPMC_ProfileBody;
  
  typedef
    TAO_Var_Var_T<
        UIPMC_ProfileBody
      >
    UIPMC_ProfileBody_var;
  
  typedef
    TAO_Out_T<
        UIPMC_ProfileBody,
        UIPMC_ProfileBody_var
      >
    UIPMC_ProfileBody_out;
  
  // TAO_IDL - Generated from
  // be/be_visitor_structure/structure_ch.cpp:52
  
  struct TAO_PortableGroup_Export UIPMC_ProfileBody
  {
    typedef UIPMC_ProfileBody_var _var_type;
    
    static void _tao_any_destructor (void *);
    MIOP::Version miop_version;
    TAO_String_Manager the_address;
    CORBA::Short the_port;
    
    
    // TAO_IDL - Generated from
    // be/be_visitor_sequence/sequence_ch.cpp:101

#if !defined (_MIOP_UIPMC_PROFILEBODY__TAO_SEQ_IOP_TAGGEDCOMPONENT__CH_)
#define _MIOP_UIPMC_PROFILEBODY__TAO_SEQ_IOP_TAGGEDCOMPONENT__CH_
    
    class TAO_PortableGroup_Export _tao_seq_IOP_TaggedComponent_
      : public
          TAO_Unbounded_Sequence<
              IOP::TaggedComponent
            >
    {
    public:
      _tao_seq_IOP_TaggedComponent_ (void);
      _tao_seq_IOP_TaggedComponent_ (CORBA::ULong max);
      _tao_seq_IOP_TaggedComponent_ (
          CORBA::ULong max,
          CORBA::ULong length,
          IOP::TaggedComponent* buffer, 
          CORBA::Boolean release = 0
        );
      _tao_seq_IOP_TaggedComponent_ (const _tao_seq_IOP_TaggedComponent_ &);
      ~_tao_seq_IOP_TaggedComponent_ (void);
    };

#endif /* end #if !defined */
    
    // TAO_IDL - Generated from
    // be/be_visitor_field/field_ch.cpp:457
    
    typedef _tao_seq_IOP_TaggedComponent_ _components_seq;
    _tao_seq_IOP_TaggedComponent_ components;
  };
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_UIPMC_ProfileBody;

// TAO_IDL - Generated from
// be/be_visitor_module/module_ch.cpp:66

} // module MIOP

// TAO_IDL - Generated from
// be/be_visitor_traits.cpp:59

// Traits specializations.
namespace TAO
{
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_PortableGroup_Export Array_Traits<
      MIOP::PacketHeader_1_0::_magic,
      MIOP::PacketHeader_1_0::_magic_slice,
      MIOP::PacketHeader_1_0::_magic_tag
    >
  {
    static void tao_free (
        MIOP::PacketHeader_1_0::_magic_slice * _tao_slice
      );
    static MIOP::PacketHeader_1_0::_magic_slice * tao_dup (
        const MIOP::PacketHeader_1_0::_magic_slice * _tao_slice
      );
    static void tao_copy (
        MIOP::PacketHeader_1_0::_magic_slice * _tao_to,
        const MIOP::PacketHeader_1_0::_magic_slice * _tao_from
      );
    static MIOP::PacketHeader_1_0::_magic_slice * tao_alloc (void);
  };
}

// TAO_IDL - Generated from
// be/be_visitor_sequence/any_op_ch.cpp:52

TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UniqueId &); // copying version
TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UniqueId*); // noncopying version
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UniqueId *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UniqueId *&);

// TAO_IDL - Generated from
// be/be_visitor_structure/any_op_ch.cpp:52

TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::PacketHeader_1_0 &); // copying version
TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::PacketHeader_1_0*); // noncopying version
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::PacketHeader_1_0 *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::PacketHeader_1_0 *&);

// TAO_IDL - Generated from
// be/be_visitor_structure/any_op_ch.cpp:52

TAO_PortableGroup_Export void operator<<= (CORBA::Any &, const MIOP::UIPMC_ProfileBody &); // copying version
TAO_PortableGroup_Export void operator<<= (CORBA::Any &, MIOP::UIPMC_ProfileBody*); // noncopying version
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, MIOP::UIPMC_ProfileBody *&); // deprecated
TAO_PortableGroup_Export CORBA::Boolean operator>>= (const CORBA::Any &, const MIOP::UIPMC_ProfileBody *&);

// TAO_IDL - Generated from
// be/be_visitor_sequence/cdr_op_ch.cpp:71

#if !defined _TAO_CDR_OP_MIOP_UniqueId_H_
#define _TAO_CDR_OP_MIOP_UniqueId_H_

TAO_PortableGroup_Export CORBA::Boolean operator<< (
    TAO_OutputCDR &,
    const MIOP::UniqueId &
  );
TAO_PortableGroup_Export CORBA::Boolean operator>> (
    TAO_InputCDR &,
    MIOP::UniqueId &
  );

#endif /* _TAO_CDR_OP_MIOP_UniqueId_H_ */

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

TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::PacketHeader_1_0 &);
TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0 &);

// TAO_IDL - Generated from
// be/be_visitor_array/cdr_op_ch.cpp:116

TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::PacketHeader_1_0::_magic_forany &);
TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::PacketHeader_1_0::_magic_forany &);

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

TAO_PortableGroup_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const MIOP::UIPMC_ProfileBody &);
TAO_PortableGroup_Export CORBA::Boolean operator>> (TAO_InputCDR &, MIOP::UIPMC_ProfileBody &);

// TAO_IDL - Generated from
// be/be_visitor_sequence/cdr_op_ch.cpp:71

#if !defined _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__H_
#define _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__H_

TAO_PortableGroup_Export CORBA::Boolean operator<< (
    TAO_OutputCDR &,
    const MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_ &
  );
TAO_PortableGroup_Export CORBA::Boolean operator>> (
    TAO_InputCDR &,
    MIOP::UIPMC_ProfileBody::_tao_seq_IOP_TaggedComponent_ &
  );

#endif /* _TAO_CDR_OP_MIOP_UIPMC_ProfileBody__tao_seq_IOP_TaggedComponent__H_ */

// TAO_IDL - Generated from
// be/be_codegen.cpp:958

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

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option pop
#endif /* __BORLANDC__ */

#include /**/ "ace/post.h"

#endif /* ifndef */

