Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / twoway / Test.idl
blob8b6a4e73e3d808e2fafe3758357d803730015fba
2 /// Put the interfaces in a module, to avoid global namespace pollution
3 module Test
5 const unsigned long FIX_ARRAY_SIZE = 10;
6 const unsigned long VAR_ARRAY_SIZE = 3;
7 const unsigned long BOUNDED_STRING_SIZE = 10;
8 const unsigned long BOUNDED_VAR_SIZE = 10;
10 typedef sequence<char, BOUNDED_VAR_SIZE> Bounded_Var_Size_Arg;
11 typedef sequence<char> Unbounded_Var_Size_Arg;
12 typedef long Fixed_Array[FIX_ARRAY_SIZE];
13 typedef string Var_Array [VAR_ARRAY_SIZE];
14 typedef string<BOUNDED_STRING_SIZE> Bounded_String;
16 struct TimeOfDay {
17 short hour; // 0 - 23
18 short minute; // 0 - 59
19 short second; // 0 - 59
22 interface Simple_Test
24 void test_method(inout unsigned long error_count);
27 /// A very simple interface
28 interface Hello
30 void test_basic_arg(in long inval, out long outval);
32 void test_unbounded_string_arg(in string message);
34 void test_unbounded_string_arg_out(in string message, out string out_message);
36 void test_bounded_string_arg(in Bounded_String message);
38 void test_fixed_array_arg(in Fixed_Array message);
40 void test_var_array_arg(in Var_Array messages);
42 void test_bounded_var_size_arg(in Bounded_Var_Size_Arg message);
44 void test_unbounded_var_size_arg(in Unbounded_Var_Size_Arg message);
46 void test_fixed_size_arg (in TimeOfDay t);
48 void test_special_basic_arg(in char value);
50 void test_objref_arg (in Simple_Test test);
52 void test_object_arg (in Object o);
54 void test_args_1 (in Object arg1,
55 in char arg2,
56 in Simple_Test arg3);
58 void test_args_2 (in string arg1,
59 in Fixed_Array arg2,
60 in TimeOfDay arg3);
62 void test_args_3 (in Bounded_String arg1,
63 in Bounded_Var_Size_Arg arg2,
64 in Unbounded_Var_Size_Arg arg3,
65 in Var_Array arg4);
67 string get_string ();
69 /// A method to shutdown the ORB
70 /**
71 * This method is used to simplify the test shutdown process
73 oneway void shutdown ();