Sample IDL
The following IDL is used as a source of examples throughout the rest of the chapter. The module SampleTypes defines a selection of user-defined types and an interface Foo that passes some of these types back and forth.
Listing 4.1. IDL for Sample Data Types (04Listing01.idl)
// IDL // Sample Data Types #pragma prefix "pure-corba-3.com" module SampleTypes { enum Shape { Square, Circle, Triangle }; 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 fixed<6,2> Money; union Poly switch(short) ... |
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.