More tests update
[ACE_TAO.git] / TAO / tests / Bug_3524_Regression / test.idl
blobb4800229e6ec15c533c806ee1f0495c653f5c91e
1 module Test
3 const short BOUND = 10;
4 const string FailStr = "A string longer then Test::BOUND";
6 typedef string<BOUND> bounded_string;
8 typedef sequence<bounded_string> seq_bd_str;
9 typedef sequence<string<BOUND> > seq_bds_str;
11 typedef bounded_string arr_bd_str[1];
12 typedef string<BOUND> arr_bds_str[1];
14 struct sct {
15 string a;
16 bounded_string b;
17 bounded_string c;
20 enum string_field {
21 PLAIN,
22 BOUNDED,
23 TYPEDEFED
26 union unn switch (string_field) {
27 case BOUNDED:
28 bounded_string b;
29 case TYPEDEFED:
30 bounded_string c;
31 default:
32 string a;
35 exception exc {
36 string a;
37 bounded_string b;
38 bounded_string c;
41 valuetype val_bd_str bounded_string;
42 valuetype val_bds_str bounded_string;
43 valuetype val_arr_bd_str arr_bds_str;
45 valuetype vtp {
46 public string a;
47 public bounded_string b;
48 public bounded_string c;
51 interface A
53 enum FailOn {
54 ARG1,
55 ARG2,
56 ARG3,
57 RETN
60 bounded_string method (in FailOn where,
61 in bounded_string arg1,
62 out bounded_string arg2,
63 inout bounded_string arg3);
64 bounded_string method_s (in FailOn where,
65 in bounded_string arg1,
66 out bounded_string arg2,
67 inout bounded_string arg3);
68 // Operations on strings.
70 seq_bd_str seq_method (in FailOn where,
71 in seq_bd_str arg1,
72 out seq_bd_str arg2,
73 inout seq_bd_str arg3);
74 seq_bds_str seq_method_s (in FailOn where,
75 in seq_bds_str arg1,
76 out seq_bds_str arg2,
77 inout seq_bds_str arg3);
78 // Operations on sequences.
80 arr_bd_str arr_method (in FailOn where,
81 in arr_bd_str arg1,
82 out arr_bd_str arg2,
83 inout arr_bd_str arg3);
84 arr_bds_str arr_method_s (in FailOn where,
85 in arr_bds_str arg1,
86 out arr_bds_str arg2,
87 inout arr_bds_str arg3);
88 // Operations on arrays.
90 sct sct_method (in FailOn where,
91 in sct arg1,
92 out sct arg2,
93 inout sct arg3);
94 // Operation on structs.
96 unn unn_method (in FailOn where,
97 in unn arg1,
98 out unn arg2,
99 inout unn arg3);
100 // Operation on unions.
102 val_bd_str vbx_method (in FailOn where,
103 in val_bd_str arg1,
104 out val_bd_str arg2,
105 inout val_bd_str arg3);
106 val_bds_str vbx_method_s (in FailOn where,
107 in val_bds_str arg1,
108 out val_bds_str arg2,
109 inout val_bds_str arg3);
110 // Operations on value boxes.
112 vtp vtp_method (in FailOn where,
113 in vtp arg1,
114 out vtp arg2,
115 inout vtp arg3);
116 // Operation on value types.
118 void exc_method (in string_field f)
119 raises (exc);
120 // Operation that throws.
122 oneway void shutdown ();
123 // shutdown the ORB