// -*- 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 "FT_NotifierC.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/Basic_Arguments.h"
#include "tao/Object_Argument_T.h"
#include "tao/Special_Basic_Arguments.h"
#include "tao/UB_String_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 "FT_NotifierC.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_FT_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_arg_traits.cpp:379

#if !defined (_COSNAMING_NAME__ARG_TRAITS_CS_)
#define _COSNAMING_NAME__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNaming::Name>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::Name,
            CosNaming::Name_var,
            CosNaming::Name_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:618

#if !defined (_COSNAMING_BINDING__ARG_TRAITS_CS_)
#define _COSNAMING_BINDING__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNaming::Binding>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::Binding,
            CosNaming::Binding_var,
            CosNaming::Binding_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNAMING_BINDINGLIST__ARG_TRAITS_CS_)
#define _COSNAMING_BINDINGLIST__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNaming::BindingList>
    : public
        Var_Size_Arg_Traits_T<
            CosNaming::BindingList,
            CosNaming::BindingList_var,
            CosNaming::BindingList_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNAMING_BINDINGITERATOR__ARG_TRAITS_CS_)
#define _COSNAMING_BINDINGITERATOR__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNaming::BindingIterator>
    : public
        Object_Arg_Traits_T<
            CosNaming::BindingIterator_ptr,
            CosNaming::BindingIterator_var,
            CosNaming::BindingIterator_out,
            TAO::Objref_Traits<CosNaming::BindingIterator>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNAMING_NAMINGCONTEXT__ARG_TRAITS_CS_)
#define _COSNAMING_NAMINGCONTEXT__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNaming::NamingContext>
    : public
        Object_Arg_Traits_T<
            CosNaming::NamingContext_ptr,
            CosNaming::NamingContext_var,
            CosNaming::NamingContext_out,
            TAO::Objref_Traits<CosNaming::NamingContext>
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_PORTABLEGROUP_PROPERTIES__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_PROPERTIES__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<PortableGroup::Properties>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::Properties,
            PortableGroup::Properties_var,
            PortableGroup::Properties_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:618

#if !defined (_PORTABLEGROUP_FACTORYINFO__ARG_TRAITS_CS_)
#define _PORTABLEGROUP_FACTORYINFO__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<PortableGroup::FactoryInfo>
    : public
        Var_Size_Arg_Traits_T<
            PortableGroup::FactoryInfo,
            PortableGroup::FactoryInfo_var,
            PortableGroup::FactoryInfo_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFICATION_PROPERTYSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFICATION_PROPERTYSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotification::PropertySeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotification::PropertySeq,
            CosNotification::PropertySeq_var,
            CosNotification::PropertySeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFICATION_EVENTTYPESEQ__ARG_TRAITS_CS_)
#define _COSNOTIFICATION_EVENTTYPESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotification::EventTypeSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotification::EventTypeSeq,
            CosNotification::EventTypeSeq_var,
            CosNotification::EventTypeSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFICATION_NAMEDPROPERTYRANGESEQ__ARG_TRAITS_CS_)
#define _COSNOTIFICATION_NAMEDPROPERTYRANGESEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotification::NamedPropertyRangeSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotification::NamedPropertyRangeSeq,
            CosNotification::NamedPropertyRangeSeq_var,
            CosNotification::NamedPropertyRangeSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:618

#if !defined (_COSNOTIFICATION_STRUCTUREDEVENT__ARG_TRAITS_CS_)
#define _COSNOTIFICATION_STRUCTUREDEVENT__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotification::StructuredEvent>
    : public
        Var_Size_Arg_Traits_T<
            CosNotification::StructuredEvent,
            CosNotification::StructuredEvent_var,
            CosNotification::StructuredEvent_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFICATION_EVENTBATCH__ARG_TRAITS_CS_)
#define _COSNOTIFICATION_EVENTBATCH__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotification::EventBatch>
    : public
        Var_Size_Arg_Traits_T<
            CosNotification::EventBatch,
            CosNotification::EventBatch_var,
            CosNotification::EventBatch_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNOTIFYCOMM_NOTIFYSUBSCRIBE__ARG_TRAITS_CS_)
