// IDL // In file Shape.idl // typedef struct Rectangle{ long width; long height; long x; long y; } ; struct GraphicalObject { string type; Rectangle enclosing; boolean isFilled; }; interface Shape { long getVersion() ; GraphicalObject getAllState() ; }; typedef sequence All; interface ShapeList { exception FullException {}; Shape newShape(in GraphicalObject g) raises (FullException); All allShapes(); long getVersion() ; };