CORBA 2.3.3 Programmer's Guide for C++ (NonStop CORBA 2.3.3+)

Note
If you change your .profile file, be sure to source it in for the changes to take effect.
IDL Compiler Syntax
Preliminary IDL Compiler Setup
The IDL compiler is a Java application packaged in the $NSD_ROOT/idl/nsdidl.jar file. This jar file contains all
necessary compiler class files. A reference to the nsdidl.jar file is normally added to the CLASSPATH environment
variable by env.sh. The CLASSPATH variable can also be manually modified using the following command:
export CLASSPATH=๎€$CLASSPATH:$NSD_ROOT/etc/nsdidl.jar๎€
nsdidl Compiler Syntax
The following line is the command-line syntax for running the IDL compiler. The IDL compiler is invoked with the
-language C++ option to generate C++ code. You can display help text by using the -? option.
For example, to invoke the compiler to generate C++ bindings, type the following command:
nsdidl -language C++ idlfile1[, idlfile2 ]...
Preprocessor Options
-D name
Define name as a macro, with definition '1'. This option is the same as if the -D name=1 option is used.
-D name=definition
Define name as a macro, with definition as the definition.
-I dir
Insert the specified directory name into the search path for #include files with names not beginning with a slash (/).
dir is inserted ahead of the standard list of include directories. You can specify dir more than once to add multiple
directories to the search path. The default is the current directory.
-U
Remove any definition of name (overrides any -D in the command line no matter where it appears).
IDL Code-Generation Options
-client qualifier
Specify the file name qualifier for generated client-side header and C++ source files. This client-side file name qualifier
is appended to the base IDL filename with an intervening underscore. The default is client.
-generate arg
Generate code corresponding to arg. Prefixing arg with no- reverses the sense of the option. By default, args are set
to off, but for new code you should set them on. arg can be any of the following:
exceptions
Generate code using native C++ language exceptions.
namespace
Generate code using the C++ namespace feature.
tie
Generate code to enable the tie or delegation mechanism. In addition to generating a skeleton class, the IDL