Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool5 / Foo.idl
blobc2fcd1377e610dd4e509cf8b158220059f6bba0c
1 #ifndef FOO_IDL
2 #define FOO_IDL
4 #include "Callback.idl"
6 exception FooException {};
7 exception TestException {};
9 typedef sequence<char, 32> Bounded_Var_Size;
10 typedef sequence<char> Unbounded_Var_Size;
11 typedef long Fixed_Array[20];
12 typedef string Var_Array [3];
13 typedef string<20> String_20;
15 struct TimeOfDay {
16 short hour; // 0 - 23
17 short minute; // 0 - 59
18 short second; // 0 - 59
20 interface Foo
22 /// void return-type, no arguments
23 void op1();
25 /// void return-type, 1 "in" argument
26 void op2(in long value);
28 /// long return-type, no arguments
29 long op3();
31 /// one-way version of op2
32 oneway void op4(in long value);
34 /// Operation that always raises an exception.
35 void op5() raises (FooException);
37 /// Operation with the inout parameter.
38 boolean op6(in string user_name,
39 inout string message);
41 oneway void test_unbounded_string_arg(in string message);
43 oneway void test_bounded_string_arg(in String_20 message);
45 oneway void test_fixed_array_arg(in Fixed_Array message);
47 oneway void test_var_array_arg(in Var_Array messages);
49 oneway void test_bounded_var_size_arg(in Bounded_Var_Size message);
51 oneway void test_unbounded_var_size_arg(in Unbounded_Var_Size message);
53 oneway void test_fixed_size_arg (in TimeOfDay t);
55 oneway void test_special_basic_arg(in boolean value);
57 oneway void test_objref_arg (in Callback cb);
59 void test_fixed_size_arg_two_way (in TimeOfDay t);
61 /// Operation with the object reference parameter.
62 void callback_object (in Callback cb);
64 /// Operation that invoke remote operation on
65 // callback object.
66 void test_callback () raises (FooException);
68 /// Client calls this last. It will shutdown the server.
69 void done();
73 #endif