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, bool &is_forwarded, 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,
bool &  is_forwarded,
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(), CORBA::COMPLETED_NO, and CORBA::OMGVMCID.

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


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:25 2010 for TAO_PortableServer by  doxygen 1.4.7