next up previous contents
Next: Mapping for classes, interfaces Up: C Bindings Previous: Basic Types   Contents

Header files

If you would like to use type X.Y.Z from C, you should #include "X_Y_Z.h". If you would like to include the header files for a whole package X.Y, you can #include "X_Y.h". For example, you can include all the types in the SIDL namespace with #include "SIDL.h".

Each client side header file will ensure that SIDL_header.h is included. SIDL_header.h 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.

In general, clients don't need to worry about including SIDL_header.h because the Babel generated header files will include it for you.





babel-0.8.6
users_guide Last Modified 2003-07-09

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