1 #include
"tao/StringSeq.pidl"
5 const short BOUND
= 10;
6 const string FailStr
= "A string longer then Test::BOUND";
8 typedef string<BOUND
> bounded_string
;
10 typedef sequence
<bounded_string
> seq_bd_str
;
11 typedef sequence
<string<BOUND
> > seq_bds_str
;
13 typedef bounded_string arr_bd_str
[1];
14 typedef string<BOUND
> arr_bds_str
[1];
28 union unn
switch (string_field
) {
43 valuetype val_bd_str bounded_string
;
44 valuetype val_bds_str bounded_string
;
45 valuetype val_arr_bd_str arr_bds_str
;
49 public bounded_string b
;
50 public bounded_string c
;
62 bounded_string method
(in FailOn where
,
63 in bounded_string arg1
,
64 out bounded_string arg2
,
65 inout bounded_string arg3
);
66 bounded_string method_s
(in FailOn where
,
67 in bounded_string arg1
,
68 out bounded_string arg2
,
69 inout bounded_string arg3
);
70 // Operations on strings.
72 seq_bd_str seq_method
(in FailOn where
,
75 inout seq_bd_str arg3
);
76 seq_bds_str seq_method_s
(in FailOn where
,
79 inout seq_bds_str arg3
);
80 // Operations on sequences.
82 arr_bd_str arr_method
(in FailOn where
,
85 inout arr_bd_str arg3
);
86 arr_bds_str arr_method_s
(in FailOn where
,
89 inout arr_bds_str arg3
);
90 // Operations on arrays.
92 sct sct_method
(in FailOn where
,
96 // Operation on structs.
98 unn unn_method
(in FailOn where
,
102 // Operation on unions.
104 val_bd_str vbx_method
(in FailOn where
,
107 inout val_bd_str arg3
);
108 val_bds_str vbx_method_s
(in FailOn where
,
110 out val_bds_str arg2
,
111 inout val_bds_str arg3
);
112 // Operations on value boxes.
114 vtp vtp_method
(in FailOn where
,
118 // Operation on value types.
120 void exc_method
(in string_field f
)
122 // Operation that throws.
124 oneway
void shutdown
();