IDL Syntax of Interfaces

An interface is the fundamental building block of OMG IDL. There are two basic flavors described here: ordinary interfaces that can be implemented by anyone and pseudo-interfaces that can be implemented only by ORB vendors.


Interfaces contain the declarations of operations and attributes. That is their most important feature. They can also contain other kinds of declarations. The entities that can be contained in an interface are

  • Attribute declarations

  • Operation declarations

  • Exception declarations

  • Type declarations

  • Constant declarations

For example, the following interface illustrates these kinds of declarations:

// IDL interface SquareGrid { // Constant declarations const long MAX_HEIGHT = 1000; const long MAX_WIDTH ...

Get Pure CORBA now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.