#ifndef _STACK_IDL #define _STACK_IDL module StackModule { exception EmptyStack {}; interface Stack { long pop() raises(StackModule::EmptyStack); void push(in long value); void empty(); }; interface StackFactory { StackModule::Stack create_stack(); void destroy_stack(in StackModule::Stack s); }; }; #endif