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

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.