A Sample IDL Module
For the sections that follow it is helpful to have a sample of CORBA data types at hand to illustrate insertion from and extraction to an any. The IDL module SampleTypes, seen in Listing 8.1, declares a representative set of types—this is essentially the same set as used in Chapter 4, “Memory Management.”
Listing 8.1. Sample IDL Data Types Used by any Examples
// IDL #pragma prefix "pure-corba-3.com" module SampleTypes { typedef string< 64 > BoundedString; typedef wstring< 128 > BoundedWString; struct FixLen { short theShort; float theFloat; }; struct VarLen { string theString; long theLong; }; typedef sequence< FixLen > SeqOfFixLen; typedef sequence< VarLen > SeqOfVarLen; typedef sequence< VarLen, 5 > BSeqOfVarLen; typedef ... |
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.