// -*- C++ -*-
/**
 * Code generated by the The ACE ORB (TAO) IDL Compiler v4.0.0
 * TAO and the TAO IDL Compiler have been developed by:
 *       Center for Distributed Object Computing
 *       Washington University
 *       St. Louis, MO
 *       USA
 * and
 *       Distributed Object Computing Laboratory
 *       University of California at Irvine
 *       Irvine, CA
 *       USA
 * and
 *       Institute for Software Integrated Systems
 *       Vanderbilt University
 *       Nashville, TN
 *       USA
 *       https://www.isis.vanderbilt.edu/
 *
 * Information about TAO is available at:
 *     https://www.dre.vanderbilt.edu/~schmidt/TAO.html
 **/

// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_codegen.cpp:580

#ifndef _TAO_IDL_COSTYPEDEVENTCOMMS_T_XKDMDZ_H_
#define _TAO_IDL_COSTYPEDEVENTCOMMS_T_XKDMDZ_H_

#include /**/ "ace/pre.h"
// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp:64

namespace POA_CosTypedEventComm
{
  // TAO_IDL - Generated from
  // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp:70

  // TIE class: Refer to CORBA v2.2, Section 20.34.4
  template <class T>
  class  TypedPushConsumer_tie : public TypedPushConsumer
  {
  public:
    /// the T& ctor
    TypedPushConsumer_tie (T &t);
    /// ctor taking a POA
    TypedPushConsumer_tie (T &t, PortableServer::POA_ptr poa);
    /// ctor taking pointer and an ownership flag
    TypedPushConsumer_tie (T *tp, ::CORBA::Boolean release = true);
    /// ctor with T*, ownership flag and a POA
    TypedPushConsumer_tie (
        T *tp,
        PortableServer::POA_ptr poa,
        ::CORBA::Boolean release = true);
    /// dtor
    ~TypedPushConsumer_tie ();
    // TIE specific functions
    /// return the underlying object
    T *_tied_object ();
    /// set the underlying object
    void _tied_object (T &obj);
    /// set the underlying object and the ownership flag
    void _tied_object (T *obj, ::CORBA::Boolean release = true);
    /// do we own it
    ::CORBA::Boolean _is_owner ();
    /// set the ownership

    void _is_owner (::CORBA::Boolean b);
    // overridden ServantBase operations
    PortableServer::POA_ptr _default_POA ();
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    void push (
      const ::CORBA::Any &);
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    void disconnect_push_consumer ();
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    ::CORBA::Object_ptr get_typed_consumer ();
  
  private:
    T *ptr_;
    PortableServer::POA_var poa_;
    ::CORBA::Boolean rel_;

    TypedPushConsumer_tie (const TypedPushConsumer_tie &) = delete;
    void operator= (const TypedPushConsumer_tie &) = delete;
  };
  // TAO_IDL - Generated from
  // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp:70

  // TIE class: Refer to CORBA v2.2, Section 20.34.4
  template <class T>
  class  TypedPullSupplier_tie : public TypedPullSupplier
  {
  public:
    /// the T& ctor
    TypedPullSupplier_tie (T &t);
    /// ctor taking a POA
    TypedPullSupplier_tie (T &t, PortableServer::POA_ptr poa);
    /// ctor taking pointer and an ownership flag
    TypedPullSupplier_tie (T *tp, ::CORBA::Boolean release = true);
    /// ctor with T*, ownership flag and a POA
    TypedPullSupplier_tie (
        T *tp,
        PortableServer::POA_ptr poa,
        ::CORBA::Boolean release = true);
    /// dtor
    ~TypedPullSupplier_tie ();
    // TIE specific functions
    /// return the underlying object
    T *_tied_object ();
    /// set the underlying object
    void _tied_object (T &obj);
    /// set the underlying object and the ownership flag
    void _tied_object (T *obj, ::CORBA::Boolean release = true);
    /// do we own it
    ::CORBA::Boolean _is_owner ();
    /// set the ownership

    void _is_owner (::CORBA::Boolean b);
    // overridden ServantBase operations
    PortableServer::POA_ptr _default_POA ();
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    ::CORBA::Any * pull ();
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    ::CORBA::Any * try_pull (
      ::CORBA::Boolean_out);
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    void disconnect_pull_supplier ();
    // TAO_IDL - Generated from
    // /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp:50

    ::CORBA::Object_ptr get_typed_supplier ();
  
  private:
    T *ptr_;
    PortableServer::POA_var poa_;
    ::CORBA::Boolean rel_;

    TypedPullSupplier_tie (const TypedPullSupplier_tie &) = delete;
    void operator= (const TypedPullSupplier_tie &) = delete;
  };
} // module CosTypedEventComm
// TAO_IDL - Generated from
// /opt/local/var/macports/build/tao-565c56da/work/ACE_wrappers/TAO/TAO_IDL/be/be_codegen.cpp:1790


#include "CosTypedEventCommS_T.cpp"

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

