Previous Table of Contents Next


4.11 TypeCodes

   TypeCodes are values that represent invocation argument types and attribute types. They can be obtained from the Interface Repository or from IDL compilers.

   TypeCodes have a number of uses. They are used in the dynamic invocation interface to indicate the types of the actual arguments. They are used by an Interface Repository to represent the type specifications that are part of many OMG IDL declarations. Finally, they are crucial to the semantics of the any type.

   Abstractly, TypeCodes consist of a “kind? field, and a set of parameters appropriate for that kind. For example, the TypeCode describing OMG IDL type long has kind tk_long and no parameters. The TypeCode describing OMG IDL type sequence<boolean,10> has kind tk_sequence and two parameters: 10 and boolean.