#define _COSNOTIFYCOMM_NOTIFYSUBSCRIBE__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyComm::NotifySubscribe>
    : public
        Object_Arg_Traits_T<
            CosNotifyComm::NotifySubscribe_ptr,
            CosNotifyComm::NotifySubscribe_var,
            CosNotifyComm::NotifySubscribe_out,
            TAO::Objref_Traits<CosNotifyComm::NotifySubscribe>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNOTIFYCOMM_STRUCTUREDPUSHCONSUMER__ARG_TRAITS_CS_)
#define _COSNOTIFYCOMM_STRUCTUREDPUSHCONSUMER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyComm::StructuredPushConsumer>
    : public
        Object_Arg_Traits_T<
            CosNotifyComm::StructuredPushConsumer_ptr,
            CosNotifyComm::StructuredPushConsumer_var,
            CosNotifyComm::StructuredPushConsumer_out,
            TAO::Objref_Traits<CosNotifyComm::StructuredPushConsumer>
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNOTIFYCOMM_SEQUENCEPUSHCONSUMER__ARG_TRAITS_CS_)
#define _COSNOTIFYCOMM_SEQUENCEPUSHCONSUMER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyComm::SequencePushConsumer>
    : public
        Object_Arg_Traits_T<
            CosNotifyComm::SequencePushConsumer_ptr,
            CosNotifyComm::SequencePushConsumer_var,
            CosNotifyComm::SequencePushConsumer_out,
            TAO::Objref_Traits<CosNotifyComm::SequencePushConsumer>
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFYFILTER_CONSTRAINTIDSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_CONSTRAINTIDSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::ConstraintIDSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotifyFilter::ConstraintIDSeq,
            CosNotifyFilter::ConstraintIDSeq_var,
            CosNotifyFilter::ConstraintIDSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFYFILTER_CONSTRAINTEXPSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_CONSTRAINTEXPSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::ConstraintExpSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotifyFilter::ConstraintExpSeq,
            CosNotifyFilter::ConstraintExpSeq_var,
            CosNotifyFilter::ConstraintExpSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFYFILTER_CONSTRAINTINFOSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_CONSTRAINTINFOSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::ConstraintInfoSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotifyFilter::ConstraintInfoSeq,
            CosNotifyFilter::ConstraintInfoSeq_var,
            CosNotifyFilter::ConstraintInfoSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFYFILTER_MAPPINGCONSTRAINTPAIRSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_MAPPINGCONSTRAINTPAIRSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::MappingConstraintPairSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotifyFilter::MappingConstraintPairSeq,
            CosNotifyFilter::MappingConstraintPairSeq_var,
            CosNotifyFilter::MappingConstraintPairSeq_out
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_COSNOTIFYFILTER_MAPPINGCONSTRAINTINFOSEQ__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_MAPPINGCONSTRAINTINFOSEQ__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::MappingConstraintInfoSeq>
    : public
        Var_Size_Arg_Traits_T<
            CosNotifyFilter::MappingConstraintInfoSeq,
            CosNotifyFilter::MappingConstraintInfoSeq_var,
            CosNotifyFilter::MappingConstraintInfoSeq_out
          >
  {
  };

#endif /* end #if !defined */

