Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / interop-tests / wchar / interop_wchar.idl
blob61964b7359020ddc0cf2424ee09ecabeb01b5aa8
1 // Tests for interoperability between TAO and JacORB for sending wchar data
2 // The CDR defines separate serialization functions for reading and writing
3 // wchar, wchar[] and wstring data. Encapsulated wchar data is also tested.
5 module interop {
6 typedef wchar warray[10];
8 struct wstruct {
9 wchar st_char;
10 wstring st_string;
11 warray st_array;
12 any st_any;
15 typedef sequence< wstruct > wstructseq;
17 enum wchar_types {is_wchar, is_wstring, is_warray};
19 union wunion switch (wchar_types) {
20 case is_wchar: wchar u_char;
21 case is_wstring: wstring u_string;
22 case is_warray: warray u_array;
25 interface WChar_Passer {
26 // The server and client for this test should both use a well known test
27 // data to allow individual string comparisons against reference strings.
28 // The separate test key value allows the tester to devise several strings,
29 // arrays, or wchar values that may be tested separately.
31 readonly attribute string orb_name;
33 boolean wchar_to_server (in wchar test, in short key);
34 wchar wchar_from_server (in short key);
36 boolean wstring_to_server (in wstring test, in short key);
37 wstring wstring_from_server (in short key);
39 boolean warray_to_server (in warray test, in short key);
40 warray warray_from_server (in short key);
42 boolean wstruct_to_server (in wstruct test, in short key);
43 wstruct wstruct_from_server (in short key);
45 boolean wstructseq_to_server (in wstructseq test, in short key);
46 wstructseq wstructseq_from_server (in short key);
48 boolean wunion_to_server (in wunion test, in short key);
49 wunion wunion_from_server (in short key, in wchar_types type);
51 boolean any_to_server (in any test, in short key);
52 any any_from_server (in short key, in wchar_types type);
54 any any_echo (in any test);
56 exception WStringException { wstring why; wchar whynot;};
57 void exception_test(in short key) raises (WStringException);
59 /// A method to shutdown the ORB
60 /**
61 * This method is used to simplify the test shutdown process
63 oneway void shutdown ();