Header files

If you would like to use type X.Y.Z from C (package X, subpackage Y, class Z), 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.10.2
users_guide Last Modified 2005-03-23

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