Chapter 6. Basic IDL-to-C++ Mapping

6.1 Chapter Overview

This chapter explains how IDL types are mapped to their corresponding C++ types by an IDL compiler. Sections 6.3 to 6.8 cover identifiers, modules, and simple IDL types. Section 6.9 covers memory management issues related to variable-length types, and Section 6.10 presents detailed examples of memory management for strings. Sections 6.11 and 6.12 discuss the mapping for wide strings and fixed-point types. The mapping for user-defined complex types is covered in Sections 6.13 to 6.18. Section 6.19 shows how smart pointers can eliminate the need to take care of memory management.

This chapter does not cover all of the mapping. Chapter 7 presents the client-side mapping for operations and ...

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.