TAO::Direct_Collocation_Upcall_Wrapper Class Reference

Wraps the activities direct collocation upcall. More...

#include <Direct_Collocation_Upcall_Wrapper.h>

List of all members.

Public Member Functions

void upcall (CORBA::Object_ptr obj, CORBA::Object_out forward_obj, TAO::Argument **args, int num_args, const char *op, size_t op_len, TAO::Collocation_Strategy strategy)
 Perform the upcall.


Detailed Description

Wraps the activities direct collocation upcall.

Definition at line 51 of file Direct_Collocation_Upcall_Wrapper.h.


Member Function Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL void TAO::Direct_Collocation_Upcall_Wrapper::upcall CORBA::Object_ptr  obj,
CORBA::Object_out  forward_obj,
TAO::Argument **  args,
int  num_args,
const char *  op,
size_t  op_len,
TAO::Collocation_Strategy  strategy
 

Perform the upcall.

Definition at line 21 of file Direct_Collocation_Upcall_Wrapper.cpp.

References CORBA::Object::_duplicate(), TAO_Abstract_ServantBase::_find(), and TAO_Collocated_Skeleton.

Referenced by POA_CORBA::_TAO_Policy_Strategized_Proxy_Broker::dispatch().

00029 {
00030   TAO_Abstract_ServantBase * const servant = obj->_servant ();
00031 
00032   TAO_Collocated_Skeleton collocated_skel;
00033 
00034   if (servant->_find (op, collocated_skel, strategy, op_len) == -1)
00035     {
00036       throw ::CORBA::BAD_OPERATION (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO);
00037     }
00038 
00039 #if (TAO_HAS_MINIMUM_CORBA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00040   try
00041     {
00042 #endif /* TAO_HAS_MINIMUM_CORBA && !CORBA_E_COMPACT && !CORBA_E_MICRO*/
00043       collocated_skel (servant, args, num_args);
00044 #if (TAO_HAS_MINIMUM_CORBA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00045     }
00046   catch (const ::PortableServer::ForwardRequest& forward_request)
00047     {
00048       forward_obj =
00049         CORBA::Object::_duplicate (forward_request.forward_reference.in ());
00050     }
00051 #else
00052   ACE_UNUSED_ARG (forward_obj);
00053 #endif /* TAO_HAS_MINIMUM_CORBA && !CORBA_E_COMPACT && !CORBA_E_MICRO*/
00054 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:28:28 2008 for TAO_PortableServer by doxygen 1.3.6