[Enterprise Extensions only]

CORBA programming: narrowing to a C++ implementation

Given an interface pointer to an object, it is sometimes useful to narrow to the implementation pointer of the object. For example, given interface I, the C++ implementation hierarchy for I might look like:

          I
          ^
          |
       I_Skeleton
          ^
          |
        I_Impl

You might want to convert a pointer to I into a pointer to I_Impl. There is no CORBA-prescribed mechanism for this conversion. Within the confines of the C++ language, dynamic cast can be used.