// -*- 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 "CosEventCommC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
#include "tao/Typecode.h"
#include "tao/Any_Impl_T.h"
#include "tao/Any_Dual_Impl_T.h"
#include "tao/Basic_Arguments.h"
#include "tao/Special_Basic_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 "CosEventCommC.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_arg_traits.cpp:582

#if !defined (_CORBA_ANY__ARG_TRAITS_CS_)
#define _CORBA_ANY__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_Event_Export Arg_Traits<CORBA::Any>
    : public
        Var_Size_Arg_Traits_T<
            CORBA::Any,
            CORBA::Any_var,
            CORBA::Any_out
          >
  {
  };

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


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

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

CosEventComm::Disconnected::~Disconnected (void)
{
}

CosEventComm::Disconnected::Disconnected (const ::CosEventComm::Disconnected &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

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

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

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

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

void CosEventComm::Disconnected::_raise (void) const
{
  TAO_RAISE (*this);
}

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

void CosEventComm::Disconnected::_tao_decode (
    TAO_InputCDR &cdr
    ACE_ENV_ARG_DECL
  )
{
  if (cdr >> *this)
    {
      return;
    }
  
  ACE_THROW (CORBA::MARSHAL ());
}

// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr CosEventComm::Disconnected::_type (void) const
{
  return ::CosEventComm::_tc_Disconnected;
}

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

static const CORBA::Long _oc_CosEventComm_Disconnected[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7345), 
  ACE_NTOHL (0x76656e74), 
  ACE_NTOHL (0x436f6d6d), 
  ACE_NTOHL (0x2f446973), 
  ACE_NTOHL (0x636f6e6e), 
  ACE_NTOHL (0x65637465), 
  ACE_NTOHL (0x643a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosEventComm/Disconnected:1.0
    13,
  ACE_NTOHL (0x44697363), 
  ACE_NTOHL (0x6f6e6e65), 
  ACE_NTOHL (0x63746564), 
  ACE_NTOHL (0x0),  // name = Disconnected
  0, // member count
  };

static CORBA::TypeCode _tc_TAO_tc_CosEventComm_Disconnected (
    CORBA::tk_except,
    sizeof (_oc_CosEventComm_Disconnected),
    (char *) &_oc_CosEventComm_Disconnected,
    0,
    sizeof (CosEventComm::Disconnected)
  );

namespace CosEventComm
{
  ::CORBA::TypeCode_ptr _tc_Disconnected =
    &_tc_TAO_tc_CosEventComm_Disconnected;
}

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

// Traits specializations for CosEventComm::PushConsumer.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PushConsumer_ptr
TAO::Objref_Traits<CosEventComm::PushConsumer>::tao_duplicate (
    CosEventComm::PushConsumer_ptr p
  )
{
  return CosEventComm::PushConsumer::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosEventComm::PushConsumer>::tao_release (
    CosEventComm::PushConsumer_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PushConsumer_ptr
TAO::Objref_Traits<CosEventComm::PushConsumer>::tao_nil (void)
{
  return CosEventComm::PushConsumer::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosEventComm::PushConsumer>::tao_marshal (
    CosEventComm::PushConsumer_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void CosEventComm::PushConsumer::push (
    const ::CORBA::Any & data
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosEventComm::Disconnected
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PushConsumer_Proxy_Broker_ == 0)
    {
      CosEventComm_PushConsumer_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< CORBA::Any>::in_arg_val _tao_data (data);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_data
    };
  
  static TAO::Exception_Data
  _tao_CosEventComm_PushConsumer_push_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosEventComm/Disconnected:1.0",
        CosEventComm::Disconnected::_alloc,
        CosEventComm::_tc_Disconnected
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "push",
      4,
      this->the_TAO_PushConsumer_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosEventComm_PushConsumer_push_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void CosEventComm::PushConsumer::disconnect_push_consumer (
    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_PushConsumer_Proxy_Broker_ == 0)
    {
      CosEventComm_PushConsumer_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "disconnect_push_consumer",
      24,
      this->the_TAO_PushConsumer_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosEventComm::PushConsumer::PushConsumer (void)
 : the_TAO_PushConsumer_Proxy_Broker_ (0)
{
  this->CosEventComm_PushConsumer_setup_collocation ();
}

void
CosEventComm::PushConsumer::CosEventComm_PushConsumer_setup_collocation ()
{
  if (::CosEventComm__TAO_PushConsumer_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_PushConsumer_Proxy_Broker_ =
        ::CosEventComm__TAO_PushConsumer_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosEventComm::PushConsumer::~PushConsumer (void)
{}

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

CosEventComm::PushConsumer_ptr
CosEventComm::PushConsumer::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PushConsumer>::narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PushConsumer:1.0",
        CosEventComm__TAO_PushConsumer_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PushConsumer_ptr
CosEventComm::PushConsumer::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PushConsumer>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PushConsumer:1.0",
        CosEventComm__TAO_PushConsumer_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PushConsumer_ptr
CosEventComm::PushConsumer::_duplicate (PushConsumer_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosEventComm::PushConsumer::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosEventComm_PushConsumer[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7345), 
  ACE_NTOHL (0x76656e74), 
  ACE_NTOHL (0x436f6d6d), 
  ACE_NTOHL (0x2f507573), 
  ACE_NTOHL (0x68436f6e), 
  ACE_NTOHL (0x73756d65), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosEventComm/PushConsumer:1.0
    13,
  ACE_NTOHL (0x50757368), 
  ACE_NTOHL (0x436f6e73), 
  ACE_NTOHL (0x756d6572), 
  ACE_NTOHL (0x0),  // name = PushConsumer
  };

static CORBA::TypeCode _tc_TAO_tc_CosEventComm_PushConsumer (
    CORBA::tk_objref,
    sizeof (_oc_CosEventComm_PushConsumer),
    (char *) &_oc_CosEventComm_PushConsumer,
    0,
    sizeof (CosEventComm::PushConsumer)
  );

namespace CosEventComm
{
  ::CORBA::TypeCode_ptr _tc_PushConsumer =
    &_tc_TAO_tc_CosEventComm_PushConsumer;
}

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

// Traits specializations for CosEventComm::PushSupplier.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PushSupplier_ptr
TAO::Objref_Traits<CosEventComm::PushSupplier>::tao_duplicate (
    CosEventComm::PushSupplier_ptr p
  )
{
  return CosEventComm::PushSupplier::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosEventComm::PushSupplier>::tao_release (
    CosEventComm::PushSupplier_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PushSupplier_ptr
TAO::Objref_Traits<CosEventComm::PushSupplier>::tao_nil (void)
{
  return CosEventComm::PushSupplier::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosEventComm::PushSupplier>::tao_marshal (
    CosEventComm::PushSupplier_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void CosEventComm::PushSupplier::disconnect_push_supplier (
    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_PushSupplier_Proxy_Broker_ == 0)
    {
      CosEventComm_PushSupplier_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "disconnect_push_supplier",
      24,
      this->the_TAO_PushSupplier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosEventComm::PushSupplier::PushSupplier (void)
 : the_TAO_PushSupplier_Proxy_Broker_ (0)
{
  this->CosEventComm_PushSupplier_setup_collocation ();
}

void
CosEventComm::PushSupplier::CosEventComm_PushSupplier_setup_collocation ()
{
  if (::CosEventComm__TAO_PushSupplier_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_PushSupplier_Proxy_Broker_ =
        ::CosEventComm__TAO_PushSupplier_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosEventComm::PushSupplier::~PushSupplier (void)
{}

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

CosEventComm::PushSupplier_ptr
CosEventComm::PushSupplier::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PushSupplier>::narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PushSupplier:1.0",
        CosEventComm__TAO_PushSupplier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PushSupplier_ptr
CosEventComm::PushSupplier::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PushSupplier>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PushSupplier:1.0",
        CosEventComm__TAO_PushSupplier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PushSupplier_ptr
CosEventComm::PushSupplier::_duplicate (PushSupplier_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosEventComm::PushSupplier::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosEventComm_PushSupplier[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7345), 
  ACE_NTOHL (0x76656e74), 
  ACE_NTOHL (0x436f6d6d), 
  ACE_NTOHL (0x2f507573), 
  ACE_NTOHL (0x68537570), 
  ACE_NTOHL (0x706c6965), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosEventComm/PushSupplier:1.0
    13,
  ACE_NTOHL (0x50757368), 
  ACE_NTOHL (0x53757070), 
  ACE_NTOHL (0x6c696572), 
  ACE_NTOHL (0x0),  // name = PushSupplier
  };

static CORBA::TypeCode _tc_TAO_tc_CosEventComm_PushSupplier (
    CORBA::tk_objref,
    sizeof (_oc_CosEventComm_PushSupplier),
    (char *) &_oc_CosEventComm_PushSupplier,
    0,
    sizeof (CosEventComm::PushSupplier)
  );

namespace CosEventComm
{
  ::CORBA::TypeCode_ptr _tc_PushSupplier =
    &_tc_TAO_tc_CosEventComm_PushSupplier;
}

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

// Traits specializations for CosEventComm::PullConsumer.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PullConsumer_ptr
TAO::Objref_Traits<CosEventComm::PullConsumer>::tao_duplicate (
    CosEventComm::PullConsumer_ptr p
  )
{
  return CosEventComm::PullConsumer::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosEventComm::PullConsumer>::tao_release (
    CosEventComm::PullConsumer_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PullConsumer_ptr
TAO::Objref_Traits<CosEventComm::PullConsumer>::tao_nil (void)
{
  return CosEventComm::PullConsumer::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosEventComm::PullConsumer>::tao_marshal (
    CosEventComm::PullConsumer_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

void CosEventComm::PullConsumer::disconnect_pull_consumer (
    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_PullConsumer_Proxy_Broker_ == 0)
    {
      CosEventComm_PullConsumer_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "disconnect_pull_consumer",
      24,
      this->the_TAO_PullConsumer_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosEventComm::PullConsumer::PullConsumer (void)
 : the_TAO_PullConsumer_Proxy_Broker_ (0)
{
  this->CosEventComm_PullConsumer_setup_collocation ();
}

void
CosEventComm::PullConsumer::CosEventComm_PullConsumer_setup_collocation ()
{
  if (::CosEventComm__TAO_PullConsumer_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_PullConsumer_Proxy_Broker_ =
        ::CosEventComm__TAO_PullConsumer_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosEventComm::PullConsumer::~PullConsumer (void)
{}

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

CosEventComm::PullConsumer_ptr
CosEventComm::PullConsumer::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PullConsumer>::narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PullConsumer:1.0",
        CosEventComm__TAO_PullConsumer_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PullConsumer_ptr
CosEventComm::PullConsumer::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PullConsumer>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PullConsumer:1.0",
        CosEventComm__TAO_PullConsumer_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PullConsumer_ptr
CosEventComm::PullConsumer::_duplicate (PullConsumer_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosEventComm::PullConsumer::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosEventComm_PullConsumer[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7345), 
  ACE_NTOHL (0x76656e74), 
  ACE_NTOHL (0x436f6d6d), 
  ACE_NTOHL (0x2f50756c), 
  ACE_NTOHL (0x6c436f6e), 
  ACE_NTOHL (0x73756d65), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosEventComm/PullConsumer:1.0
    13,
  ACE_NTOHL (0x50756c6c), 
  ACE_NTOHL (0x436f6e73), 
  ACE_NTOHL (0x756d6572), 
  ACE_NTOHL (0x0),  // name = PullConsumer
  };

static CORBA::TypeCode _tc_TAO_tc_CosEventComm_PullConsumer (
    CORBA::tk_objref,
    sizeof (_oc_CosEventComm_PullConsumer),
    (char *) &_oc_CosEventComm_PullConsumer,
    0,
    sizeof (CosEventComm::PullConsumer)
  );

namespace CosEventComm
{
  ::CORBA::TypeCode_ptr _tc_PullConsumer =
    &_tc_TAO_tc_CosEventComm_PullConsumer;
}

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

// Traits specializations for CosEventComm::PullSupplier.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PullSupplier_ptr
TAO::Objref_Traits<CosEventComm::PullSupplier>::tao_duplicate (
    CosEventComm::PullSupplier_ptr p
  )
{
  return CosEventComm::PullSupplier::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CosEventComm::PullSupplier>::tao_release (
    CosEventComm::PullSupplier_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CosEventComm::PullSupplier_ptr
TAO::Objref_Traits<CosEventComm::PullSupplier>::tao_nil (void)
{
  return CosEventComm::PullSupplier::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CosEventComm::PullSupplier>::tao_marshal (
    CosEventComm::PullSupplier_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

CORBA::Any * CosEventComm::PullSupplier::pull (
    ACE_ENV_SINGLE_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosEventComm::Disconnected
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PullSupplier_Proxy_Broker_ == 0)
    {
      CosEventComm_PullSupplier_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Any>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  static TAO::Exception_Data
  _tao_CosEventComm_PullSupplier_pull_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosEventComm/Disconnected:1.0",
        CosEventComm::Disconnected::_alloc,
        CosEventComm::_tc_Disconnected
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "pull",
      4,
      this->the_TAO_PullSupplier_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosEventComm_PullSupplier_pull_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

CORBA::Any * CosEventComm::PullSupplier::try_pull (
    ::CORBA::Boolean_out has_event
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosEventComm::Disconnected
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_PullSupplier_Proxy_Broker_ == 0)
    {
      CosEventComm_PullSupplier_setup_collocation ();
    }
  
  TAO::Arg_Traits< CORBA::Any>::ret_val _tao_retval;
  TAO::Arg_Traits< ACE_InputCDR::to_boolean>::out_arg_val _tao_has_event (has_event);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_has_event
    };
  
  static TAO::Exception_Data
  _tao_CosEventComm_PullSupplier_try_pull_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosEventComm/Disconnected:1.0",
        CosEventComm::Disconnected::_alloc,
        CosEventComm::_tc_Disconnected
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "try_pull",
      8,
      this->the_TAO_PullSupplier_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_CosEventComm_PullSupplier_try_pull_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK_RETURN (_tao_retval.excp ());
  
  return _tao_retval.retn ();
}

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

void CosEventComm::PullSupplier::disconnect_pull_supplier (
    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_PullSupplier_Proxy_Broker_ == 0)
    {
      CosEventComm_PullSupplier_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      1,
      "disconnect_pull_supplier",
      24,
      this->the_TAO_PullSupplier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

CosEventComm::PullSupplier::PullSupplier (void)
 : the_TAO_PullSupplier_Proxy_Broker_ (0)
{
  this->CosEventComm_PullSupplier_setup_collocation ();
}

void
CosEventComm::PullSupplier::CosEventComm_PullSupplier_setup_collocation ()
{
  if (::CosEventComm__TAO_PullSupplier_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_PullSupplier_Proxy_Broker_ =
        ::CosEventComm__TAO_PullSupplier_Proxy_Broker_Factory_function_pointer (this);
    }
}

CosEventComm::PullSupplier::~PullSupplier (void)
{}

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

CosEventComm::PullSupplier_ptr
CosEventComm::PullSupplier::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PullSupplier>::narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PullSupplier:1.0",
        CosEventComm__TAO_PullSupplier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PullSupplier_ptr
CosEventComm::PullSupplier::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<PullSupplier>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/CosEventComm/PullSupplier:1.0",
        CosEventComm__TAO_PullSupplier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

CosEventComm::PullSupplier_ptr
CosEventComm::PullSupplier::_duplicate (PullSupplier_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
CosEventComm::PullSupplier::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_CosEventComm_PullSupplier[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  42,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x436f7345), 
  ACE_NTOHL (0x76656e74), 
  ACE_NTOHL (0x436f6d6d), 
  ACE_NTOHL (0x2f50756c), 
  ACE_NTOHL (0x6c537570), 
  ACE_NTOHL (0x706c6965), 
  ACE_NTOHL (0x723a312e), 
  ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CosEventComm/PullSupplier:1.0
    13,
  ACE_NTOHL (0x50756c6c), 
  ACE_NTOHL (0x53757070), 
  ACE_NTOHL (0x6c696572), 
  ACE_NTOHL (0x0),  // name = PullSupplier
  };

static CORBA::TypeCode _tc_TAO_tc_CosEventComm_PullSupplier (
    CORBA::tk_objref,
    sizeof (_oc_CosEventComm_PullSupplier),
    (char *) &_oc_CosEventComm_PullSupplier,
    0,
    sizeof (CosEventComm::PullSupplier)
  );

namespace CosEventComm
{
  ::CORBA::TypeCode_ptr _tc_PullSupplier =
    &_tc_TAO_tc_CosEventComm_PullSupplier;
}

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

ACE_TEMPLATE_SPECIALIZATION
CORBA::Boolean
TAO::Any_Dual_Impl_T<CosEventComm::Disconnected>::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 CosEventComm::Disconnected &_tao_elem
  )
{
  TAO::Any_Dual_Impl_T<CosEventComm::Disconnected>::insert_copy (
      _tao_any,
      CosEventComm::Disconnected::_tao_any_destructor,
      CosEventComm::_tc_Disconnected,
      _tao_elem
    );
}

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

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

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

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

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

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosEventComm::PushConsumer_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosEventComm::PushConsumer>::insert (
      _tao_any,
      CosEventComm::PushConsumer::_tao_any_destructor,
      CosEventComm::_tc_PushConsumer,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosEventComm::PushConsumer_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosEventComm::PushConsumer>::extract (
        _tao_any,
        CosEventComm::PushConsumer::_tao_any_destructor,
        CosEventComm::_tc_PushConsumer,
        _tao_elem
      );
}

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

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

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosEventComm::PushSupplier_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosEventComm::PushSupplier>::insert (
      _tao_any,
      CosEventComm::PushSupplier::_tao_any_destructor,
      CosEventComm::_tc_PushSupplier,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosEventComm::PushSupplier_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosEventComm::PushSupplier>::extract (
        _tao_any,
        CosEventComm::PushSupplier::_tao_any_destructor,
        CosEventComm::_tc_PushSupplier,
        _tao_elem
      );
}

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

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

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosEventComm::PullConsumer_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosEventComm::PullConsumer>::insert (
      _tao_any,
      CosEventComm::PullConsumer::_tao_any_destructor,
      CosEventComm::_tc_PullConsumer,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosEventComm::PullConsumer_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosEventComm::PullConsumer>::extract (
        _tao_any,
        CosEventComm::PullConsumer::_tao_any_destructor,
        CosEventComm::_tc_PullConsumer,
        _tao_elem
      );
}

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

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

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    CosEventComm::PullSupplier_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<CosEventComm::PullSupplier>::insert (
      _tao_any,
      CosEventComm::PullSupplier::_tao_any_destructor,
      CosEventComm::_tc_PullSupplier,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    CosEventComm::PullSupplier_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<CosEventComm::PullSupplier>::extract (
        _tao_any,
        CosEventComm::PullSupplier::_tao_any_destructor,
        CosEventComm::_tc_PullSupplier,
        _tao_elem
      );
}

// TAO_IDL - Generated from
// be/be_visitor_exception/cdr_op_cs.cpp:60

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosEventComm::Disconnected &_tao_aggregate
  )
{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      return 1;
    }
  else
    {
      return 0;
    }
}

CORBA::Boolean operator>> (
    TAO_InputCDR &,
    CosEventComm::Disconnected&
  )
{
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosEventComm::PushConsumer_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosEventComm::PushConsumer_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosEventComm::PushConsumer RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosEventComm__TAO_PushConsumer_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosEventComm::PushSupplier_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosEventComm::PushSupplier_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosEventComm::PushSupplier RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosEventComm__TAO_PushSupplier_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosEventComm::PullConsumer_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosEventComm::PullConsumer_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosEventComm::PullConsumer RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosEventComm__TAO_PullConsumer_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_cs.cpp:63

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const CosEventComm::PullSupplier_ptr _tao_objref
  )
{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    CosEventComm::PullSupplier_ptr &_tao_objref
  )
{
  CORBA::Object_var obj;
  
  if ((strm >> obj.inout ()) == 0)
    {
      return 0;
    }
  
  typedef ::CosEventComm::PullSupplier RHS_SCOPED_NAME;
  
  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CosEventComm__TAO_PullSupplier_Proxy_Broker_Factory_function_pointer
      );
    
  return 1;
}

