// -*- C++ -*-
//
// DynamicAnyC.cpp,v 1.25 2004/04/19 07:43:35 jwillemsen Exp

// ****  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:323


#include "DynamicAny.h"
#include "tao/CDR.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 "DynamicAnyC.i"
#endif /* !defined INLINE */

// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:64

// Arg traits specializations.
namespace TAO
{
}


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

// Traits specializations for DynamicAny::DynAny.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynAny_ptr
TAO::Objref_Traits<DynamicAny::DynAny>::tao_duplicate (
    DynamicAny::DynAny_ptr p
  )
{
  return DynamicAny::DynAny::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynAny>::tao_release (
    DynamicAny::DynAny_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynAny_ptr
TAO::Objref_Traits<DynamicAny::DynAny>::tao_nil (void)
{
  return DynamicAny::DynAny::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynAny>::tao_marshal (
    DynamicAny::DynAny_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

DynamicAny::DynAny::InvalidValue::InvalidValue (void)
  : CORBA::UserException (
        "IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0",
        "InvalidValue"
      )
{
}

DynamicAny::DynAny::InvalidValue::~InvalidValue (void)
{
}

DynamicAny::DynAny::InvalidValue::InvalidValue (const ::DynamicAny::DynAny::InvalidValue &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

DynamicAny::DynAny::InvalidValue *
DynamicAny::DynAny::InvalidValue::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0", _tao_excp->_rep_id ()))
    {
      return ACE_dynamic_cast (InvalidValue *, _tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *DynamicAny::DynAny::InvalidValue::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::DynamicAny::DynAny::InvalidValue, 0);
  return retval;
}

CORBA::Exception *
DynamicAny::DynAny::InvalidValue::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::DynamicAny::DynAny::InvalidValue (*this),
      0
    );
  return result;
}

void DynamicAny::DynAny::InvalidValue::_raise (void) const
{
  TAO_RAISE (*this);
}

void DynamicAny::DynAny::InvalidValue::_tao_encode (
    TAO_OutputCDR &
    ACE_ENV_ARG_DECL
  ) const
{
  ACE_THROW (CORBA::MARSHAL ());
}

void DynamicAny::DynAny::InvalidValue::_tao_decode (
    TAO_InputCDR &
    ACE_ENV_ARG_DECL
  )
{
  ACE_THROW (CORBA::MARSHAL ());
}



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

DynamicAny::DynAny::TypeMismatch::TypeMismatch (void)
  : CORBA::UserException (
        "IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0",
        "TypeMismatch"
      )
{
}

DynamicAny::DynAny::TypeMismatch::~TypeMismatch (void)
{
}

DynamicAny::DynAny::TypeMismatch::TypeMismatch (const ::DynamicAny::DynAny::TypeMismatch &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

DynamicAny::DynAny::TypeMismatch *
DynamicAny::DynAny::TypeMismatch::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0", _tao_excp->_rep_id ()))
    {
      return ACE_dynamic_cast (TypeMismatch *, _tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *DynamicAny::DynAny::TypeMismatch::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::DynamicAny::DynAny::TypeMismatch, 0);
  return retval;
}

CORBA::Exception *
DynamicAny::DynAny::TypeMismatch::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::DynamicAny::DynAny::TypeMismatch (*this),
      0
    );
  return result;
}

void DynamicAny::DynAny::TypeMismatch::_raise (void) const
{
  TAO_RAISE (*this);
}

void DynamicAny::DynAny::TypeMismatch::_tao_encode (
    TAO_OutputCDR &
    ACE_ENV_ARG_DECL
  ) const
{
  ACE_THROW (CORBA::MARSHAL ());
}

void DynamicAny::DynAny::TypeMismatch::_tao_decode (
    TAO_InputCDR &
    ACE_ENV_ARG_DECL
  )
{
  ACE_THROW (CORBA::MARSHAL ());
}



DynamicAny::DynAny::DynAny (void)
{}

DynamicAny::DynAny::~DynAny (void)
{}

DynamicAny::DynAny_ptr
DynamicAny::DynAny::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynAny::_nil ();
    }
  
  DynAny_ptr proxy =
    dynamic_cast<DynAny_ptr> (_tao_objref);
  
  return DynAny::_duplicate (proxy);
}

DynamicAny::DynAny_ptr
DynamicAny::DynAny::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynAny::_nil ();
    }
  
  DynAny_ptr proxy =
    dynamic_cast<DynAny_ptr> (_tao_objref);
  
  return DynAny::_duplicate (proxy);
}

DynamicAny::DynAny_ptr
DynamicAny::DynAny::_duplicate (DynAny_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynAny::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynAny::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynAny:1.0";
}

