next up previous contents index
Next: Object management Up: Client-side Previous: Bindings generation   Contents   Index


Header files

The hierarchical nature of SIDL packages lends itself to multiple options for including enumerations, interfaces, and classes. The naming convention for associated header files uses underscore-separated parts corresponding to the package hierarchy. That is, type X.Y.Z -- where X is the name of the package, Y the subpackage, and Z the class -- is included with #include "X_Y_Z.h". The header files for the whole subpackage, X.Y, are included with #include "X_Y.h". For instance, all types in the sidl name space are included in #include "sidl.h".

Babel ensures each generated client-side header file automatically includes sidl_header.h, which defines$:$

  1. struct sidl_dcomplex for the SIDL dcomplex type with parts named real and imaginary;
  2. struct sidl_fcomplex for the SIDL fcomplex type with parts named real and imaginary;
  3. int32_t and int64_t for the SIDL int and long types;
  4. a typedef for sidl_bool for the SIDL bool type;
  5. preprocessor symbols TRUE and FALSE; and
  6. function prototypes for the multi-dimensional array APIs for the basic SIDL types.


next up previous contents index
Next: Object management Up: Client-side Previous: Bindings generation   Contents   Index


babel-1.0.0
users_guide Last Modified 2006-07-21

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