All Manuals > Developing Component Software with CORBA > 4 Writing and Compiling IDL

NextPrevUpTopContentsIndex

4.1 Designing the IDL

The first step in developing a CORBA application is to define the interfaces to its distributed application objects. We can define these interfaces using the CORBA Interface Definition Language (IDL).

Essentially, the IDL specification of an interface lists the names and types of operations that:

Our application manages three types of CORBA object, representing accounts, checking accounts, and banks. We declare the interfaces to all three objects within the same CORBA module, BankingDemo :

module BankingDemo { 
  interface account { 
    // details follow 
  }; 
  interface checkingAccount : account { 
    // details follow 
  }; 
  interface bank { 
    // details follow 
  }; 
}; 

The following subsections describe the IDL declarations for each of the three interfaces. You can find the complete IDL description for the bank demo in the examples folder, under

examples/corba/bank/bank.idl

4.1.1 IDL for the account interface

4.1.2 IDL for the checkingAccount interface

4.1.3 IDL for the bank interface


Developing Component Software with CORBA - 29 Jul 2010

NextPrevUpTopContentsIndex