Overview | Performs essentially the same function as CORBA::Object::_duplicate(). |
Original class | CORBA::Object |
Exceptions | CORBA::SystemException |
Intended Usage
This method is provided for consistency with the _narrow methods provided by the C++ bindings for subclasses of CORBA::Object, which narrow a generic CORBA::Object to a more specific type. When narrowing from a CORBA::Object to a CORBA::Object, however, the method degenerates to a simple duplication. Hence, this method is equivalent to CORBA::Object::_duplicate.
Syntax
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj);
Input parameters
Return values
Example
/* Assume the following idl interface: */ interface testObject { string testMethod (in long input_value, out float out_value); }; /* Here is the cpp code: */ CORBA::Object_ptr optr; /* instantiate optr somehow */ ... testObject_ptr test_obj = testObject::_narrow(optr); ...