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
;
19 short minute
; // 0 - 59
20 short second
; // 0 - 59
25 void test_method
(inout
unsigned long error_count
);
28 /// A very simple interface
31 oneway
void test_basic_arg
(in long value
);
33 oneway
void test_unbounded_string_arg
(in string message);
35 oneway
void test_bounded_string_arg
(in Bounded_String
message);
37 oneway
void test_fixed_array_arg
(in Fixed_Array
message);
39 oneway
void test_var_array_arg
(in Var_Array messages
);
41 oneway
void test_bounded_var_size_arg
(in Bounded_Var_Size_Arg
message);
43 oneway
void test_unbounded_var_size_arg
(in Unbounded_Var_Size_Arg
message);
45 oneway
void test_fixed_size_arg
(in TimeOfDay t
);
47 oneway
void test_special_basic_arg
(in char value
);
49 oneway
void test_objref_arg
(in Simple_Test test
);
51 oneway
void test_object_arg
(in Object o
);
53 oneway
void test_args_1
(in Object arg1
,
57 oneway
void test_args_2
(in string arg1
,
61 oneway
void test_args_3
(in Bounded_String arg1
,
62 in Bounded_Var_Size_Arg arg2
,
63 in Unbounded_Var_Size_Arg arg3
,
66 /// Return a simple string
69 /// A method to shutdown the ORB
71 * This method is used to simplify the test shutdown process
73 oneway
void shutdown
();