CORBA::Boolean
DynamicAny::DynAny::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynFixed.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynFixed_ptr
TAO::Objref_Traits<DynamicAny::DynFixed>::tao_duplicate (
    DynamicAny::DynFixed_ptr p
  )
{
  return DynamicAny::DynFixed::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynFixed>::tao_release (
    DynamicAny::DynFixed_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynFixed_ptr
TAO::Objref_Traits<DynamicAny::DynFixed>::tao_nil (void)
{
  return DynamicAny::DynFixed::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynFixed>::tao_marshal (
    DynamicAny::DynFixed_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynFixed::DynFixed (void)
{}

DynamicAny::DynFixed::~DynFixed (void)
{}

DynamicAny::DynFixed_ptr
DynamicAny::DynFixed::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynFixed::_nil ();
    }
  
  DynFixed_ptr proxy =
    dynamic_cast<DynFixed_ptr> (_tao_objref);
  
  return DynFixed::_duplicate (proxy);
}

DynamicAny::DynFixed_ptr
DynamicAny::DynFixed::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynFixed::_nil ();
    }
  
  DynFixed_ptr proxy =
    dynamic_cast<DynFixed_ptr> (_tao_objref);
  
  return DynFixed::_duplicate (proxy);
}

DynamicAny::DynFixed_ptr
DynamicAny::DynFixed::_duplicate (DynFixed_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynFixed::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynFixed:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynFixed::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynFixed:1.0";
}

CORBA::Boolean
DynamicAny::DynFixed::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynEnum.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynEnum_ptr
TAO::Objref_Traits<DynamicAny::DynEnum>::tao_duplicate (
    DynamicAny::DynEnum_ptr p
  )
{
  return DynamicAny::DynEnum::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynEnum>::tao_release (
    DynamicAny::DynEnum_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynEnum_ptr
TAO::Objref_Traits<DynamicAny::DynEnum>::tao_nil (void)
{
  return DynamicAny::DynEnum::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynEnum>::tao_marshal (
    DynamicAny::DynEnum_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynEnum::DynEnum (void)
{}

DynamicAny::DynEnum::~DynEnum (void)
{}

DynamicAny::DynEnum_ptr
DynamicAny::DynEnum::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynEnum::_nil ();
    }
  
  DynEnum_ptr proxy =
    dynamic_cast<DynEnum_ptr> (_tao_objref);
  
  return DynEnum::_duplicate (proxy);
}

DynamicAny::DynEnum_ptr
DynamicAny::DynEnum::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynEnum::_nil ();
    }
  
  DynEnum_ptr proxy =
    dynamic_cast<DynEnum_ptr> (_tao_objref);
  
  return DynEnum::_duplicate (proxy);
}

DynamicAny::DynEnum_ptr
DynamicAny::DynEnum::_duplicate (DynEnum_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynEnum::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynEnum:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynEnum::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynEnum:1.0";
}

CORBA::Boolean
DynamicAny::DynEnum::marshal (TAO_OutputCDR &)
{
  return 0;
}

// TAO_IDL - Generated from 
// be\be_visitor_structure/structure_cs.cpp:66



// TAO_IDL - Generated from 
// be\be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_DYNAMICANY_NAMEVALUEPAIRSEQ_CS_)
#define _DYNAMICANY_NAMEVALUEPAIRSEQ_CS_

DynamicAny::NameValuePairSeq::NameValuePairSeq (void)
{}

DynamicAny::NameValuePairSeq::NameValuePairSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameValuePair
      >
    (max)
{}

DynamicAny::NameValuePairSeq::NameValuePairSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    DynamicAny::NameValuePair * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameValuePair
      >
    (max, length, buffer, release)
{}

