Skip navigation.

CORBA Programming Reference

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

 


CORBA::Object::_is_a

Synopsis

Determines whether an object is of a certain interface.

C++ Binding

CORBA::Boolean CORBA::Object::_is_a(const char * interface_id);

Argument

interface_id

A string that denotes the interface repository ID.

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");

 

Skip navigation bar  Back to Top Previous Next