#include "Repository.h"
Include dependency graph for string_to.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | Omniifr |
Functions | |
template<class T> | |
T::_ptr_type | string_to_ (const char *oidStr) |
Converts a string to a narrowed reference. |
|
Converts a string to a narrowed reference.
Definition at line 44 of file string_to.h. 00045 { 00046 CORBA::Object_var obj =Repository_impl::inst()._orb->string_to_object(oidStr); 00047 00048 if(CORBA::is_nil(obj.in())) 00049 throw CORBA::BAD_PARAM(); 00050 00051 #ifdef HAVE_OMNIORB4 00052 typename T::_var_type result =T::_unchecked_narrow(obj); 00053 #else 00054 typename T::_var_type result =T::_narrow(obj); 00055 #endif 00056 00057 if(CORBA::is_nil(result.in())) 00058 throw CORBA::BAD_PARAM(); 00059 00060 return result._retn(); 00061 }
|