#if !defined (_COSNOTIFYFILTER_FILTER__ARG_TRAITS_CS_)
#define _COSNOTIFYFILTER_FILTER__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<CosNotifyFilter::Filter>
    : public
        Object_Arg_Traits_T<
            CosNotifyFilter::Filter_ptr,
            CosNotifyFilter::Filter_var,
            CosNotifyFilter::Filter_out,
            TAO::Objref_Traits<CosNotifyFilter::Filter>
          >
  {
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_arg_traits.cpp:379

#if !defined (_FT_STATE__ARG_TRAITS_CS_)
#define _FT_STATE__ARG_TRAITS_CS_
  
  ACE_TEMPLATE_SPECIALIZATION
  class TAO_FT_Export Arg_Traits<FT::State>
    : public
        Var_Size_Arg_Traits_T<
            FT::State,
            FT::State_var,
            FT::State_out
          >
  {
  };

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


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

// Traits specializations for FT::FaultNotifier.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
FT::FaultNotifier_ptr
TAO::Objref_Traits<FT::FaultNotifier>::tao_duplicate (
    FT::FaultNotifier_ptr p
  )
{
  return FT::FaultNotifier::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<FT::FaultNotifier>::tao_release (
    FT::FaultNotifier_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
FT::FaultNotifier_ptr
TAO::Objref_Traits<FT::FaultNotifier>::tao_nil (void)
{
  return FT::FaultNotifier::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<FT::FaultNotifier>::tao_marshal (
    FT::FaultNotifier_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

static const CORBA::Long _oc_FT_FaultNotifier_ConsumerId[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  44,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x46542f46), 
  ACE_NTOHL (0x61756c74), 
  ACE_NTOHL (0x4e6f7469), 
  ACE_NTOHL (0x66696572), 
  ACE_NTOHL (0x2f436f6e), 
  ACE_NTOHL (0x73756d65), 
  ACE_NTOHL (0x7249643a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/FT/FaultNotifier/ConsumerId:1.0
    11,
  ACE_NTOHL (0x436f6e73), 
  ACE_NTOHL (0x756d6572), 
  ACE_NTOHL (0x49640000),  // name = ConsumerId
    CORBA::tk_ulonglong,

};

static CORBA::TypeCode _tc_TAO_tc_FT_FaultNotifier_ConsumerId (
    CORBA::tk_alias,
    sizeof (_oc_FT_FaultNotifier_ConsumerId),
    (char *) &_oc_FT_FaultNotifier_ConsumerId,
    0,
    sizeof (FT::FaultNotifier::ConsumerId)
  );

::CORBA::TypeCode_ptr FT::FaultNotifier::_tc_ConsumerId =
  &_tc_TAO_tc_FT_FaultNotifier_ConsumerId;

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

void FT::FaultNotifier::push_structured_fault (
    const ::CosNotification::StructuredEvent & event
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNotification::StructuredEvent>::in_arg_val _tao_event (event);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_event
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "push_structured_fault",
      21,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

void FT::FaultNotifier::push_sequence_fault (
    const ::CosNotification::EventBatch & events
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNotification::EventBatch>::in_arg_val _tao_events (events);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_events
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "push_sequence_fault",
      19,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

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

::CosNotifyFilter::Filter_ptr FT::FaultNotifier::create_subscription_filter (
    const char * constraint_grammar
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::CosNotifyFilter::InvalidGrammar
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< ::CosNotifyFilter::Filter>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CORBA::Char *>::in_arg_val _tao_constraint_grammar (constraint_grammar);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_constraint_grammar
    };
  
  static TAO::Exception_Data
  _tao_FT_FaultNotifier_create_subscription_filter_exceptiondata [] = 
    {
      {
        "IDL:omg.org/CosNotifyFilter/InvalidGrammar:1.0",
        CosNotifyFilter::InvalidGrammar::_alloc,
        CosNotifyFilter::_tc_InvalidGrammar
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "create_subscription_filter",
      26,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_FT_FaultNotifier_create_subscription_filter_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

FT::FaultNotifier::ConsumerId FT::FaultNotifier::connect_structured_fault_consumer (
    ::CosNotifyComm::StructuredPushConsumer_ptr push_consumer,
    ::CosNotifyFilter::Filter_ptr filter
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< FT::FaultNotifier::ConsumerId>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNotifyComm::StructuredPushConsumer>::in_arg_val _tao_push_consumer (push_consumer);
  TAO::Arg_Traits< ::CosNotifyFilter::Filter>::in_arg_val _tao_filter (filter);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_push_consumer,
      &_tao_filter
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "connect_structured_fault_consumer",
      33,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 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

FT::FaultNotifier::ConsumerId FT::FaultNotifier::connect_sequence_fault_consumer (
    ::CosNotifyComm::SequencePushConsumer_ptr push_consumer,
    ::CosNotifyFilter::Filter_ptr filter
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< FT::FaultNotifier::ConsumerId>::ret_val _tao_retval;
  TAO::Arg_Traits< ::CosNotifyComm::SequencePushConsumer>::in_arg_val _tao_push_consumer (push_consumer);
  TAO::Arg_Traits< ::CosNotifyFilter::Filter>::in_arg_val _tao_filter (filter);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_push_consumer,
      &_tao_filter
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      3,
      "connect_sequence_fault_consumer",
      31,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (0, 0 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 FT::FaultNotifier::disconnect_consumer (
    ::FT::FaultNotifier::ConsumerId connection
    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_FaultNotifier_Proxy_Broker_ == 0)
    {
      FT_FaultNotifier_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< FT::FaultNotifier::ConsumerId>::in_arg_val _tao_connection (connection);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_connection
    };
  
  static TAO::Exception_Data
  _tao_FT_FaultNotifier_disconnect_consumer_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,
      "disconnect_consumer",
      19,
      this->the_TAO_FaultNotifier_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_FT_FaultNotifier_disconnect_consumer_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

FT::FaultNotifier::FaultNotifier (void)
 : the_TAO_FaultNotifier_Proxy_Broker_ (0)
{
  this->FT_FaultNotifier_setup_collocation ();
}

void
FT::FaultNotifier::FT_FaultNotifier_setup_collocation ()
{
  if (::FT__TAO_FaultNotifier_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_FaultNotifier_Proxy_Broker_ =
        ::FT__TAO_FaultNotifier_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->FT_PullMonitorable_setup_collocation ();
}

FT::FaultNotifier::~FaultNotifier (void)
{}

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

FT::FaultNotifier_ptr
FT::FaultNotifier::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<FaultNotifier>::narrow (
        _tao_objref,
        "IDL:omg.org/FT/FaultNotifier:1.0",
        FT__TAO_FaultNotifier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

FT::FaultNotifier_ptr
FT::FaultNotifier::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL
  )
{
  return
    TAO::Narrow_Utils<FaultNotifier>::unchecked_narrow (
        _tao_objref,
        "IDL:omg.org/FT/FaultNotifier:1.0",
        FT__TAO_FaultNotifier_Proxy_Broker_Factory_function_pointer
        ACE_ENV_ARG_PARAMETER
      );
}

FT::FaultNotifier_ptr
FT::FaultNotifier::_duplicate (FaultNotifier_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

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

CORBA::Boolean
FT::FaultNotifier::marshal (TAO_OutputCDR &cdr)
{
  return (cdr << this);
}

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

static const CORBA::Long _oc_FT_FaultNotifier[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  33,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x46542f46), 
  ACE_NTOHL (0x61756c74), 
  ACE_NTOHL (0x4e6f7469), 
  ACE_NTOHL (0x66696572), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/FT/FaultNotifier:1.0
    14,
  ACE_NTOHL (0x4661756c), 
  ACE_NTOHL (0x744e6f74), 
  ACE_NTOHL (0x69666965), 
  ACE_NTOHL (0x72000000),  // name = FaultNotifier
  };

static CORBA::TypeCode _tc_TAO_tc_FT_FaultNotifier (
    CORBA::tk_objref,
    sizeof (_oc_FT_FaultNotifier),
    (char *) &_oc_FT_FaultNotifier,
    0,
    sizeof (FT::FaultNotifier)
  );

namespace FT
{
  ::CORBA::TypeCode_ptr _tc_FaultNotifier =
    &_tc_TAO_tc_FT_FaultNotifier;
}

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

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

// Non-copying insertion.
void
operator<<= (
    CORBA::Any &_tao_any,
    FT::FaultNotifier_ptr *_tao_elem
  )
{
  TAO::Any_Impl_T<FT::FaultNotifier>::insert (
      _tao_any,
      FT::FaultNotifier::_tao_any_destructor,
      FT::_tc_FaultNotifier,
      *_tao_elem
    );
}

CORBA::Boolean
operator>>= (
    const CORBA::Any &_tao_any,
    FT::FaultNotifier_ptr &_tao_elem
  )
{
  return
    TAO::Any_Impl_T<FT::FaultNotifier>::extract (
        _tao_any,
        FT::FaultNotifier::_tao_any_destructor,
        FT::_tc_FaultNotifier,
        _tao_elem
      );
}

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

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

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

