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

#ifndef _TAO_IDL_PUSHPORTS_H_
#define _TAO_IDL_PUSHPORTS_H_


#include "ace/config-all.h"

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

#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
#include "tao/Managed_Types.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/Versioned_Namespace.h"

#include "CF.h"
#include "PortTypes.h"

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

// TAO_IDL - Generated from 
// be/be_visitor_root/root_ch.cpp:62
TAO_BEGIN_VERSIONED_NAMESPACE_DECL



namespace TAO
{
  class Collocation_Proxy_Broker;
  template<typename T> class Narrow_Utils;
}
TAO_END_VERSIONED_NAMESPACE_DECL



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

namespace PushPorts
{
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:646

#if !defined (_PUSHPORTS_OCTETSEQCONSUMER__VAR_OUT_CH_)
#define _PUSHPORTS_OCTETSEQCONSUMER__VAR_OUT_CH_
  
  class OctetSeqConsumer;
  typedef OctetSeqConsumer *OctetSeqConsumer_ptr;
  
  typedef
    TAO_Objref_Var_T<
        OctetSeqConsumer
      >
    OctetSeqConsumer_var;
  
  typedef
    TAO_Objref_Out_T<
        OctetSeqConsumer
      >
    OctetSeqConsumer_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_PUSHPORTS_OCTETSEQCONSUMER_CH_)
#define _PUSHPORTS_OCTETSEQCONSUMER_CH_
  
  class  OctetSeqConsumer
    : public virtual ::CORBA::Object
  {
  public:
    friend class TAO::Narrow_Utils<OctetSeqConsumer>;
    typedef OctetSeqConsumer_ptr _ptr_type;
    typedef OctetSeqConsumer_var _var_type;
    
    // The static operations.
    static OctetSeqConsumer_ptr _duplicate (OctetSeqConsumer_ptr obj);
    
    static void _tao_release (OctetSeqConsumer_ptr obj);
    
    static OctetSeqConsumer_ptr _narrow (
        ::CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static OctetSeqConsumer_ptr _unchecked_narrow (
        ::CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static OctetSeqConsumer_ptr _nil (void)
    {
      return static_cast<OctetSeqConsumer_ptr> (0);
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void processOctetMsg (
        const ::CF::OctetSequence & msg,
        const ::CF::Properties & options
      )
      ACE_THROW_SPEC ((
        ::CORBA::SystemException
      ));
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:210
    
    virtual ::CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  private:
    TAO::Collocation_Proxy_Broker *the_TAO_OctetSeqConsumer_Proxy_Broker_;
  
  protected:
    // Concrete interface only.
    OctetSeqConsumer (void);
    
    // These methods travese the inheritance tree and set the
    // parents piece of the given class in the right mode.
    virtual void PushPorts_OctetSeqConsumer_setup_collocation (void);
    
    // Concrete non-local interface only.
    OctetSeqConsumer (
        IOP::IOR *ior,
        TAO_ORB_Core *orb_core = 0
      );
    
    // Non-local interface only.
    OctetSeqConsumer (
        TAO_Stub *objref,
        ::CORBA::Boolean _tao_collocated = 0,
        TAO_Abstract_ServantBase *servant = 0,
        TAO_ORB_Core *orb_core = 0
      );
    
    virtual ~OctetSeqConsumer (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    OctetSeqConsumer (const OctetSeqConsumer &);
    
    void operator= (const OctetSeqConsumer &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:49
  
  extern  ::CORBA::TypeCode_ptr const _tc_OctetSeqConsumer;

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

} // module PushPorts

// Proxy Broker Factory function pointer declarations.

// TAO_IDL - Generated from
// be/be_visitor_root/root.cpp:139

extern 
TAO::Collocation_Proxy_Broker *
(*PushPorts__TAO_OctetSeqConsumer_Proxy_Broker_Factory_function_pointer) (
    ::CORBA::Object_ptr obj
  );

// TAO_IDL - Generated from
// be/be_visitor_traits.cpp:62
TAO_BEGIN_VERSIONED_NAMESPACE_DECL



// Traits specializations.
namespace TAO
{

#if !defined (_PUSHPORTS_OCTETSEQCONSUMER__TRAITS_)
#define _PUSHPORTS_OCTETSEQCONSUMER__TRAITS_
  
  template<>
  struct  Objref_Traits< ::PushPorts::OctetSeqConsumer>
  {
    static ::PushPorts::OctetSeqConsumer_ptr duplicate (
        ::PushPorts::OctetSeqConsumer_ptr
      );
    static void release (
        ::PushPorts::OctetSeqConsumer_ptr
      );
    static ::PushPorts::OctetSeqConsumer_ptr nil (void);
    static ::CORBA::Boolean marshal (
        const ::PushPorts::OctetSeqConsumer_ptr p,
        TAO_OutputCDR & cdr
      );
  };

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



// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:54



#if defined (ACE_ANY_OPS_USE_NAMESPACE)

namespace PushPorts
{
   void operator<<= ( ::CORBA::Any &, OctetSeqConsumer_ptr); // copying
   void operator<<= ( ::CORBA::Any &, OctetSeqConsumer_ptr *); // non-copying
   ::CORBA::Boolean operator>>= (const ::CORBA::Any &, OctetSeqConsumer_ptr &);
}

#else


TAO_BEGIN_VERSIONED_NAMESPACE_DECL

 void operator<<= (::CORBA::Any &, PushPorts::OctetSeqConsumer_ptr); // copying
 void operator<<= (::CORBA::Any &, PushPorts::OctetSeqConsumer_ptr *); // non-copying
 ::CORBA::Boolean operator>>= (const ::CORBA::Any &, PushPorts::OctetSeqConsumer_ptr &);
TAO_END_VERSIONED_NAMESPACE_DECL



#endif

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_ch.cpp:55


TAO_BEGIN_VERSIONED_NAMESPACE_DECL

 ::CORBA::Boolean operator<< (TAO_OutputCDR &, const PushPorts::OctetSeqConsumer_ptr );
 ::CORBA::Boolean operator>> (TAO_InputCDR &, PushPorts::OctetSeqConsumer_ptr &);
TAO_END_VERSIONED_NAMESPACE_DECL



// TAO_IDL - Generated from
// be/be_codegen.cpp:1093
#if defined (__ACE_INLINE__)
#include "PushPorts.inl"
#endif /* defined INLINE */

#endif /* ifndef */


