The omniidl command invokes the omniORB idl compiler. It takes CORBA IDL
definitions from the input file(s) and produces C++ stubs. For each input
file, two files are produced: a header and a stub. Together they provide the
basis to implement CORBA objects with interfaces defined in the IDL
definitions. By default, these files are named by appending suffix
.hh
and
SK.cc
to the base name of the input respectively. These suffixes can be changed
by command line options (see below).
If option
-a
is specified then a third file is generated (with default suffix
DynSK.cc
) which contains code for TypeCodes and type Any.
This idl compiler produces stubs that conform to the IDL to C++ language
mapping defined by the CORBA specification version 2.0.
The input files are processed by the CPP preprocessor before they are
parsed by the compiler.
OPTIONS
-N
Do not run preprocessor
-b<backend>
defines backend to use (e.g., -bcxx = C++ back-end, -bpython = Python stubs)
-nf
Do not warn about unresolved forward declarations
-k
Comments after declarations are kept for the back-ends
-K
Comments before declarations are kept for the back-ends
-C<dir>
Change directory to dir before writing output
-d
Dump the parsed IDL then exit
-p<dir>
Path to omniidl back-ends ($TOP/lib/python).
-V
prints version information and exits
-Wbtp
Produce tie implementation skeletons
-Wbtf
Generate flattened tie implementation skeletons
-Wbh=<suffix>
Specify suffix for generated header files
-Wbs=<suffix>
Specify suffix for generated stub files
-Wba
Generate code for TypeCodes and Any
-WbF
Generate code fragments (for expert only)
-Wbold_prefix
Map C++ reserved words with prefix
-Wbboa
Generate BOA skeletons (_sk_foo). By default, only POA skeletons
are generated.
-Wbold
Use pre-CORBA 2.2 mappings for skeleton operations
-Wbd=<suffix>
Changes the DynSK.cc file suffix
-Wbsplice-modules
Splice together multiply opened modules into one
-Wbexample
Generate example implementation code
-Wbkeep_inc_path
Preserve IDL #include path in generated C++ header