Next Prev Up Top Contents Index

2.1.2 Generating the stub and skeleton code from IDL

We need the IDL parser to parse the IDL to generate appropriate stubs and skeletons. We do this by including the IDL file in the defsystem that defines the code we are writing. For Hello World, the relevant defsystem is:

(defsystem hello-world-corba-object ()
  :members (
            ("hello-world" :type :idl-file)))

The defsystem utility has been extended to correctly handle a file of type idl-file . In this case, the fasl corresponding to the IDL file contains the compiled stubs and skeletons for the given IDL and is generated when we compile the system.

To create a defsystem file for the Hello World application:

  1. Create a defsystem file called defsys.lisp .
  2. Enter the following Lisp code into the defsys.lisp file:
  3. (in-package "CL-USER") (require "corba-orb")
    (defsystem hello-world-corba-object ()
      :members (
                ("hello-world" :type :idl-file)
                ))
    :rules ((:in-order-to :compile "all
             (:requires (:load :previous)))))
  4. Save and close the defsystem file.

When it comes time to run the application, stubs and skeletons will be generated.


Developing Component Software with CORBA - 14 Dec 2001

Next Prev Up Top Contents Index