Summary

This chapter has covered the syntax and semantics of insertion into and extraction from the any type. To use the any type effectively, you also need to have some understanding of CORBA type codes. The following aspects of type codes were discussed in this chapter:

  • Type code constants

  • Comparison of type codes

The contents of an any can easily be checked by examining its type() field.

The use of the any type in this chapter is restricted to cases in which you have stub code to support the data types contained in the any. There are applications, however, that need to manipulate the any’s contents even without stub code. The DynamicAny module is provided by CORBA for this sort of application. It is discussed in detail in Chapter 20.

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.