// -*- 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_FaultDetectorFactoryC.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_FaultDetectorFactoryC.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 */
  
  // 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::FaultDetectorFactory.

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

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

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

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

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

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

void FT::FaultDetectorFactory::change_properties (
    const ::PortableGroup::Properties & property_set
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException,
    ::PortableGroup::InvalidProperty
  ))
{
  if (!this->is_evaluated ())
    {
      ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
    }
  
  if (this->the_TAO_FaultDetectorFactory_Proxy_Broker_ == 0)
    {
      FT_FaultDetectorFactory_setup_collocation ();
    }
  
  TAO::Arg_Traits< void>::ret_val _tao_retval;
  TAO::Arg_Traits< ::PortableGroup::Properties>::in_arg_val _tao_property_set (property_set);
  
  TAO::Argument *_the_tao_operation_signature [] =
    {
      &_tao_retval,
      &_tao_property_set
    };
  
  static TAO::Exception_Data
  _tao_FT_FaultDetectorFactory_change_properties_exceptiondata [] = 
    {
      {
        "IDL:omg.org/PortableGroup/InvalidProperty:1.0",
        PortableGroup::InvalidProperty::_alloc,
        PortableGroup::_tc_InvalidProperty
      }
    };
  
  TAO::Invocation_Adapter _tao_call (
      this,
      _the_tao_operation_signature,
      2,
      "change_properties",
      17,
      this->the_TAO_FaultDetectorFactory_Proxy_Broker_
    );
  
  _tao_call.invoke (
      _tao_FT_FaultDetectorFactory_change_properties_exceptiondata,
      1
      ACE_ENV_ARG_PARAMETER
    );
  ACE_CHECK;
}

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

void FT::FaultDetectorFactory::shutdown (
    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_FaultDetectorFactory_Proxy_Broker_ == 0)
    {
      FT_FaultDetectorFactory_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,
      "shutdown",
      8,
      this->the_TAO_FaultDetectorFactory_Proxy_Broker_,
      TAO::TAO_ONEWAY_INVOCATION
    );
  
  _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;
}

FT::FaultDetectorFactory::FaultDetectorFactory (void)
 : the_TAO_FaultDetectorFactory_Proxy_Broker_ (0)
{
  this->FT_FaultDetectorFactory_setup_collocation ();
}

void
FT::FaultDetectorFactory::FT_FaultDetectorFactory_setup_collocation ()
{
  if (::FT__TAO_FaultDetectorFactory_Proxy_Broker_Factory_function_pointer)
    {
      this->the_TAO_FaultDetectorFactory_Proxy_Broker_ =
        ::FT__TAO_FaultDetectorFactory_Proxy_Broker_Factory_function_pointer (this);
    }
  
  this->PortableGroup_GenericFactory_setup_collocation ();
  this->FT_PullMonitorable_setup_collocation ();
}

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

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

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

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

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

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

CORBA::Boolean
FT::FaultDetectorFactory::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_FaultDetectorFactory[] =
{
    TAO_ENCAP_BYTE_ORDER, // byte order
  40,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x6f6d672e), 
  ACE_NTOHL (0x6f72672f), 
  ACE_NTOHL (0x46542f46), 
  ACE_NTOHL (0x61756c74), 
  ACE_NTOHL (0x44657465), 
  ACE_NTOHL (0x63746f72), 
  ACE_NTOHL (0x46616374), 
  ACE_NTOHL (0x6f72793a), 
  ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/FT/FaultDetectorFactory:1.0
    21,
  ACE_NTOHL (0x4661756c), 
  ACE_NTOHL (0x74446574), 
  ACE_NTOHL (0x6563746f), 
  ACE_NTOHL (0x72466163), 
  ACE_NTOHL (0x746f7279), 
  ACE_NTOHL (0x0),  // name = FaultDetectorFactory
  };

static CORBA::TypeCode _tc_TAO_tc_FT_FaultDetectorFactory (
    CORBA::tk_objref,
    sizeof (_oc_FT_FaultDetectorFactory),
    (char *) &_oc_FT_FaultDetectorFactory,
    0,
    sizeof (FT::FaultDetectorFactory)
  );

namespace FT
{
  ::CORBA::TypeCode_ptr _tc_FaultDetectorFactory =
    &_tc_TAO_tc_FT_FaultDetectorFactory;
}

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

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

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

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

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

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

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

