Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / OBV / ValueBox / valuebox.idl
blobccd9da6f193e14a0dc01c9fb579fbaecfccf813e
1 #include "vb_basic.idl"
2 #include "vb_struct.idl"
3 #include "vb_union.idl"
5 //
6 // Boxed Strings
7 //
8 valuetype VBstring string;
9 valuetype VBwstring wstring;
12 // Boxed Sequences
14 typedef sequence<long> TDseqlong;
15 valuetype VBseqlong TDseqlong;
18 // Boxed array ("fixed")
20 typedef long LongArray[3];
21 valuetype VBlongarray LongArray;
24 // Boxed array ("variable")
26 typedef string StringArray[2];
27 valuetype VBstringarray StringArray;
29 interface Test
31 // Boxed basic types
32 VBlong basic_op1(in VBlong p1, inout VBlong p2, out VBlong p3);
34 vb_basic::M_VBlong basic_op2(in vb_basic::M_VBlong p1,
35 inout vb_basic::M_VBlong p2,
36 out vb_basic::M_VBlong p3);
38 long basic_op3 (in long p1, inout long p2, out long p3);
40 // Boxed string
41 VBstring string_op1(in VBstring p1, inout VBstring p2, out VBstring p3);
43 string string_op2(in string p1, inout string p2, out string p3);
45 // Boxed sequence
46 VBseqlong seq_op1(in VBseqlong p1, inout VBseqlong p2,
47 out VBseqlong p3);
49 void seq_op2(in TDseqlong p1, inout TDseqlong p2, out TDseqlong p3);
51 // Boxed struct
52 VBfixed_struct1 struct_op1(in VBfixed_struct1 p1,
53 inout VBfixed_struct1 p2,
54 out VBfixed_struct1 p3);
56 void struct_op2(in Fixed_Struct1 p1,
57 inout Fixed_Struct1 p2,
58 out Fixed_Struct1 p3);
60 VBvariable_struct1 struct_op3(in VBvariable_struct1 p1,
61 inout VBvariable_struct1 p2,
62 out VBvariable_struct1 p3);
64 void struct_op4(in Variable_Struct1 p1,
65 inout Variable_Struct1 p2,
66 out Variable_Struct1 p3);
68 // Boxed array (fixed)
69 VBlongarray array_op1 (in VBlongarray p1, inout VBlongarray p2,
70 out VBlongarray p3);
72 void array_op2 (in LongArray p1, inout LongArray p2, out LongArray p3);
74 // Boxed array (variable)
75 VBstringarray array_op3 (in VBstringarray p1, inout VBstringarray p2,
76 out VBstringarray p3);
78 void array_op4 (in StringArray p1, inout StringArray p2,
79 out StringArray p3);
81 // Boxed union
82 VBfixed_union1 union_op1(in VBfixed_union1 p1,
83 inout VBfixed_union1 p2,
84 out VBfixed_union1 p3);
86 void union_op2(in Fixed_Union1 p1,
87 inout Fixed_Union1 p2,
88 out Fixed_Union1 p3);
90 VBvariable_union1 union_op3(in VBvariable_union1 p1,
91 inout VBvariable_union1 p2,
92 out VBvariable_union1 p3);
94 void union_op4(in Variable_Union1 p1,
95 inout Variable_Union1 p2,
96 out Variable_Union1 p3);
98 // Shutdown the remote ORB
99 oneway void shutdown ();