DynamicAny::NameValuePairSeq::NameValuePairSeq (
    const NameValuePairSeq &seq
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameValuePair
      >
    (seq)
{}

DynamicAny::NameValuePairSeq::~NameValuePairSeq (void)
{}

#endif /* end #if !defined */

// TAO_IDL - Generated from 
// be\be_visitor_structure/structure_cs.cpp:66



// TAO_IDL - Generated from 
// be\be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_DYNAMICANY_NAMEDYNANYPAIRSEQ_CS_)
#define _DYNAMICANY_NAMEDYNANYPAIRSEQ_CS_

DynamicAny::NameDynAnyPairSeq::NameDynAnyPairSeq (void)
{}

DynamicAny::NameDynAnyPairSeq::NameDynAnyPairSeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameDynAnyPair
      >
    (max)
{}

DynamicAny::NameDynAnyPairSeq::NameDynAnyPairSeq (
    CORBA::ULong max,
    CORBA::ULong length,
    DynamicAny::NameDynAnyPair * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameDynAnyPair
      >
    (max, length, buffer, release)
{}

DynamicAny::NameDynAnyPairSeq::NameDynAnyPairSeq (
    const NameDynAnyPairSeq &seq
  )
  : TAO_Unbounded_Sequence<
        DynamicAny::NameDynAnyPair
      >
    (seq)
{}

DynamicAny::NameDynAnyPairSeq::~NameDynAnyPairSeq (void)
{}

#endif /* end #if !defined */

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

// Traits specializations for DynamicAny::DynStruct.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynStruct_ptr
TAO::Objref_Traits<DynamicAny::DynStruct>::tao_duplicate (
    DynamicAny::DynStruct_ptr p
  )
{
  return DynamicAny::DynStruct::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynStruct>::tao_release (
    DynamicAny::DynStruct_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynStruct_ptr
TAO::Objref_Traits<DynamicAny::DynStruct>::tao_nil (void)
{
  return DynamicAny::DynStruct::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynStruct>::tao_marshal (
    DynamicAny::DynStruct_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynStruct::DynStruct (void)
{}

DynamicAny::DynStruct::~DynStruct (void)
{}

DynamicAny::DynStruct_ptr
DynamicAny::DynStruct::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynStruct::_nil ();
    }
  
  DynStruct_ptr proxy =
    dynamic_cast<DynStruct_ptr> (_tao_objref);
  
  return DynStruct::_duplicate (proxy);
}

DynamicAny::DynStruct_ptr
DynamicAny::DynStruct::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynStruct::_nil ();
    }
  
  DynStruct_ptr proxy =
    dynamic_cast<DynStruct_ptr> (_tao_objref);
  
  return DynStruct::_duplicate (proxy);
}

DynamicAny::DynStruct_ptr
DynamicAny::DynStruct::_duplicate (DynStruct_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynStruct::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynStruct:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynStruct::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynStruct:1.0";
}

CORBA::Boolean
DynamicAny::DynStruct::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynUnion.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynUnion_ptr
TAO::Objref_Traits<DynamicAny::DynUnion>::tao_duplicate (
    DynamicAny::DynUnion_ptr p
  )
{
  return DynamicAny::DynUnion::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynUnion>::tao_release (
    DynamicAny::DynUnion_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynUnion_ptr
TAO::Objref_Traits<DynamicAny::DynUnion>::tao_nil (void)
{
  return DynamicAny::DynUnion::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynUnion>::tao_marshal (
    DynamicAny::DynUnion_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynUnion::DynUnion (void)
{}

DynamicAny::DynUnion::~DynUnion (void)
{}

DynamicAny::DynUnion_ptr
DynamicAny::DynUnion::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynUnion::_nil ();
    }
  
  DynUnion_ptr proxy =
    dynamic_cast<DynUnion_ptr> (_tao_objref);
  
  return DynUnion::_duplicate (proxy);
}

DynamicAny::DynUnion_ptr
DynamicAny::DynUnion::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynUnion::_nil ();
    }
  
  DynUnion_ptr proxy =
    dynamic_cast<DynUnion_ptr> (_tao_objref);
  
  return DynUnion::_duplicate (proxy);
}

DynamicAny::DynUnion_ptr
DynamicAny::DynUnion::_duplicate (DynUnion_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynUnion::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynUnion:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynUnion::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynUnion:1.0";
}

CORBA::Boolean
DynamicAny::DynUnion::marshal (TAO_OutputCDR &)
{
  return 0;
}

// TAO_IDL - Generated from 
// be\be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_DYNAMICANY_ANYSEQ_CS_)
#define _DYNAMICANY_ANYSEQ_CS_

DynamicAny::AnySeq::AnySeq (void)
{}

DynamicAny::AnySeq::AnySeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Sequence<
        CORBA::Any
      >
    (max)
{}

DynamicAny::AnySeq::AnySeq (
    CORBA::ULong max,
    CORBA::ULong length,
    CORBA::Any * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Sequence<
        CORBA::Any
      >
    (max, length, buffer, release)
{}

DynamicAny::AnySeq::AnySeq (
    const AnySeq &seq
  )
  : TAO_Unbounded_Sequence<
        CORBA::Any
      >
    (seq)
{}

DynamicAny::AnySeq::~AnySeq (void)
{}

#endif /* end #if !defined */

// TAO_IDL - Generated from 
// be\be_visitor_sequence/sequence_cs.cpp:65

#if !defined (_DYNAMICANY_DYNANYSEQ_CS_)
#define _DYNAMICANY_DYNANYSEQ_CS_

DynamicAny::DynAnySeq::DynAnySeq (void)
{}

DynamicAny::DynAnySeq::DynAnySeq (
    CORBA::ULong max
  )
  : TAO_Unbounded_Object_Sequence<
        DynamicAny::DynAny,
        DynamicAny::DynAny_var
      >
    (max)
{}

DynamicAny::DynAnySeq::DynAnySeq (
    CORBA::ULong max,
    CORBA::ULong length,
    DynamicAny::DynAny_ptr * buffer,
    CORBA::Boolean release
  )
  : TAO_Unbounded_Object_Sequence<
        DynamicAny::DynAny,
        DynamicAny::DynAny_var
      >
    (max, length, buffer, release)
{}

DynamicAny::DynAnySeq::DynAnySeq (
    const DynAnySeq &seq
  )
  : TAO_Unbounded_Object_Sequence<
        DynamicAny::DynAny,
        DynamicAny::DynAny_var
      >
    (seq)
{}

DynamicAny::DynAnySeq::~DynAnySeq (void)
{}

#endif /* end #if !defined */

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

// Traits specializations for DynamicAny::DynSequence.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynSequence_ptr
TAO::Objref_Traits<DynamicAny::DynSequence>::tao_duplicate (
    DynamicAny::DynSequence_ptr p
  )
{
  return DynamicAny::DynSequence::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynSequence>::tao_release (
    DynamicAny::DynSequence_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynSequence_ptr
TAO::Objref_Traits<DynamicAny::DynSequence>::tao_nil (void)
{
  return DynamicAny::DynSequence::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynSequence>::tao_marshal (
    DynamicAny::DynSequence_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynSequence::DynSequence (void)
{}

DynamicAny::DynSequence::~DynSequence (void)
{}

DynamicAny::DynSequence_ptr
DynamicAny::DynSequence::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynSequence::_nil ();
    }
  
  DynSequence_ptr proxy =
    dynamic_cast<DynSequence_ptr> (_tao_objref);
  
  return DynSequence::_duplicate (proxy);
}

DynamicAny::DynSequence_ptr
DynamicAny::DynSequence::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynSequence::_nil ();
    }
  
  DynSequence_ptr proxy =
    dynamic_cast<DynSequence_ptr> (_tao_objref);
  
  return DynSequence::_duplicate (proxy);
}

DynamicAny::DynSequence_ptr
DynamicAny::DynSequence::_duplicate (DynSequence_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynSequence::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynSequence:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynSequence::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynSequence:1.0";
}

CORBA::Boolean
DynamicAny::DynSequence::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynArray.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynArray_ptr
TAO::Objref_Traits<DynamicAny::DynArray>::tao_duplicate (
    DynamicAny::DynArray_ptr p
  )
{
  return DynamicAny::DynArray::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynArray>::tao_release (
    DynamicAny::DynArray_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynArray_ptr
TAO::Objref_Traits<DynamicAny::DynArray>::tao_nil (void)
{
  return DynamicAny::DynArray::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynArray>::tao_marshal (
    DynamicAny::DynArray_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynArray::DynArray (void)
{}

DynamicAny::DynArray::~DynArray (void)
{}

DynamicAny::DynArray_ptr
DynamicAny::DynArray::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynArray::_nil ();
    }
  
  DynArray_ptr proxy =
    dynamic_cast<DynArray_ptr> (_tao_objref);
  
  return DynArray::_duplicate (proxy);
}

DynamicAny::DynArray_ptr
DynamicAny::DynArray::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynArray::_nil ();
    }
  
  DynArray_ptr proxy =
    dynamic_cast<DynArray_ptr> (_tao_objref);
  
  return DynArray::_duplicate (proxy);
}

DynamicAny::DynArray_ptr
DynamicAny::DynArray::_duplicate (DynArray_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynArray::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynArray:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynArray::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynArray:1.0";
}

CORBA::Boolean
DynamicAny::DynArray::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynValue.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynValue_ptr
TAO::Objref_Traits<DynamicAny::DynValue>::tao_duplicate (
    DynamicAny::DynValue_ptr p
  )
{
  return DynamicAny::DynValue::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynValue>::tao_release (
    DynamicAny::DynValue_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynValue_ptr
TAO::Objref_Traits<DynamicAny::DynValue>::tao_nil (void)
{
  return DynamicAny::DynValue::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynValue>::tao_marshal (
    DynamicAny::DynValue_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

DynamicAny::DynValue::DynValue (void)
{}

DynamicAny::DynValue::~DynValue (void)
{}

DynamicAny::DynValue_ptr
DynamicAny::DynValue::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynValue::_nil ();
    }
  
  DynValue_ptr proxy =
    dynamic_cast<DynValue_ptr> (_tao_objref);
  
  return DynValue::_duplicate (proxy);
}

DynamicAny::DynValue_ptr
DynamicAny::DynValue::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynValue::_nil ();
    }
  
  DynValue_ptr proxy =
    dynamic_cast<DynValue_ptr> (_tao_objref);
  
  return DynValue::_duplicate (proxy);
}

DynamicAny::DynValue_ptr
DynamicAny::DynValue::_duplicate (DynValue_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynValue::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAny:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynValue:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynValue::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynValue:1.0";
}

CORBA::Boolean
DynamicAny::DynValue::marshal (TAO_OutputCDR &)
{
  return 0;
}

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

// Traits specializations for DynamicAny::DynAnyFactory.

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynAnyFactory_ptr
TAO::Objref_Traits<DynamicAny::DynAnyFactory>::tao_duplicate (
    DynamicAny::DynAnyFactory_ptr p
  )
{
  return DynamicAny::DynAnyFactory::_duplicate (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<DynamicAny::DynAnyFactory>::tao_release (
    DynamicAny::DynAnyFactory_ptr p
  )
{
  CORBA::release (p);
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
DynamicAny::DynAnyFactory_ptr
TAO::Objref_Traits<DynamicAny::DynAnyFactory>::tao_nil (void)
{
  return DynamicAny::DynAnyFactory::_nil ();
}

ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<DynamicAny::DynAnyFactory>::tao_marshal (
    DynamicAny::DynAnyFactory_ptr p,
    TAO_OutputCDR & cdr
  )
{
  return CORBA::Object::marshal (p, cdr);
}

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

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

DynamicAny::DynAnyFactory::InconsistentTypeCode::InconsistentTypeCode (void)
  : CORBA::UserException (
        "IDL:omg.org/DynamicAny/DynAnyFactory/InconsistentTypeCode:1.0",
        "InconsistentTypeCode"
      )
{
}

DynamicAny::DynAnyFactory::InconsistentTypeCode::~InconsistentTypeCode (void)
{
}

DynamicAny::DynAnyFactory::InconsistentTypeCode::InconsistentTypeCode (const ::DynamicAny::DynAnyFactory::InconsistentTypeCode &_tao_excp)
  : CORBA::UserException (
        _tao_excp._rep_id (),
        _tao_excp._name ()
      )
{
}

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

DynamicAny::DynAnyFactory::InconsistentTypeCode *
DynamicAny::DynAnyFactory::InconsistentTypeCode::_downcast (CORBA::Exception *_tao_excp)
{
  if (!ACE_OS::strcmp ("IDL:omg.org/DynamicAny/DynAnyFactory/InconsistentTypeCode:1.0", _tao_excp->_rep_id ()))
    {
      return ACE_dynamic_cast (InconsistentTypeCode *, _tao_excp);
    }
  else
    {
      return 0;
    }
}

CORBA::Exception *DynamicAny::DynAnyFactory::InconsistentTypeCode::_alloc (void)
{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::DynamicAny::DynAnyFactory::InconsistentTypeCode, 0);
  return retval;
}

CORBA::Exception *
DynamicAny::DynAnyFactory::InconsistentTypeCode::_tao_duplicate (void) const
{
  CORBA::Exception *result;
  ACE_NEW_RETURN (
      result,
      ::DynamicAny::DynAnyFactory::InconsistentTypeCode (*this),
      0
    );
  return result;
}

void DynamicAny::DynAnyFactory::InconsistentTypeCode::_raise (void) const
{
  TAO_RAISE (*this);
}

void DynamicAny::DynAnyFactory::InconsistentTypeCode::_tao_encode (
    TAO_OutputCDR &
    ACE_ENV_ARG_DECL
  ) const
{
  ACE_THROW (CORBA::MARSHAL ());
}

void DynamicAny::DynAnyFactory::InconsistentTypeCode::_tao_decode (
    TAO_InputCDR &
    ACE_ENV_ARG_DECL
  )
{
  ACE_THROW (CORBA::MARSHAL ());
}



DynamicAny::DynAnyFactory::DynAnyFactory (void)
{}

DynamicAny::DynAnyFactory::~DynAnyFactory (void)
{}

DynamicAny::DynAnyFactory_ptr
DynamicAny::DynAnyFactory::_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynAnyFactory::_nil ();
    }
  
  DynAnyFactory_ptr proxy =
    dynamic_cast<DynAnyFactory_ptr> (_tao_objref);
  
  return DynAnyFactory::_duplicate (proxy);
}

DynamicAny::DynAnyFactory_ptr
DynamicAny::DynAnyFactory::_unchecked_narrow (
    CORBA::Object_ptr _tao_objref
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (CORBA::is_nil (_tao_objref))
    {
      return DynAnyFactory::_nil ();
    }
  
  DynAnyFactory_ptr proxy =
    dynamic_cast<DynAnyFactory_ptr> (_tao_objref);
  
  return DynAnyFactory::_duplicate (proxy);
}

DynamicAny::DynAnyFactory_ptr
DynamicAny::DynAnyFactory::_duplicate (DynAnyFactory_ptr obj)
{
  if (! CORBA::is_nil (obj))
    {
      obj->_add_ref ();
    }
  
  return obj;
}

CORBA::Boolean
DynamicAny::DynAnyFactory::_is_a (
    const char *value
    ACE_ENV_ARG_DECL_NOT_USED
  )
{
  if (
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/DynamicAny/DynAnyFactory:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/LocalObject:1.0"
        ) ||
      !ACE_OS::strcmp (
          (char *)value,
          "IDL:omg.org/CORBA/Object:1.0"
        )
     )
    {
      return 1; // success using local knowledge
    }
  else
    {
      return 0;
    }
}

const char* DynamicAny::DynAnyFactory::_interface_repository_id (void) const
{
  return "IDL:omg.org/DynamicAny/DynAnyFactory:1.0";
}

CORBA::Boolean
DynamicAny::DynAnyFactory::marshal (TAO_OutputCDR &)
{
  return 0;
}

// TAO_IDL - Generated from
// be\be_visitor_structure/cdr_op_cs.cpp:61

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const DynamicAny::NameValuePair &_tao_aggregate
  )
{
  return
    (strm << _tao_aggregate.id.in ()) &&
    (strm << _tao_aggregate.value);
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    DynamicAny::NameValuePair &_tao_aggregate
  )
{
  return
    (strm >> _tao_aggregate.id.out ()) &&
    (strm >> _tao_aggregate.value);
}

// TAO_IDL - Generated from
// be\be_visitor_sequence/cdr_op_cs.cpp:96

#if !defined _TAO_CDR_OP_DynamicAny_NameValuePairSeq_CPP_
#define _TAO_CDR_OP_DynamicAny_NameValuePairSeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const DynamicAny::NameValuePairSeq &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm << _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    DynamicAny::NameValuePairSeq &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len;
  
  if (strm >> _tao_seq_len)
    {
      // Add a check to the length of the sequence
      // to make sure it does not exceed the length
      // of the stream. (See bug 58.)
      if (_tao_seq_len > strm.length ())
        {
          return 0;
        }
      
      // Set the length of the sequence.
      _tao_sequence.length (_tao_seq_len);
      
      // If length is 0 we return true.
      if (0 >= _tao_seq_len) 
        {
          return 1;
        }
      
      // Retrieve all the elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm >> _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_DynamicAny_NameValuePairSeq_CPP_ */

// TAO_IDL - Generated from
// be\be_visitor_sequence/cdr_op_cs.cpp:96

#if !defined _TAO_CDR_OP_DynamicAny_AnySeq_CPP_
#define _TAO_CDR_OP_DynamicAny_AnySeq_CPP_

CORBA::Boolean operator<< (
    TAO_OutputCDR &strm,
    const DynamicAny::AnySeq &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len = _tao_sequence.length ();
  
  if (strm << _tao_seq_len)
    {
      // Encode all elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm << _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    }
  
  return 0;
}

CORBA::Boolean operator>> (
    TAO_InputCDR &strm,
    DynamicAny::AnySeq &_tao_sequence
  )
{
  CORBA::ULong _tao_seq_len;
  
  if (strm >> _tao_seq_len)
    {
      // Add a check to the length of the sequence
      // to make sure it does not exceed the length
      // of the stream. (See bug 58.)
      if (_tao_seq_len > strm.length ())
        {
          return 0;
        }
      
      // Set the length of the sequence.
      _tao_sequence.length (_tao_seq_len);
      
      // If length is 0 we return true.
      if (0 >= _tao_seq_len) 
        {
          return 1;
        }
      
      // Retrieve all the elements.
      CORBA::Boolean _tao_marshal_flag = 1;
      
      for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
        {
          _tao_marshal_flag = (strm >> _tao_sequence[i]);
        }
      
      return _tao_marshal_flag;
    
    }
  
  return 0;
}

#endif /* _TAO_CDR_OP_DynamicAny_AnySeq_CPP_ */

// TAO_IDL - Generated from
// be\be_visitor_root/root.cpp:1628

#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)

  template class
    TAO::Objref_Traits<
        DynamicAny::DynAny
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynAny
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynAny
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynFixed
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynFixed
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynFixed
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynEnum
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynEnum
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynEnum
      >;

  template class
    TAO_Var_Var_T<
        DynamicAny::NameValuePair
      >;

  template class
    TAO_Var_Base_T<
        DynamicAny::NameValuePair
      >;

  template class
    TAO_Out_T<
        DynamicAny::NameValuePair,
        DynamicAny::NameValuePair_var
      >;

  template class
    TAO_VarSeq_Var_T<
        DynamicAny::NameValuePairSeq,
        DynamicAny::NameValuePair
      >;

  template class
    TAO_Seq_Var_Base_T<
        DynamicAny::NameValuePairSeq,
        DynamicAny::NameValuePair
      >;

  template class
    TAO_Seq_Out_T<
        DynamicAny::NameValuePairSeq,
        DynamicAny::NameValuePairSeq_var,
        DynamicAny::NameValuePair
      >;

#if !defined (_DYNAMICANY_NAMEVALUEPAIR__EXPLICIT_CS_)
#define _DYNAMICANY_NAMEVALUEPAIR__EXPLICIT_CS_

  template class
    TAO_Unbounded_Sequence<
        DynamicAny::NameValuePair
      >;

#endif /* end #if !defined */

  template class
    TAO_Var_Var_T<
        DynamicAny::NameDynAnyPair
      >;

  template class
    TAO_Var_Base_T<
        DynamicAny::NameDynAnyPair
      >;

  template class
    TAO_Out_T<
        DynamicAny::NameDynAnyPair,
        DynamicAny::NameDynAnyPair_var
      >;

  template class
    TAO_VarSeq_Var_T<
        DynamicAny::NameDynAnyPairSeq,
        DynamicAny::NameDynAnyPair
      >;

  template class
    TAO_Seq_Var_Base_T<
        DynamicAny::NameDynAnyPairSeq,
        DynamicAny::NameDynAnyPair
      >;

  template class
    TAO_Seq_Out_T<
        DynamicAny::NameDynAnyPairSeq,
        DynamicAny::NameDynAnyPairSeq_var,
        DynamicAny::NameDynAnyPair
      >;

#if !defined (_DYNAMICANY_NAMEDYNANYPAIR__EXPLICIT_CS_)
#define _DYNAMICANY_NAMEDYNANYPAIR__EXPLICIT_CS_

  template class
    TAO_Unbounded_Sequence<
        DynamicAny::NameDynAnyPair
      >;

#endif /* end #if !defined */

  template class
    TAO::Objref_Traits<
        DynamicAny::DynStruct
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynStruct
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynStruct
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynUnion
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynUnion
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynUnion
      >;

  template class
    TAO_VarSeq_Var_T<
        DynamicAny::AnySeq,
        CORBA::Any
      >;

  template class
    TAO_Seq_Var_Base_T<
        DynamicAny::AnySeq,
        CORBA::Any
      >;

  template class
    TAO_Seq_Out_T<
        DynamicAny::AnySeq,
        DynamicAny::AnySeq_var,
        CORBA::Any
      >;

  template class
    TAO_Object_Manager<
        DynamicAny::DynAny,
        DynamicAny::DynAny_var
      >;

  template class
    TAO_MngSeq_Var_T<
        DynamicAny::DynAnySeq,
        TAO_Object_Manager<
            DynamicAny::DynAny,
            DynamicAny::DynAny_var
          >
      >;

  template class
    TAO_Seq_Var_Base_T<
        DynamicAny::DynAnySeq,
        TAO_Object_Manager<
            DynamicAny::DynAny,
            DynamicAny::DynAny_var
          >
      >;

  template class
    TAO_MngSeq_Out_T<
        DynamicAny::DynAnySeq,
        DynamicAny::DynAnySeq_var,
        TAO_Object_Manager<
            DynamicAny::DynAny,
            DynamicAny::DynAny_var
          >
      >;

#if !defined (_DYNAMICANY_DYNANY__EXPLICIT_CS_)
#define _DYNAMICANY_DYNANY__EXPLICIT_CS_

  template class
    TAO_Unbounded_Object_Sequence<
        DynamicAny::DynAny,
        DynamicAny::DynAny_var
      >;

#endif /* end #if !defined */

  template class
    TAO::Objref_Traits<
        DynamicAny::DynSequence
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynSequence
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynSequence
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynArray
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynArray
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynArray
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynValue
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynValue
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynValue
      >;

  template class
    TAO::Objref_Traits<
        DynamicAny::DynAnyFactory
      >;

  template class
    TAO_Objref_Var_T<
        DynamicAny::DynAnyFactory
      >;
  
  template class
    TAO_Objref_Out_T<
        DynamicAny::DynAnyFactory
      >;

#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynAny \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynAny
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynAny
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynFixed \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynFixed
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynFixed
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynEnum \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynEnum
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynEnum
      >

# pragma instantiate \
    TAO_Var_Var_T< \
        DynamicAny::NameValuePair \
      >

# pragma instantiate \
    TAO_Var_Base_T< \
        DynamicAny::NameValuePair \
      >

# pragma instantiate \
    TAO_Out_T< \
        DynamicAny::NameValuePair, \
        DynamicAny::NameValuePair_var \
      >

# pragma instantiate \
    TAO_VarSeq_Var_T< \
        DynamicAny::NameValuePairSeq, \
        DynamicAny::NameValuePair \
      >

# pragma instantiate \
    TAO_Seq_Var_Base_T< \
        DynamicAny::NameValuePairSeq, \
        DynamicAny::NameValuePair \
      >

# pragma instantiate \
    TAO_Seq_Out_T< \
        DynamicAny::NameValuePairSeq, \
        DynamicAny::NameValuePairSeq_var, \
        DynamicAny::NameValuePair \
      >

#if !defined (_DYNAMICANY_NAMEVALUEPAIR__EXPLICIT_CS_)
#define _DYNAMICANY_NAMEVALUEPAIR__EXPLICIT_CS_

# pragma instantiate \
    TAO_Unbounded_Sequence< \
        DynamicAny::NameValuePair \
      >

#endif /* end #if !defined */

# pragma instantiate \
    TAO_Var_Var_T< \
        DynamicAny::NameDynAnyPair \
      >

# pragma instantiate \
    TAO_Var_Base_T< \
        DynamicAny::NameDynAnyPair \
      >

# pragma instantiate \
    TAO_Out_T< \
        DynamicAny::NameDynAnyPair, \
        DynamicAny::NameDynAnyPair_var \
      >

# pragma instantiate \
    TAO_VarSeq_Var_T< \
        DynamicAny::NameDynAnyPairSeq, \
        DynamicAny::NameDynAnyPair \
      >

# pragma instantiate \
    TAO_Seq_Var_Base_T< \
        DynamicAny::NameDynAnyPairSeq, \
        DynamicAny::NameDynAnyPair \
      >

# pragma instantiate \
    TAO_Seq_Out_T< \
        DynamicAny::NameDynAnyPairSeq, \
        DynamicAny::NameDynAnyPairSeq_var, \
        DynamicAny::NameDynAnyPair \
      >

#if !defined (_DYNAMICANY_NAMEDYNANYPAIR__EXPLICIT_CS_)
#define _DYNAMICANY_NAMEDYNANYPAIR__EXPLICIT_CS_

# pragma instantiate \
    TAO_Unbounded_Sequence< \
        DynamicAny::NameDynAnyPair \
      >

#endif /* end #if !defined */

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynStruct \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynStruct
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynStruct
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynUnion \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynUnion
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynUnion
      >

# pragma instantiate \
    TAO_VarSeq_Var_T< \
        DynamicAny::AnySeq, \
        CORBA::Any \
      >

# pragma instantiate \
    TAO_Seq_Var_Base_T< \
        DynamicAny::AnySeq, \
        CORBA::Any \
      >

# pragma instantiate \
    TAO_Seq_Out_T< \
        DynamicAny::AnySeq, \
        DynamicAny::AnySeq_var, \
        CORBA::Any \
      >

# pragma instantiate \
    TAO_MngSeq_Var_T< \
        DynamicAny::DynAnySeq, \
        TAO_Object_Manager< \
            DynamicAny::DynAny, \
            DynamicAny::DynAny_var \
          > \
      >

# pragma instantiate \
    TAO_Seq_Var_Base_T< \
        DynamicAny::DynAnySeq, \
        TAO_Object_Manager< \
            DynamicAny::DynAny, \
            DynamicAny::DynAny_var \
          > \
      >

# pragma instantiate \
    TAO_MngSeq_Out_T< \
        DynamicAny::DynAnySeq, \
        DynamicAny::DynAnySeq_var, \
        TAO_Object_Manager< \
            DynamicAny::DynAny, \
            DynamicAny::DynAny_var \
          > \
      >

#if !defined (_DYNAMICANY_DYNANY__EXPLICIT_CS_)
#define _DYNAMICANY_DYNANY__EXPLICIT_CS_

# pragma instantiate \
    TAO_Unbounded_Object_Sequence< \
        DynamicAny::DynAny, \
        DynamicAny::DynAny_var \
      >

#endif /* end #if !defined */

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynSequence \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynSequence
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynSequence
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynArray \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynArray
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynArray
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynValue \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynValue
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynValue
      >

# pragma instantiate \
    TAO::Objref_Traits< \
        DynamicAny::DynAnyFactory \
      >

# pragma instantiate \
    TAO_Objref_Var_T< \
        DynamicAny::DynAnyFactory
      >
  
# pragma instantiate \
    TAO_Objref_Out_T< \
        DynamicAny::DynAnyFactory
      >

#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ 

