2 /// Put the interfaces in a module, to avoid global namespace pollution
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
;
18 short minute
; // 0 - 59
19 short second
; // 0 - 59
24 void test_method
(inout
unsigned long error_count
);
27 /// A very simple interface
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
,
58 void test_args_2
(in string arg1
,
62 void test_args_3
(in Bounded_String arg1
,
63 in Bounded_Var_Size_Arg arg2
,
64 in Unbounded_Var_Size_Arg arg3
,
69 /// A method to shutdown the ORB
71 * This method is used to simplify the test shutdown process
73 oneway
void shutdown
();