Next: Mapping for classes, interfaces,
Up: C Bindings
Previous: Basic Types
Contents
Index
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:
- struct sidl_dcomplex for the SIDL dcomplex type with
parts named real and imaginary;
- struct sidl_fcomplex for the SIDL fcomplex type with
parts named real and imaginary;
- int32_t and int64_t for the SIDL int and long
types;
- a typedef for sidl_bool for the SIDL bool type;
- preprocessor symbols TRUE and FALSE; and
- 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.99.0
users_guide Last Modified 2006-06-27
http://www.llnl.gov/CASC/components
components@llnl.gov