O'Reilly logo

Advanced CORBA® Programming with C++ by Steve Vinoski, Michi Henning

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Type DynAny

17.1 Chapter Overview

This chapter discusses the DynAny interface and its derived interfaces. The DynAny interface permits you to compose and decompose complex values at run time even without compile-time knowledge of the IDL definitions involved. Section 17.3 presents the IDL and functionality for DynAny and its derived types. Section 17.4 explains how to use DynAny from C++, and Sections 17.5 and 17.6 present a few applications of DynAny.

17.2 Introduction

As you saw in Chapters 15 and 16, to insert a user-defined value into an Any you must have compile-time knowledge of the corresponding IDL type because to insert a value into an Any, you must use the corresponding overloaded <= operator generated by the IDL compiler. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required