// -*- C++ -*-
/**
 * Code generated by the The ACE ORB (TAO) IDL Compiler v2.4.0
 * 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
 * and
 *       Institute for Software Integrated Systems
 *       Vanderbilt University
 *       Nashville, TN
 *       USA
 *       http://www.isis.vanderbilt.edu/
 *
 * Information about TAO is available at:
 *     http://www.dre.vanderbilt.edu/~schmidt/TAO.html
 **/

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

#ifndef _TAO_IDL_COSTYPEDEVENTCHANNELADMINS_T_RLNUMX_CPP_
#define _TAO_IDL_COSTYPEDEVENTCHANNELADMINS_T_RLNUMX_CPP_

#include "CosTypedEventChannelAdminS_T.h"

// TAO_IDL - Generated from
// be/be_visitor_interface/tie_ss.cpp:79

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::TypedProxyPushConsumer_tie (T &t)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::TypedProxyPushConsumer_tie (T &t, ::PortableServer::POA_ptr poa)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::TypedProxyPushConsumer_tie (T *tp, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::TypedProxyPushConsumer_tie (T *tp, ::PortableServer::POA_ptr poa, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::~TypedProxyPushConsumer_tie (void)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
}

template <class T> T *
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_tied_object (void)
{
  return this->ptr_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_tied_object (T &obj)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = &obj;
  this->rel_ = false;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_tied_object (T *obj, ::CORBA::Boolean release)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = obj;
  this->rel_ = release;
}

template <class T>  ::CORBA::Boolean
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_is_owner (void)
{
  return this->rel_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_is_owner ( ::CORBA::Boolean b)
{
  this->rel_ = b;
}

template <class T> PortableServer::POA_ptr
POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::_default_POA ()
{
  if (! ::CORBA::is_nil (this->poa_.in ()))
    {
      return ::PortableServer::POA::_duplicate (this->poa_.in ());
    }
  
  return this->TypedProxyPushConsumer::_default_POA ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::push  (
  const ::CORBA::Any & data)
{
  this->ptr_->push (
    data
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::disconnect_push_consumer  (
  void)
{
  this->ptr_->disconnect_push_consumer (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::connect_push_supplier  (
  ::CosEventComm::PushSupplier_ptr push_supplier)
{
  this->ptr_->connect_push_supplier (
    push_supplier
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CORBA::Object_ptr POA_CosTypedEventChannelAdmin::TypedProxyPushConsumer_tie<T>::get_typed_consumer  (
  void)
{
  return this->ptr_->get_typed_consumer (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/tie_ss.cpp:79

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::TypedProxyPullSupplier_tie (T &t)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::TypedProxyPullSupplier_tie (T &t, ::PortableServer::POA_ptr poa)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::TypedProxyPullSupplier_tie (T *tp, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::TypedProxyPullSupplier_tie (T *tp, ::PortableServer::POA_ptr poa, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::~TypedProxyPullSupplier_tie (void)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
}

template <class T> T *
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_tied_object (void)
{
  return this->ptr_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_tied_object (T &obj)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = &obj;
  this->rel_ = false;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_tied_object (T *obj, ::CORBA::Boolean release)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = obj;
  this->rel_ = release;
}

template <class T>  ::CORBA::Boolean
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_is_owner (void)
{
  return this->rel_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_is_owner ( ::CORBA::Boolean b)
{
  this->rel_ = b;
}

template <class T> PortableServer::POA_ptr
POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::_default_POA ()
{
  if (! ::CORBA::is_nil (this->poa_.in ()))
    {
      return ::PortableServer::POA::_duplicate (this->poa_.in ());
    }
  
  return this->TypedProxyPullSupplier::_default_POA ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CORBA::Any * POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::pull  (
  void)
{
  return this->ptr_->pull (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CORBA::Any * POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::try_pull  (
  ::CORBA::Boolean_out has_event)
{
  return this->ptr_->try_pull (
    has_event
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::disconnect_pull_supplier  (
  void)
{
  this->ptr_->disconnect_pull_supplier (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::connect_pull_consumer  (
  ::CosEventComm::PullConsumer_ptr pull_consumer)
{
  this->ptr_->connect_pull_consumer (
    pull_consumer
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CORBA::Object_ptr POA_CosTypedEventChannelAdmin::TypedProxyPullSupplier_tie<T>::get_typed_supplier  (
  void)
{
  return this->ptr_->get_typed_supplier (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/tie_ss.cpp:79

template <class T>
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::TypedSupplierAdmin_tie (T &t)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::TypedSupplierAdmin_tie (T &t, ::PortableServer::POA_ptr poa)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::TypedSupplierAdmin_tie (T *tp, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::TypedSupplierAdmin_tie (T *tp, ::PortableServer::POA_ptr poa, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::~TypedSupplierAdmin_tie (void)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
}

template <class T> T *
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_tied_object (void)
{
  return this->ptr_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_tied_object (T &obj)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = &obj;
  this->rel_ = false;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_tied_object (T *obj, ::CORBA::Boolean release)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = obj;
  this->rel_ = release;
}

template <class T>  ::CORBA::Boolean
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_is_owner (void)
{
  return this->rel_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_is_owner ( ::CORBA::Boolean b)
{
  this->rel_ = b;
}

template <class T> PortableServer::POA_ptr
POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::_default_POA ()
{
  if (! ::CORBA::is_nil (this->poa_.in ()))
    {
      return ::PortableServer::POA::_duplicate (this->poa_.in ());
    }
  
  return this->TypedSupplierAdmin::_default_POA ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPushConsumer_ptr POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::obtain_push_consumer  (
  void)
{
  return this->ptr_->obtain_push_consumer (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPullConsumer_ptr POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::obtain_pull_consumer  (
  void)
{
  return this->ptr_->obtain_pull_consumer (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosTypedEventChannelAdmin::TypedProxyPushConsumer_ptr POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::obtain_typed_push_consumer  (
  const char * supported_interface)
{
  return this->ptr_->obtain_typed_push_consumer (
    supported_interface
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPullConsumer_ptr POA_CosTypedEventChannelAdmin::TypedSupplierAdmin_tie<T>::obtain_typed_pull_consumer  (
  const char * uses_interface)
{
  return this->ptr_->obtain_typed_pull_consumer (
    uses_interface
  );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/tie_ss.cpp:79

template <class T>
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::TypedConsumerAdmin_tie (T &t)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::TypedConsumerAdmin_tie (T &t, ::PortableServer::POA_ptr poa)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::TypedConsumerAdmin_tie (T *tp, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::TypedConsumerAdmin_tie (T *tp, ::PortableServer::POA_ptr poa, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::~TypedConsumerAdmin_tie (void)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
}

template <class T> T *
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_tied_object (void)
{
  return this->ptr_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_tied_object (T &obj)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = &obj;
  this->rel_ = false;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_tied_object (T *obj, ::CORBA::Boolean release)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = obj;
  this->rel_ = release;
}

template <class T>  ::CORBA::Boolean
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_is_owner (void)
{
  return this->rel_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_is_owner ( ::CORBA::Boolean b)
{
  this->rel_ = b;
}

template <class T> PortableServer::POA_ptr
POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::_default_POA ()
{
  if (! ::CORBA::is_nil (this->poa_.in ()))
    {
      return ::PortableServer::POA::_duplicate (this->poa_.in ());
    }
  
  return this->TypedConsumerAdmin::_default_POA ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPushSupplier_ptr POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::obtain_push_supplier  (
  void)
{
  return this->ptr_->obtain_push_supplier (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPullSupplier_ptr POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::obtain_pull_supplier  (
  void)
{
  return this->ptr_->obtain_pull_supplier (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosTypedEventChannelAdmin::TypedProxyPullSupplier_ptr POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::obtain_typed_pull_supplier  (
  const char * supported_interface)
{
  return this->ptr_->obtain_typed_pull_supplier (
    supported_interface
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosEventChannelAdmin::ProxyPushSupplier_ptr POA_CosTypedEventChannelAdmin::TypedConsumerAdmin_tie<T>::obtain_typed_push_supplier  (
  const char * uses_interface)
{
  return this->ptr_->obtain_typed_push_supplier (
    uses_interface
  );
}

// TAO_IDL - Generated from
// be/be_visitor_interface/tie_ss.cpp:79

template <class T>
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::TypedEventChannel_tie (T &t)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::TypedEventChannel_tie (T &t, ::PortableServer::POA_ptr poa)
  : ptr_ (&t),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (false)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::TypedEventChannel_tie (T *tp, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_nil ()),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::TypedEventChannel_tie (T *tp, ::PortableServer::POA_ptr poa, ::CORBA::Boolean release)
  : ptr_ (tp),
    poa_ ( ::PortableServer::POA::_duplicate (poa)),
    rel_ (release)
{}

template <class T>
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::~TypedEventChannel_tie (void)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
}

template <class T> T *
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_tied_object (void)
{
  return this->ptr_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_tied_object (T &obj)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = &obj;
  this->rel_ = false;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_tied_object (T *obj, ::CORBA::Boolean release)
{
  if (this->rel_)
    {
      delete this->ptr_;
    }
  
  this->ptr_ = obj;
  this->rel_ = release;
}

template <class T>  ::CORBA::Boolean
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_is_owner (void)
{
  return this->rel_;
}

template <class T> void
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_is_owner ( ::CORBA::Boolean b)
{
  this->rel_ = b;
}

template <class T> PortableServer::POA_ptr
POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::_default_POA ()
{
  if (! ::CORBA::is_nil (this->poa_.in ()))
    {
      return ::PortableServer::POA::_duplicate (this->poa_.in ());
    }
  
  return this->TypedEventChannel::_default_POA ();
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosTypedEventChannelAdmin::TypedConsumerAdmin_ptr POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::for_consumers  (
  void)
{
  return this->ptr_->for_consumers (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
::CosTypedEventChannelAdmin::TypedSupplierAdmin_ptr POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::for_suppliers  (
  void)
{
  return this->ptr_->for_suppliers (
  );
}

// TAO_IDL - Generated from
// be/be_visitor_operation/tie_ss.cpp:92

template <class T>
void POA_CosTypedEventChannelAdmin::TypedEventChannel_tie<T>::destroy  (
  void)
{
  this->ptr_->destroy (
  );
}
#endif /* ifndef */

