Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


TP::get_object_id ()

Synopsis

Allows a server to retrieve the string ObjectId contained in an object reference that was created in the TP Framework.

C++ Binding

char* TP::get_object_id(Corba::Object_ptr obj);

Arguments

obj

The object reference from which to get the ObjectId.

Exception

TobjS::InvalidObject

The object is nil or was not created by the TP Framework

Description

This method allows a server to retrieve the string ObjectId contained in an object reference that was created in the TP Framework. If the object reference was not created in the TP Framework (for example, it was created by a client ORB), an exception is raised.

The caller must call CORBA::string_free on the returned value when the object reference is no longer needed.

Return Value

The string ObjectId passed to TP::create_object_reference or TP::create_active_object_reference when the object reference was created.

 

Skip navigation bar  Back to Top Previous Next