Bindings generation

To create the C++ stubs from a SIDL file, invoke Babel as follows8.1$:$

% babel -exclude-external -client=UC++ file.sidl
or simply
% babel -E -cUC++ file.sidl

This will create a babel.make file, some C headers and sources, and many C++ headers and sources. Files ending in ``.c'' or ``.h'' are in C, files ending in ``.cxx'' or ``.hxx'' are the UC++ binding. The files will need to be compiled and linked together to use the C++ stubs.

There is one command line option particular to this language binding. Using the option -cxx-ior-exception (or it's short form -x) will generate C++ Babel stubs that check for a null IOR whenever a method is called on them. If a method is called on a stub holding a null IOR, it will throw a NullIORException. If this option is not passed to Babel, the program will simply crash, as C++ would do normally with a null pointer.



babel-1.4.0
users_guide Last Modified 2008-10-16

http://www.llnl.gov/CASC/components
components@llnl.gov