Use of CORBA::DynAny and CORBA::TypeCode

The absence of stub code, apart from forcing you to consult the interface repository, has other important consequences. Stub code also provides the following useful classes:

  • Type codes for user-defined data types.

  • Classes that represent each of the user-defined types. These classes encapsulate the memory layout of user-defined types.

In the absence of stub code, it is very difficult to manipulate user-defined types. To cope with user-defined types, you must use the dynamic features CORBA::TypeCode and DynamicAny::DynAny.

  • Type codes can be created dynamically with the help of a set of operations defined in CORBA::ORB. Operations of the general form CORBA::ORB::create_type_tc are used to create type codes ...

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.