e-docs > Tuxedo > Administering a Tuxedo Application at Run Time > CORBA API |
Administering a Tuxedo Application at Run Time |
Synopsis
Determines whether an object is of a certain interface.
C++ Binding
CORBA::Boolean CORBA::Object::_is_a(const char * interface_id);
Argument
Description
This member function is used to determine if an object is an instance of the interface that you specify in the interface_id parameter. It facilitates maintaining type-safety for object references over the scope of an ORB.
Return Values
Returns TRUE if the object is an instance of the specified type, or if the object is an ancestor of the "most derived" type of that object.
Example
CORBA::Object_ptr op = TP::create_object_reference(
"IDL:Teller:1.0", "MyTeller");
CORBA::Boolean b = op->_is_a("IDL:Teller:1.0");