next up previous contents
Next: Building Portable Software Up: Command Line Options Previous: Long and Short Forms   Contents

Examples

To create a new XML version of a SIDL file, you are free to use the following deprecated command:

% babel -x -omydepot mystuff.sidl

However, it would be better if you got used to using the new version:

% babel -tXML -omydepot mystuff.sidl

To exclude code generation for types whose name begins with ``MPI.'', use the following command:

% babel -sC++ -exclude='^MPI$\backslash$.' mystuff.sidl

Now suppose a developer wants to implement a library in C++ that corresponds to these types in the SIDL file.

% babel -sC++ mystuff.sidl

Alternatively, the developer could also create C++ implementation files based on the XML repository. In this case, a list of symbols to be implemented would need to be specified. Assuming that all of the types are in a package called ``mystuff'', the following command can be issued:

% babel -sC++ -Rmydepot mystuff

Now suppose a second developer wants to extend this software. A second SIDL file is created then the implementation files in FORTRAN 90 are generated with the following command:

% babel -sf90 -Rmydepot newstuff.sidl

Finally, a user can download both SIDL files and create their Python bindings to use both libraries with the following command:

% babel -cPython -Rhttp://localhost/mystuff/mydepot;http://www.otherhost.com/newstuff mystuff newstuff

To generate SIDL files for each package based on the XML stored in the repository, the following command command is used:

% babel -tSIDL -Rhttp://localhost/mystuff/mydepot;http://www.otherhost.com/newstuff mystuff newstuff


next up previous contents
Next: Building Portable Software Up: Command Line Options Previous: Long and Short Forms   Contents


babel-0.8.4
users_guide Last Modified 2003-04-03

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