Helper class to obtain an initial reference and narrow it to the proper object reference. More...
#include <RIR_Narrow.h>
Public Types | |
typedef T::_ptr_type | _ptr_type |
typedef T::_var_type | _var_type |
Static Public Member Functions | |
static _ptr_type | narrow (CORBA::ORB_ptr orb, char const *id) |
static _ptr_type | narrow (PortableInterceptor::ORBInitInfo_ptr orb, char const *id) |
Static Private Member Functions | |
static _ptr_type | narrow_object (CORBA::Object_ptr object) |
Helper class to obtain an initial reference and narrow it to the proper object reference.
Definition at line 40 of file RIR_Narrow.h.
typedef T::_ptr_type TAO::Utils::RIR_Narrow< T >::_ptr_type |
Definition at line 43 of file RIR_Narrow.h.
typedef T::_var_type TAO::Utils::RIR_Narrow< T >::_var_type |
Definition at line 44 of file RIR_Narrow.h.
TAO::Utils::RIR_Narrow< T >::_ptr_type TAO::Utils::RIR_Narrow< T >::narrow | ( | CORBA::ORB_ptr | orb, | |
char const * | id | |||
) | [static] |
Use resolve_initial_references to find an object and then narrow it.
Definition at line 13 of file RIR_Narrow.cpp.
{ CORBA::Object_var object = orb->resolve_initial_references (id); return RIR_Narrow<T>::narrow_object (object.in ()); }
TAO::Utils::RIR_Narrow< T >::_ptr_type TAO::Utils::RIR_Narrow< T >::narrow | ( | PortableInterceptor::ORBInitInfo_ptr | orb, | |
char const * | id | |||
) | [static] |
Use resolve_initial_references to find an object and then narrow it.
Definition at line 22 of file RIR_Narrow.cpp.
{ CORBA::Object_var object = info->resolve_initial_references (id); return RIR_Narrow<T>::narrow_object (object.in ()); }
TAO::Utils::RIR_Narrow< T >::_ptr_type TAO::Utils::RIR_Narrow< T >::narrow_object | ( | CORBA::Object_ptr | object | ) | [static, private] |
Definition at line 31 of file RIR_Narrow.cpp.
{ _var_type narrowed_object = T::_narrow (object); if (CORBA::is_nil (narrowed_object.in ())) { throw ::CORBA::INV_OBJREF (); } return narrowed_object._retn (); }