CORBA Programming Reference
Determines whether an object is of a certain interface.
CORBA::Boolean CORBA::Object::_is_a(const char * interface_id);
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.
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.
CORBA::Object_ptr op = TP::create_object_reference(
"IDL:Teller:1.0", "MyTeller");
CORBA::Boolean b = op->_is_a("IDL:Teller:1.0");