Type Codes

Type codes are an essential part of the dynamic typing mechanism of CORBA. They are described by the pseudo-IDL interface CORBA::TypeCode, which maps to the class CORBA::TypeCode in C++ and org.omg.CORBA.TypeCode in Java.

A type code can provide a complete description of built-in IDL types or user-defined IDL types. Usually, it is possible to re-create the exact IDL declaration of a given user-defined type by querying the properties of the corresponding type code.

Most of the time you do not need to know much about the structure of type codes because the IDL compiler generates predefined type codes for you. Often the only operation you will need to perform on type codes is to make comparisons. Comparisons can be made using the operations ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.