summaryrefslogtreecommitdiff
path: root/quellcode/versuch5/benchC.cpp
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2014-03-31 16:53:55 +0200
committerManuel Traut <manut@mecka.net>2014-03-31 16:53:55 +0200
commit1adba473e6917b227e1b0a1118148101dca202e7 (patch)
tree13180ede9564ba50c528b274ee5719b4e030ef06 /quellcode/versuch5/benchC.cpp
parenteacbf5bb4d57af21c731f41251015d3b991ad490 (diff)
add quellcodeHEADmaster
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'quellcode/versuch5/benchC.cpp')
-rwxr-xr-xquellcode/versuch5/benchC.cpp2322
1 files changed, 2322 insertions, 0 deletions
diff --git a/quellcode/versuch5/benchC.cpp b/quellcode/versuch5/benchC.cpp
new file mode 100755
index 0000000..78802ea
--- /dev/null
+++ b/quellcode/versuch5/benchC.cpp
@@ -0,0 +1,2322 @@
+// -*- 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:283
+
+
+#include "benchC.h"
+#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
+#include "tao/AnyTypeCode/String_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
+#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "tao/CDR.h"
+#include "tao/Exception_Data.h"
+#include "tao/Invocation_Adapter.h"
+#include "tao/Object_T.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/Any_Impl_T.h"
+#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+#include "tao/Basic_Arguments.h"
+#include "tao/Special_Basic_Arguments.h"
+#include "tao/Var_Size_Argument_T.h"
+#include "ace/OS_NS_string.h"
+
+#if !defined (__ACE_INLINE__)
+#include "benchC.inl"
+#endif /* !defined INLINE */
+
+// TAO_IDL - Generated from
+// be/be_visitor_arg_traits.cpp:71
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+// Arg traits specializations.
+namespace TAO
+{
+
+ // TAO_IDL - Generated from
+ // be/be_visitor_arg_traits.cpp:893
+
+#if !defined (_BENCHMARK_MSG__ARG_TRAITS_)
+#define _BENCHMARK_MSG__ARG_TRAITS_
+
+ template<>
+ class Arg_Traits<benchmark::msg>
+ : public
+ Var_Size_Arg_Traits_T<
+ benchmark::msg,
+ benchmark::msg_var,
+ benchmark::msg_out,
+ TAO::Any_Insert_Policy_Stream <benchmark::msg>
+ >
+ {
+ };
+
+#endif /* end #if !defined */
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/struct_typecode.cpp:89
+
+static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_benchmark_msg[] =
+ {
+ { "sender", &CORBA::_tc_string },
+ { "message", &CORBA::_tc_string }
+
+ };
+static TAO::TypeCode::Struct<char const *,
+ ::CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_msg (
+ ::CORBA::tk_struct,
+ "IDL:benchmark/msg:1.0",
+ "msg",
+ _tao_fields_benchmark_msg,
+ 2);
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_msg =
+ &_tao_tc_benchmark_msg;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/structure_cs.cpp:66
+
+void
+benchmark::msg::_tao_any_destructor (
+ void *_tao_void_pointer
+ )
+{
+ msg *_tao_tmp_pointer =
+ static_cast<msg *> (_tao_void_pointer);
+ delete _tao_tmp_pointer;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_exception/exception_cs.cpp:63
+
+benchmark::invalidRequest::invalidRequest (void)
+ : ::CORBA::UserException (
+ "IDL:benchmark/invalidRequest:1.0",
+ "invalidRequest"
+ )
+{
+}
+
+benchmark::invalidRequest::~invalidRequest (void)
+{
+}
+
+benchmark::invalidRequest::invalidRequest (const ::benchmark::invalidRequest &_tao_excp)
+ : ::CORBA::UserException (
+ _tao_excp._rep_id (),
+ _tao_excp._name ()
+ )
+{
+}
+
+benchmark::invalidRequest&
+benchmark::invalidRequest::operator= (const ::benchmark::invalidRequest &_tao_excp)
+{
+ this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ return *this;
+}
+
+void benchmark::invalidRequest::_tao_any_destructor (void *_tao_void_pointer)
+{
+ invalidRequest *_tao_tmp_pointer =
+ static_cast<invalidRequest *> (_tao_void_pointer);
+ delete _tao_tmp_pointer;
+}
+
+benchmark::invalidRequest *
+benchmark::invalidRequest::_downcast ( ::CORBA::Exception *_tao_excp)
+{
+ return dynamic_cast<invalidRequest *> (_tao_excp);
+}
+
+const benchmark::invalidRequest *
+benchmark::invalidRequest::_downcast ( ::CORBA::Exception const *_tao_excp)
+{
+ return dynamic_cast<const invalidRequest *> (_tao_excp);
+}
+
+::CORBA::Exception *benchmark::invalidRequest::_alloc (void)
+{
+ ::CORBA::Exception *retval = 0;
+ ACE_NEW_RETURN (retval, ::benchmark::invalidRequest, 0);
+ return retval;
+}
+
+::CORBA::Exception *
+benchmark::invalidRequest::_tao_duplicate (void) const
+{
+ ::CORBA::Exception *result = 0;
+ ACE_NEW_RETURN (
+ result,
+ ::benchmark::invalidRequest (*this),
+ 0
+ );
+ return result;
+}
+
+void benchmark::invalidRequest::_raise (void) const
+{
+ TAO_RAISE (*this);
+}
+
+void benchmark::invalidRequest::_tao_encode (
+ TAO_OutputCDR &cdr
+ ACE_ENV_ARG_DECL
+ ) const
+{
+ if (cdr << *this)
+ {
+ return;
+ }
+
+ ACE_THROW ( ::CORBA::MARSHAL ());
+}
+
+void benchmark::invalidRequest::_tao_decode (
+ TAO_InputCDR &cdr
+ ACE_ENV_ARG_DECL
+ )
+{
+ if (cdr >> *this)
+ {
+ return;
+ }
+
+ ACE_THROW ( ::CORBA::MARSHAL ());
+}
+
+// TAO extension - the virtual _type method.
+::CORBA::TypeCode_ptr benchmark::invalidRequest::_tao_type (void) const
+{
+ return ::benchmark::_tc_invalidRequest;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/struct_typecode.cpp:89
+
+static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_benchmark_invalidRequest = 0;
+static TAO::TypeCode::Struct<char const *,
+ ::CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_invalidRequest (
+ ::CORBA::tk_except,
+ "IDL:benchmark/invalidRequest:1.0",
+ "invalidRequest",
+ _tao_fields_benchmark_invalidRequest,
+ 0);
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_invalidRequest =
+ &_tao_tc_benchmark_invalidRequest;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/interface_cs.cpp:60
+
+// Traits specializations for benchmark::msgAndPort1.
+
+benchmark::msgAndPort1_ptr
+TAO::Objref_Traits<benchmark::msgAndPort1>::duplicate (
+ benchmark::msgAndPort1_ptr p
+ )
+{
+ return benchmark::msgAndPort1::_duplicate (p);
+}
+
+void
+TAO::Objref_Traits<benchmark::msgAndPort1>::release (
+ benchmark::msgAndPort1_ptr p
+ )
+{
+ CORBA::release (p);
+}
+
+benchmark::msgAndPort1_ptr
+TAO::Objref_Traits<benchmark::msgAndPort1>::nil (void)
+{
+ return benchmark::msgAndPort1::_nil ();
+}
+
+::CORBA::Boolean
+TAO::Objref_Traits<benchmark::msgAndPort1>::marshal (
+ const benchmark::msgAndPort1_ptr p,
+ TAO_OutputCDR & cdr
+ )
+{
+ return ::CORBA::Object::marshal (p, cdr);
+}
+
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer) (
+ ::CORBA::Object_ptr obj
+ ) = 0;
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::msgAndPort1::connect (
+
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgAndPort1_Proxy_Broker_ == 0)
+ {
+ benchmark_msgAndPort1_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgAndPort1_connect_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 1,
+ "connect",
+ 7,
+ this->the_TAO_msgAndPort1_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgAndPort1_connect_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::msgAndPort1::setPorts (
+ ::CORBA::Short valPort1,
+ ::CORBA::Short valPort2,
+ ::CORBA::Short valPort3
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgAndPort1_Proxy_Broker_ == 0)
+ {
+ benchmark_msgAndPort1_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort1 (valPort1);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort2 (valPort2);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort3 (valPort3);
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval,
+ &_tao_valPort1,
+ &_tao_valPort2,
+ &_tao_valPort3
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgAndPort1_setPorts_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 4,
+ "setPorts",
+ 8,
+ this->the_TAO_msgAndPort1_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgAndPort1_setPorts_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+::CORBA::Boolean benchmark::msgAndPort1::sendMsg (
+ const ::benchmark::msg & message
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgAndPort1_Proxy_Broker_ == 0)
+ {
+ benchmark_msgAndPort1_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< ::ACE_InputCDR::to_boolean>::ret_val _tao_retval;
+ TAO::Arg_Traits< ::benchmark::msg>::in_arg_val _tao_message (message);
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval,
+ &_tao_message
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgAndPort1_sendMsg_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 2,
+ "sendMsg",
+ 7,
+ this->the_TAO_msgAndPort1_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgAndPort1_sendMsg_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK_RETURN (_tao_retval.excp ());
+
+ return _tao_retval.retn ();
+}
+
+benchmark::msgAndPort1::msgAndPort1 (void)
+ : the_TAO_msgAndPort1_Proxy_Broker_ (0)
+{
+ this->benchmark_msgAndPort1_setup_collocation ();
+}
+
+void
+benchmark::msgAndPort1::benchmark_msgAndPort1_setup_collocation ()
+{
+ if (::benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer)
+ {
+ this->the_TAO_msgAndPort1_Proxy_Broker_ =
+ ::benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer (this);
+ }
+}
+
+benchmark::msgAndPort1::~msgAndPort1 (void)
+{}
+
+void
+benchmark::msgAndPort1::_tao_any_destructor (void *_tao_void_pointer)
+{
+ msgAndPort1 *_tao_tmp_pointer =
+ static_cast<msgAndPort1 *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
+benchmark::msgAndPort1_ptr
+benchmark::msgAndPort1::_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgAndPort1>::narrow (
+ _tao_objref,
+ "IDL:benchmark/msgAndPort1:1.0",
+ benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgAndPort1_ptr
+benchmark::msgAndPort1::_unchecked_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgAndPort1>::unchecked_narrow (
+ _tao_objref,
+ "IDL:benchmark/msgAndPort1:1.0",
+ benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgAndPort1_ptr
+benchmark::msgAndPort1::_duplicate (msgAndPort1_ptr obj)
+{
+ if (! CORBA::is_nil (obj))
+ {
+ obj->_add_ref ();
+ }
+
+ return obj;
+}
+
+void
+benchmark::msgAndPort1::_tao_release (msgAndPort1_ptr obj)
+{
+ CORBA::release (obj);
+}
+
+::CORBA::Boolean
+benchmark::msgAndPort1::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL
+ )
+{
+ if (
+ !ACE_OS::strcmp (
+ value,
+ "IDL:benchmark/msgAndPort1:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
+ {
+ return true; // success using local knowledge
+ }
+ else
+ {
+ return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a (
+ value
+ ACE_ENV_ARG_PARAMETER
+ );
+ }
+}
+
+const char* benchmark::msgAndPort1::_interface_repository_id (void) const
+{
+ return "IDL:benchmark/msgAndPort1:1.0";
+}
+
+::CORBA::Boolean
+benchmark::msgAndPort1::marshal (TAO_OutputCDR &cdr)
+{
+ return (cdr << this);
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_msgAndPort1 (
+ ::CORBA::tk_objref,
+ "IDL:benchmark/msgAndPort1:1.0",
+ "msgAndPort1");
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_msgAndPort1 =
+ &_tao_tc_benchmark_msgAndPort1;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/interface_cs.cpp:60
+
+// Traits specializations for benchmark::msgAndPort2.
+
+benchmark::msgAndPort2_ptr
+TAO::Objref_Traits<benchmark::msgAndPort2>::duplicate (
+ benchmark::msgAndPort2_ptr p
+ )
+{
+ return benchmark::msgAndPort2::_duplicate (p);
+}
+
+void
+TAO::Objref_Traits<benchmark::msgAndPort2>::release (
+ benchmark::msgAndPort2_ptr p
+ )
+{
+ CORBA::release (p);
+}
+
+benchmark::msgAndPort2_ptr
+TAO::Objref_Traits<benchmark::msgAndPort2>::nil (void)
+{
+ return benchmark::msgAndPort2::_nil ();
+}
+
+::CORBA::Boolean
+TAO::Objref_Traits<benchmark::msgAndPort2>::marshal (
+ const benchmark::msgAndPort2_ptr p,
+ TAO_OutputCDR & cdr
+ )
+{
+ return ::CORBA::Object::marshal (p, cdr);
+}
+
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer) (
+ ::CORBA::Object_ptr obj
+ ) = 0;
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::msgAndPort2::connect (
+
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgAndPort2_Proxy_Broker_ == 0)
+ {
+ benchmark_msgAndPort2_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgAndPort2_connect_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 1,
+ "connect",
+ 7,
+ this->the_TAO_msgAndPort2_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgAndPort2_connect_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::msgAndPort2::setPortsSendMsg (
+ ::CORBA::Short valPort1,
+ ::CORBA::Short valPort2,
+ ::CORBA::Short valPort3,
+ const ::benchmark::msg & message
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgAndPort2_Proxy_Broker_ == 0)
+ {
+ benchmark_msgAndPort2_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort1 (valPort1);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort2 (valPort2);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort3 (valPort3);
+ TAO::Arg_Traits< ::benchmark::msg>::in_arg_val _tao_message (message);
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval,
+ &_tao_valPort1,
+ &_tao_valPort2,
+ &_tao_valPort3,
+ &_tao_message
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgAndPort2_setPortsSendMsg_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 5,
+ "setPortsSendMsg",
+ 15,
+ this->the_TAO_msgAndPort2_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgAndPort2_setPortsSendMsg_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+benchmark::msgAndPort2::msgAndPort2 (void)
+ : the_TAO_msgAndPort2_Proxy_Broker_ (0)
+{
+ this->benchmark_msgAndPort2_setup_collocation ();
+}
+
+void
+benchmark::msgAndPort2::benchmark_msgAndPort2_setup_collocation ()
+{
+ if (::benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer)
+ {
+ this->the_TAO_msgAndPort2_Proxy_Broker_ =
+ ::benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer (this);
+ }
+}
+
+benchmark::msgAndPort2::~msgAndPort2 (void)
+{}
+
+void
+benchmark::msgAndPort2::_tao_any_destructor (void *_tao_void_pointer)
+{
+ msgAndPort2 *_tao_tmp_pointer =
+ static_cast<msgAndPort2 *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
+benchmark::msgAndPort2_ptr
+benchmark::msgAndPort2::_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgAndPort2>::narrow (
+ _tao_objref,
+ "IDL:benchmark/msgAndPort2:1.0",
+ benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgAndPort2_ptr
+benchmark::msgAndPort2::_unchecked_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgAndPort2>::unchecked_narrow (
+ _tao_objref,
+ "IDL:benchmark/msgAndPort2:1.0",
+ benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgAndPort2_ptr
+benchmark::msgAndPort2::_duplicate (msgAndPort2_ptr obj)
+{
+ if (! CORBA::is_nil (obj))
+ {
+ obj->_add_ref ();
+ }
+
+ return obj;
+}
+
+void
+benchmark::msgAndPort2::_tao_release (msgAndPort2_ptr obj)
+{
+ CORBA::release (obj);
+}
+
+::CORBA::Boolean
+benchmark::msgAndPort2::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL
+ )
+{
+ if (
+ !ACE_OS::strcmp (
+ value,
+ "IDL:benchmark/msgAndPort2:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
+ {
+ return true; // success using local knowledge
+ }
+ else
+ {
+ return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a (
+ value
+ ACE_ENV_ARG_PARAMETER
+ );
+ }
+}
+
+const char* benchmark::msgAndPort2::_interface_repository_id (void) const
+{
+ return "IDL:benchmark/msgAndPort2:1.0";
+}
+
+::CORBA::Boolean
+benchmark::msgAndPort2::marshal (TAO_OutputCDR &cdr)
+{
+ return (cdr << this);
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_msgAndPort2 (
+ ::CORBA::tk_objref,
+ "IDL:benchmark/msgAndPort2:1.0",
+ "msgAndPort2");
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_msgAndPort2 =
+ &_tao_tc_benchmark_msgAndPort2;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/interface_cs.cpp:60
+
+// Traits specializations for benchmark::msgOnly.
+
+benchmark::msgOnly_ptr
+TAO::Objref_Traits<benchmark::msgOnly>::duplicate (
+ benchmark::msgOnly_ptr p
+ )
+{
+ return benchmark::msgOnly::_duplicate (p);
+}
+
+void
+TAO::Objref_Traits<benchmark::msgOnly>::release (
+ benchmark::msgOnly_ptr p
+ )
+{
+ CORBA::release (p);
+}
+
+benchmark::msgOnly_ptr
+TAO::Objref_Traits<benchmark::msgOnly>::nil (void)
+{
+ return benchmark::msgOnly::_nil ();
+}
+
+::CORBA::Boolean
+TAO::Objref_Traits<benchmark::msgOnly>::marshal (
+ const benchmark::msgOnly_ptr p,
+ TAO_OutputCDR & cdr
+ )
+{
+ return ::CORBA::Object::marshal (p, cdr);
+}
+
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer) (
+ ::CORBA::Object_ptr obj
+ ) = 0;
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+::CORBA::Boolean benchmark::msgOnly::sendMsg (
+ const ::benchmark::msg & message
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_msgOnly_Proxy_Broker_ == 0)
+ {
+ benchmark_msgOnly_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< ::ACE_InputCDR::to_boolean>::ret_val _tao_retval;
+ TAO::Arg_Traits< ::benchmark::msg>::in_arg_val _tao_message (message);
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval,
+ &_tao_message
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_msgOnly_sendMsg_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 2,
+ "sendMsg",
+ 7,
+ this->the_TAO_msgOnly_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_msgOnly_sendMsg_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK_RETURN (_tao_retval.excp ());
+
+ return _tao_retval.retn ();
+}
+
+benchmark::msgOnly::msgOnly (void)
+ : the_TAO_msgOnly_Proxy_Broker_ (0)
+{
+ this->benchmark_msgOnly_setup_collocation ();
+}
+
+void
+benchmark::msgOnly::benchmark_msgOnly_setup_collocation ()
+{
+ if (::benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer)
+ {
+ this->the_TAO_msgOnly_Proxy_Broker_ =
+ ::benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer (this);
+ }
+}
+
+benchmark::msgOnly::~msgOnly (void)
+{}
+
+void
+benchmark::msgOnly::_tao_any_destructor (void *_tao_void_pointer)
+{
+ msgOnly *_tao_tmp_pointer =
+ static_cast<msgOnly *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
+benchmark::msgOnly_ptr
+benchmark::msgOnly::_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgOnly>::narrow (
+ _tao_objref,
+ "IDL:benchmark/msgOnly:1.0",
+ benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgOnly_ptr
+benchmark::msgOnly::_unchecked_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<msgOnly>::unchecked_narrow (
+ _tao_objref,
+ "IDL:benchmark/msgOnly:1.0",
+ benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::msgOnly_ptr
+benchmark::msgOnly::_duplicate (msgOnly_ptr obj)
+{
+ if (! CORBA::is_nil (obj))
+ {
+ obj->_add_ref ();
+ }
+
+ return obj;
+}
+
+void
+benchmark::msgOnly::_tao_release (msgOnly_ptr obj)
+{
+ CORBA::release (obj);
+}
+
+::CORBA::Boolean
+benchmark::msgOnly::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL
+ )
+{
+ if (
+ !ACE_OS::strcmp (
+ value,
+ "IDL:benchmark/msgOnly:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
+ {
+ return true; // success using local knowledge
+ }
+ else
+ {
+ return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a (
+ value
+ ACE_ENV_ARG_PARAMETER
+ );
+ }
+}
+
+const char* benchmark::msgOnly::_interface_repository_id (void) const
+{
+ return "IDL:benchmark/msgOnly:1.0";
+}
+
+::CORBA::Boolean
+benchmark::msgOnly::marshal (TAO_OutputCDR &cdr)
+{
+ return (cdr << this);
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_msgOnly (
+ ::CORBA::tk_objref,
+ "IDL:benchmark/msgOnly:1.0",
+ "msgOnly");
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_msgOnly =
+ &_tao_tc_benchmark_msgOnly;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/interface_cs.cpp:60
+
+// Traits specializations for benchmark::setPortsOnly.
+
+benchmark::setPortsOnly_ptr
+TAO::Objref_Traits<benchmark::setPortsOnly>::duplicate (
+ benchmark::setPortsOnly_ptr p
+ )
+{
+ return benchmark::setPortsOnly::_duplicate (p);
+}
+
+void
+TAO::Objref_Traits<benchmark::setPortsOnly>::release (
+ benchmark::setPortsOnly_ptr p
+ )
+{
+ CORBA::release (p);
+}
+
+benchmark::setPortsOnly_ptr
+TAO::Objref_Traits<benchmark::setPortsOnly>::nil (void)
+{
+ return benchmark::setPortsOnly::_nil ();
+}
+
+::CORBA::Boolean
+TAO::Objref_Traits<benchmark::setPortsOnly>::marshal (
+ const benchmark::setPortsOnly_ptr p,
+ TAO_OutputCDR & cdr
+ )
+{
+ return ::CORBA::Object::marshal (p, cdr);
+}
+
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer) (
+ ::CORBA::Object_ptr obj
+ ) = 0;
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::setPortsOnly::connect (
+
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_setPortsOnly_Proxy_Broker_ == 0)
+ {
+ benchmark_setPortsOnly_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_setPortsOnly_connect_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 1,
+ "connect",
+ 7,
+ this->the_TAO_setPortsOnly_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_setPortsOnly_connect_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_operation/operation_cs.cpp:78
+
+void benchmark::setPortsOnly::setPorts (
+ ::CORBA::Short valPort1,
+ ::CORBA::Short valPort2,
+ ::CORBA::Short valPort3
+ )
+ ACE_THROW_SPEC ((
+ ::CORBA::SystemException,
+ ::benchmark::invalidRequest
+ ))
+{
+ if (!this->is_evaluated ())
+ {
+ ACE_NESTED_CLASS ( ::CORBA, Object)::tao_object_initialize (this);
+ }
+
+ if (this->the_TAO_setPortsOnly_Proxy_Broker_ == 0)
+ {
+ benchmark_setPortsOnly_setup_collocation ();
+ }
+
+ TAO::Arg_Traits< void>::ret_val _tao_retval;
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort1 (valPort1);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort2 (valPort2);
+ TAO::Arg_Traits< ::CORBA::Short>::in_arg_val _tao_valPort3 (valPort3);
+
+ TAO::Argument *_the_tao_operation_signature [] =
+ {
+ &_tao_retval,
+ &_tao_valPort1,
+ &_tao_valPort2,
+ &_tao_valPort3
+ };
+
+ static TAO::Exception_Data
+ _tao_benchmark_setPortsOnly_setPorts_exceptiondata [] =
+ {
+ {
+ "IDL:benchmark/invalidRequest:1.0",
+ benchmark::invalidRequest::_alloc
+#if TAO_HAS_INTERCEPTORS == 1
+ , benchmark::_tc_invalidRequest
+#endif /* TAO_HAS_INTERCEPTORS */
+ }
+ };
+
+ TAO::Invocation_Adapter _tao_call (
+ this,
+ _the_tao_operation_signature,
+ 4,
+ "setPorts",
+ 8,
+ this->the_TAO_setPortsOnly_Proxy_Broker_
+ );
+
+ _tao_call.invoke (
+ _tao_benchmark_setPortsOnly_setPorts_exceptiondata,
+ 1
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_CHECK;
+}
+
+benchmark::setPortsOnly::setPortsOnly (void)
+ : the_TAO_setPortsOnly_Proxy_Broker_ (0)
+{
+ this->benchmark_setPortsOnly_setup_collocation ();
+}
+
+void
+benchmark::setPortsOnly::benchmark_setPortsOnly_setup_collocation ()
+{
+ if (::benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer)
+ {
+ this->the_TAO_setPortsOnly_Proxy_Broker_ =
+ ::benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer (this);
+ }
+}
+
+benchmark::setPortsOnly::~setPortsOnly (void)
+{}
+
+void
+benchmark::setPortsOnly::_tao_any_destructor (void *_tao_void_pointer)
+{
+ setPortsOnly *_tao_tmp_pointer =
+ static_cast<setPortsOnly *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
+benchmark::setPortsOnly_ptr
+benchmark::setPortsOnly::_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<setPortsOnly>::narrow (
+ _tao_objref,
+ "IDL:benchmark/setPortsOnly:1.0",
+ benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::setPortsOnly_ptr
+benchmark::setPortsOnly::_unchecked_narrow (
+ ::CORBA::Object_ptr _tao_objref
+ ACE_ENV_ARG_DECL
+ )
+{
+ return
+ TAO::Narrow_Utils<setPortsOnly>::unchecked_narrow (
+ _tao_objref,
+ "IDL:benchmark/setPortsOnly:1.0",
+ benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer
+ ACE_ENV_ARG_PARAMETER
+ );
+}
+
+benchmark::setPortsOnly_ptr
+benchmark::setPortsOnly::_duplicate (setPortsOnly_ptr obj)
+{
+ if (! CORBA::is_nil (obj))
+ {
+ obj->_add_ref ();
+ }
+
+ return obj;
+}
+
+void
+benchmark::setPortsOnly::_tao_release (setPortsOnly_ptr obj)
+{
+ CORBA::release (obj);
+}
+
+::CORBA::Boolean
+benchmark::setPortsOnly::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL
+ )
+{
+ if (
+ !ACE_OS::strcmp (
+ value,
+ "IDL:benchmark/setPortsOnly:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
+ {
+ return true; // success using local knowledge
+ }
+ else
+ {
+ return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a (
+ value
+ ACE_ENV_ARG_PARAMETER
+ );
+ }
+}
+
+const char* benchmark::setPortsOnly::_interface_repository_id (void) const
+{
+ return "IDL:benchmark/setPortsOnly:1.0";
+}
+
+::CORBA::Boolean
+benchmark::setPortsOnly::marshal (TAO_OutputCDR &cdr)
+{
+ return (cdr << this);
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_benchmark_setPortsOnly (
+ ::CORBA::tk_objref,
+ "IDL:benchmark/setPortsOnly:1.0",
+ "setPortsOnly");
+
+namespace benchmark
+{
+ ::CORBA::TypeCode_ptr const _tc_setPortsOnly =
+ &_tao_tc_benchmark_setPortsOnly;
+}
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/any_op_cs.cpp:54
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+// Copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ const benchmark::msg &_tao_elem
+ )
+{
+ if (0 == &_tao_elem) // Trying to de-reference NULL object
+ _tao_any <<= static_cast<benchmark::msg *>( 0 ); // Use non-copying insertion of a NULL
+ else
+ TAO::Any_Dual_Impl_T<benchmark::msg>::insert_copy (
+ _tao_any,
+ benchmark::msg::_tao_any_destructor,
+ benchmark::_tc_msg,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msg *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<benchmark::msg>::insert (
+ _tao_any,
+ benchmark::msg::_tao_any_destructor,
+ benchmark::_tc_msg,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::msg *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const benchmark::msg *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ const benchmark::msg *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<benchmark::msg>::extract (
+ _tao_any,
+ benchmark::msg::_tao_any_destructor,
+ benchmark::_tc_msg,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_exception/any_op_cs.cpp:50
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+namespace TAO
+{
+ template<>
+ ::CORBA::Boolean
+ Any_Dual_Impl_T<benchmark::invalidRequest>::demarshal_value (
+ TAO_InputCDR & cdr
+ )
+ {
+ ::CORBA::String_var id;
+
+ if (!(cdr >> id.out ()))
+ {
+ return false;
+ }
+
+ ACE_TRY_NEW_ENV
+ {
+ this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ return false;
+ }
+ ACE_ENDTRY;
+
+ return true;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ const benchmark::invalidRequest &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<benchmark::invalidRequest>::insert_copy (
+ _tao_any,
+ benchmark::invalidRequest::_tao_any_destructor,
+ benchmark::_tc_invalidRequest,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::invalidRequest *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<benchmark::invalidRequest>::insert (
+ _tao_any,
+ benchmark::invalidRequest::_tao_any_destructor,
+ benchmark::_tc_invalidRequest,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::invalidRequest *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const benchmark::invalidRequest *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+::CORBA::Boolean operator>>= (
+ const ::CORBA::Any &_tao_any,
+ const benchmark::invalidRequest *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<benchmark::invalidRequest>::extract (
+ _tao_any,
+ benchmark::invalidRequest::_tao_any_destructor,
+ benchmark::_tc_invalidRequest,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/any_op_cs.cpp:51
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+namespace TAO
+{
+ template<>
+ ::CORBA::Boolean
+ Any_Impl_T<benchmark::msgAndPort1>::to_object (
+ ::CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = ::CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#if defined (ACE_ANY_OPS_USE_NAMESPACE)
+
+namespace benchmark
+{
+
+
+ // Copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgAndPort1_ptr _tao_elem
+ )
+ {
+ msgAndPort1_ptr _tao_objptr =
+ msgAndPort1::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+ }
+
+ // Non-copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgAndPort1_ptr *_tao_elem
+ )
+ {
+ TAO::Any_Impl_T<msgAndPort1>::insert (
+ _tao_any,
+ msgAndPort1::_tao_any_destructor,
+ _tc_msgAndPort1,
+ *_tao_elem
+ );
+ }
+
+ ::CORBA::Boolean
+ operator>>= (
+ const ::CORBA::Any &_tao_any,
+ msgAndPort1_ptr &_tao_elem
+ )
+ {
+ return
+ TAO::Any_Impl_T<msgAndPort1>::extract (
+ _tao_any,
+ msgAndPort1::_tao_any_destructor,
+ _tc_msgAndPort1,
+ _tao_elem
+ );
+ }
+}
+
+#else
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+// Copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort1_ptr _tao_elem
+ )
+{
+ benchmark::msgAndPort1_ptr _tao_objptr =
+ benchmark::msgAndPort1::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort1_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<benchmark::msgAndPort1>::insert (
+ _tao_any,
+ benchmark::msgAndPort1::_tao_any_destructor,
+ benchmark::_tc_msgAndPort1,
+ *_tao_elem
+ );
+}
+
+::CORBA::Boolean
+operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort1_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<benchmark::msgAndPort1>::extract (
+ _tao_any,
+ benchmark::msgAndPort1::_tao_any_destructor,
+ benchmark::_tc_msgAndPort1,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#endif
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/any_op_cs.cpp:51
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+namespace TAO
+{
+ template<>
+ ::CORBA::Boolean
+ Any_Impl_T<benchmark::msgAndPort2>::to_object (
+ ::CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = ::CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#if defined (ACE_ANY_OPS_USE_NAMESPACE)
+
+namespace benchmark
+{
+
+
+ // Copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgAndPort2_ptr _tao_elem
+ )
+ {
+ msgAndPort2_ptr _tao_objptr =
+ msgAndPort2::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+ }
+
+ // Non-copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgAndPort2_ptr *_tao_elem
+ )
+ {
+ TAO::Any_Impl_T<msgAndPort2>::insert (
+ _tao_any,
+ msgAndPort2::_tao_any_destructor,
+ _tc_msgAndPort2,
+ *_tao_elem
+ );
+ }
+
+ ::CORBA::Boolean
+ operator>>= (
+ const ::CORBA::Any &_tao_any,
+ msgAndPort2_ptr &_tao_elem
+ )
+ {
+ return
+ TAO::Any_Impl_T<msgAndPort2>::extract (
+ _tao_any,
+ msgAndPort2::_tao_any_destructor,
+ _tc_msgAndPort2,
+ _tao_elem
+ );
+ }
+}
+
+#else
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+// Copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort2_ptr _tao_elem
+ )
+{
+ benchmark::msgAndPort2_ptr _tao_objptr =
+ benchmark::msgAndPort2::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort2_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<benchmark::msgAndPort2>::insert (
+ _tao_any,
+ benchmark::msgAndPort2::_tao_any_destructor,
+ benchmark::_tc_msgAndPort2,
+ *_tao_elem
+ );
+}
+
+::CORBA::Boolean
+operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::msgAndPort2_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<benchmark::msgAndPort2>::extract (
+ _tao_any,
+ benchmark::msgAndPort2::_tao_any_destructor,
+ benchmark::_tc_msgAndPort2,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#endif
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/any_op_cs.cpp:51
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+namespace TAO
+{
+ template<>
+ ::CORBA::Boolean
+ Any_Impl_T<benchmark::msgOnly>::to_object (
+ ::CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = ::CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#if defined (ACE_ANY_OPS_USE_NAMESPACE)
+
+namespace benchmark
+{
+
+
+ // Copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgOnly_ptr _tao_elem
+ )
+ {
+ msgOnly_ptr _tao_objptr =
+ msgOnly::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+ }
+
+ // Non-copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ msgOnly_ptr *_tao_elem
+ )
+ {
+ TAO::Any_Impl_T<msgOnly>::insert (
+ _tao_any,
+ msgOnly::_tao_any_destructor,
+ _tc_msgOnly,
+ *_tao_elem
+ );
+ }
+
+ ::CORBA::Boolean
+ operator>>= (
+ const ::CORBA::Any &_tao_any,
+ msgOnly_ptr &_tao_elem
+ )
+ {
+ return
+ TAO::Any_Impl_T<msgOnly>::extract (
+ _tao_any,
+ msgOnly::_tao_any_destructor,
+ _tc_msgOnly,
+ _tao_elem
+ );
+ }
+}
+
+#else
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+// Copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgOnly_ptr _tao_elem
+ )
+{
+ benchmark::msgOnly_ptr _tao_objptr =
+ benchmark::msgOnly::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::msgOnly_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<benchmark::msgOnly>::insert (
+ _tao_any,
+ benchmark::msgOnly::_tao_any_destructor,
+ benchmark::_tc_msgOnly,
+ *_tao_elem
+ );
+}
+
+::CORBA::Boolean
+operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::msgOnly_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<benchmark::msgOnly>::extract (
+ _tao_any,
+ benchmark::msgOnly::_tao_any_destructor,
+ benchmark::_tc_msgOnly,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#endif
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/any_op_cs.cpp:51
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+namespace TAO
+{
+ template<>
+ ::CORBA::Boolean
+ Any_Impl_T<benchmark::setPortsOnly>::to_object (
+ ::CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = ::CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#if defined (ACE_ANY_OPS_USE_NAMESPACE)
+
+namespace benchmark
+{
+
+
+ // Copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ setPortsOnly_ptr _tao_elem
+ )
+ {
+ setPortsOnly_ptr _tao_objptr =
+ setPortsOnly::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+ }
+
+ // Non-copying insertion.
+ void
+ operator<<= (
+ ::CORBA::Any &_tao_any,
+ setPortsOnly_ptr *_tao_elem
+ )
+ {
+ TAO::Any_Impl_T<setPortsOnly>::insert (
+ _tao_any,
+ setPortsOnly::_tao_any_destructor,
+ _tc_setPortsOnly,
+ *_tao_elem
+ );
+ }
+
+ ::CORBA::Boolean
+ operator>>= (
+ const ::CORBA::Any &_tao_any,
+ setPortsOnly_ptr &_tao_elem
+ )
+ {
+ return
+ TAO::Any_Impl_T<setPortsOnly>::extract (
+ _tao_any,
+ setPortsOnly::_tao_any_destructor,
+ _tc_setPortsOnly,
+ _tao_elem
+ );
+ }
+}
+
+#else
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+// Copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::setPortsOnly_ptr _tao_elem
+ )
+{
+ benchmark::setPortsOnly_ptr _tao_objptr =
+ benchmark::setPortsOnly::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ ::CORBA::Any &_tao_any,
+ benchmark::setPortsOnly_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<benchmark::setPortsOnly>::insert (
+ _tao_any,
+ benchmark::setPortsOnly::_tao_any_destructor,
+ benchmark::_tc_setPortsOnly,
+ *_tao_elem
+ );
+}
+
+::CORBA::Boolean
+operator>>= (
+ const ::CORBA::Any &_tao_any,
+ benchmark::setPortsOnly_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<benchmark::setPortsOnly>::extract (
+ _tao_any,
+ benchmark::setPortsOnly::_tao_any_destructor,
+ benchmark::_tc_setPortsOnly,
+ _tao_elem
+ );
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+#endif
+
+// TAO_IDL - Generated from
+// be/be_visitor_structure/cdr_op_cs.cpp:61
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::msg &_tao_aggregate
+ )
+{
+ return
+ (strm << _tao_aggregate.sender.in ()) &&
+ (strm << _tao_aggregate.message.in ());
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ benchmark::msg &_tao_aggregate
+ )
+{
+ return
+ (strm >> _tao_aggregate.sender.out ()) &&
+ (strm >> _tao_aggregate.message.out ());
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_exception/cdr_op_cs.cpp:60
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::invalidRequest &_tao_aggregate
+ )
+{
+ // Marshal the repository ID.
+ return (strm << _tao_aggregate._rep_id ());
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &,
+ benchmark::invalidRequest&
+ )
+{
+ return true;
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/cdr_op_cs.cpp:63
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::msgAndPort1_ptr _tao_objref
+ )
+{
+ ::CORBA::Object_ptr _tao_corba_obj = _tao_objref;
+ return (strm << _tao_corba_obj);
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ benchmark::msgAndPort1_ptr &_tao_objref
+ )
+{
+ ::CORBA::Object_var obj;
+
+ if (!(strm >> obj.inout ()))
+ {
+ return false;
+ }
+
+ typedef ::benchmark::msgAndPort1 RHS_SCOPED_NAME;
+
+ // Narrow to the right type.
+ _tao_objref =
+ TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
+ obj.in (),
+ benchmark__TAO_msgAndPort1_Proxy_Broker_Factory_function_pointer
+ );
+
+ return 1;
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/cdr_op_cs.cpp:63
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::msgAndPort2_ptr _tao_objref
+ )
+{
+ ::CORBA::Object_ptr _tao_corba_obj = _tao_objref;
+ return (strm << _tao_corba_obj);
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ benchmark::msgAndPort2_ptr &_tao_objref
+ )
+{
+ ::CORBA::Object_var obj;
+
+ if (!(strm >> obj.inout ()))
+ {
+ return false;
+ }
+
+ typedef ::benchmark::msgAndPort2 RHS_SCOPED_NAME;
+
+ // Narrow to the right type.
+ _tao_objref =
+ TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
+ obj.in (),
+ benchmark__TAO_msgAndPort2_Proxy_Broker_Factory_function_pointer
+ );
+
+ return 1;
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/cdr_op_cs.cpp:63
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::msgOnly_ptr _tao_objref
+ )
+{
+ ::CORBA::Object_ptr _tao_corba_obj = _tao_objref;
+ return (strm << _tao_corba_obj);
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ benchmark::msgOnly_ptr &_tao_objref
+ )
+{
+ ::CORBA::Object_var obj;
+
+ if (!(strm >> obj.inout ()))
+ {
+ return false;
+ }
+
+ typedef ::benchmark::msgOnly RHS_SCOPED_NAME;
+
+ // Narrow to the right type.
+ _tao_objref =
+ TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
+ obj.in (),
+ benchmark__TAO_msgOnly_Proxy_Broker_Factory_function_pointer
+ );
+
+ return 1;
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+// TAO_IDL - Generated from
+// be/be_visitor_interface/cdr_op_cs.cpp:63
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+::CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const benchmark::setPortsOnly_ptr _tao_objref
+ )
+{
+ ::CORBA::Object_ptr _tao_corba_obj = _tao_objref;
+ return (strm << _tao_corba_obj);
+}
+
+::CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ benchmark::setPortsOnly_ptr &_tao_objref
+ )
+{
+ ::CORBA::Object_var obj;
+
+ if (!(strm >> obj.inout ()))
+ {
+ return false;
+ }
+
+ typedef ::benchmark::setPortsOnly RHS_SCOPED_NAME;
+
+ // Narrow to the right type.
+ _tao_objref =
+ TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
+ obj.in (),
+ benchmark__TAO_setPortsOnly_Proxy_Broker_Factory_function_pointer
+ );
+
+ return 1;
+}
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+