Chapter 15. C++ Mapping for Type any

15.1 Chapter Overview

This chapter covers the C++ mapping for the IDL type any. Section 15.2 presents the basic ideas behind this universal container type, and Section 15.3 shows how any maps to C++ for the different IDL data types.

To store its data, type any relies on a run-time description known as a type code. Type codes are covered in detail in Chapter 16. In addition, CORBA offers an interface that allows dynamic composition and decomposition of any values at run time without requiring compile-time knowledge of the IDL. This interface, called DynAny, is covered in Chapter 17.

15.2 Introduction

The IDL type any provides a universal type that can hold a value of arbitrary IDL type. Type any therefore ...

Get Advanced CORBA® Programming with C++ 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.