IDL interface declarations

The Interface Definition Language (IDL) specification for a class of objects must contain a declaration of the interface these objects support.

IDL interfaces and types should be enclosed inside a module scope. IDL declared outside of a module scope takes up namespace in the global IDL namespace and risks having name collisions with names declared by other IDL developers. For more information, see "IDL name scoping".

When objects are implemented using classes, the interface name also is used as a class name. In addition to the interface name and its base interface names, an interface indicates new methods (operations) and any constants, type definitions, and exception structures that the interface exports.

An interface declaration has the following syntax:

interface  interface-name [: base-interface1, base-interface2, ...]  
{
   constant declarations
   type declarations
   exception declarations
   attribute declarations
   operation declarations
};

All of the declaration elements are optional and their order usually is not significant. However you must bear in mind the following considerations:

The base-interface names specify the interfaces from which interface-name is derived. Parent-interface names are required only for the immediate base interfaces. Each base interface must have its own IDL specification that must be referenced by a #include in the IDL file. A base interface cannot be named more than one time in the interface statement header.

The following topics describe the declaration elements that can be specified within the body of an interface declaration:


Related concepts
Interface Definition Language (IDL)
Related reference
IDL name scoping
IDL constant declarations
IDL type declarations
IDL exception declarations
IDL attribute declarations
IDL operation declarations



Searchable topic ID:   rcor_idlind
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_idlind.html

Library | Support | Terms of Use | Feedback