CORBA Programming Reference
|
|
Returns a pointer to the current object.
static CORBA::Object_ptrTP::get_object_reference();
Note that if get_object_reference() is invoked from within either Server::initialize() or Server::release(), it is considered to be invoked outside the scope of an application's TP object execution; therefore, the TobjS::NilObject exception is raised.
The following exception can be raised by the get_object_reference() method:
This method returns a pointer to the current object. The CORBA::Object_ptr pointer that is returned can be passed to a client.
The get_object_reference() method returns a CORBA::Object_ptr for the current object when invoked within the scope of a CORBA object execution. Otherwise, the TobjS::NilObject exception is raised.
|
|
|