Presentation is loading. Please wait.

Presentation is loading. Please wait.

Principles of Object-Oriented Software Development Interface Definition Language.

Similar presentations


Presentation on theme: "Principles of Object-Oriented Software Development Interface Definition Language."— Presentation transcript:

1 Principles of Object-Oriented Software Development Interface Definition Language

2 Introduction Example Types and values Operations and exceptioons Interfaces and inheritance Language bindings

3 Interface Definition Language modules -- for clustering interfaces -- correspond with objects attributes -- may be readonly operations -- best effort invocation exceptions -- for handling failure IDL Language bindings C, Smalltalk, C++, Java

4 Example module universe { universe.idl interface world { void hello(); void ask(in string x); string tell(); oneway void halt(); };

5 Types and values Basic Types integers, reals, booleans, enum, string, any Constructed Types struct, union, sequence, array, interface Object References interface + operations

6 Operations and exceptions Operations in, out, inout -- parameter attributes Exceptions exception out_of_range { long count; } interface writer { void position(in long pos) raises(out_of_range); }

7 Interfaces and inheritance no overriding, no overloading Multiple (interface) inheritance interface A { }; interface B { }; interface C : A { }; interface D : B, A { };

8 interface iterator { iterator Object next(); };

9 Language bindings types, references, access, ORB and BOA support The Object interface interface Object { PIDL InterfaceDef get_interface(); Object duplicate();... }


Download ppt "Principles of Object-Oriented Software Development Interface Definition Language."

Similar presentations


Ads by Google