aaronp-zomg 1.0.2.20080827232412
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +25 -0
- data/Manifest.txt +238 -0
- data/README.txt +59 -0
- data/Rakefile +43 -0
- data/bin/omfg +56 -0
- data/lib/scanner.rex +169 -0
- data/lib/yacc.y +861 -0
- data/lib/zomg.rb +22 -0
- data/lib/zomg/idl.rb +14 -0
- data/lib/zomg/idl/nodes/attribute.rb +15 -0
- data/lib/zomg/idl/nodes/binary.rb +19 -0
- data/lib/zomg/idl/nodes/constant.rb +15 -0
- data/lib/zomg/idl/nodes/interface.rb +13 -0
- data/lib/zomg/idl/nodes/interface_header.rb +14 -0
- data/lib/zomg/idl/nodes/member.rb +14 -0
- data/lib/zomg/idl/nodes/node.rb +54 -0
- data/lib/zomg/idl/nodes/operation.rb +17 -0
- data/lib/zomg/idl/nodes/parameter.rb +18 -0
- data/lib/zomg/idl/nodes/typedef.rb +13 -0
- data/lib/zomg/idl/nodes/union.rb +14 -0
- data/lib/zomg/idl/parser.rb +54 -0
- data/lib/zomg/idl/visitable.rb +15 -0
- data/lib/zomg/idl/visitors/duhr.rb +24 -0
- data/lib/zomg/idl/visitors/ruby_sexp.rb +204 -0
- data/lib/zomg/idl/visitors/sexp.rb +274 -0
- data/lib/zomg/version.rb +3 -0
- data/test/assets/array/array1.idl +60 -0
- data/test/assets/array/array2.idl +38 -0
- data/test/assets/array/array3.idl +8 -0
- data/test/assets/array/array4.idl +7 -0
- data/test/assets/array/array5.idl +80 -0
- data/test/assets/attribute/grid_0attribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_0methods.idl +19 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_1methods.idl +19 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_2methods.idl +17 -0
- data/test/assets/attribute/grid_1ROattribs_1methods.idl +16 -0
- data/test/assets/attribute/grid_1ROattribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_1attribs_1methods.idl +17 -0
- data/test/assets/attribute/grid_1attribs_2methods.idl +17 -0
- data/test/assets/attribute/grid_2ROattribs_0methods.idl +16 -0
- data/test/assets/attribute/grid_2ROattribs_1methods.idl +16 -0
- data/test/assets/attribute/grid_2ROattribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_2attribs_0methods.idl +19 -0
- data/test/assets/attribute/grid_2attribs_1methods.idl +19 -0
- data/test/assets/attribute/grid_2attribs_2methods.idl +19 -0
- data/test/assets/comment/c_style_comments.idl +63 -0
- data/test/assets/comment/comment1.idl +57 -0
- data/test/assets/comment/cpp_style_comments.idl +168 -0
- data/test/assets/comment/shortform.idl +0 -0
- data/test/assets/complex/TestCodeSets.idl +10 -0
- data/test/assets/complex/TestIntfContext.idl +13 -0
- data/test/assets/complex/TestIntfLongLong.idl +51 -0
- data/test/assets/complex/TestIntfWChar.idl +52 -0
- data/test/assets/complex/any1.idl +22 -0
- data/test/assets/complex/complex1.idl +495 -0
- data/test/assets/complex/complex2.idl +730 -0
- data/test/assets/complex/complex3.idl +181 -0
- data/test/assets/complex/complex4.idl +181 -0
- data/test/assets/complex/interop_wchar.idl +60 -0
- data/test/assets/constant/constant1.idl +37 -0
- data/test/assets/constant/constant2.idl +29 -0
- data/test/assets/constant/constant3.idl +50 -0
- data/test/assets/constant/constant4.idl +21 -0
- data/test/assets/constant/constant5.idl +65 -0
- data/test/assets/constant/constant6.idl +144 -0
- data/test/assets/constant/constant7.idl +30 -0
- data/test/assets/enum/enum1.idl +13 -0
- data/test/assets/exception/TestIntfExceptions.idl +69 -0
- data/test/assets/exception/TestIntfExceptionsExt_2_0.idl +34 -0
- data/test/assets/exception/TestIntfExceptionsExt_2_3.idl +24 -0
- data/test/assets/exception/ex1.idl +6 -0
- data/test/assets/exception/ex2.idl +18 -0
- data/test/assets/exception/ex3.idl +10 -0
- data/test/assets/exception/ex4.idl +20 -0
- data/test/assets/exception/sc.idl +0 -0
- data/test/assets/exception/simple1.idl +18 -0
- data/test/assets/exception/simple2.idl +25 -0
- data/test/assets/factory/factory1.idl +77 -0
- data/test/assets/factory/objref.idl +25 -0
- data/test/assets/forward/forward.idl +15 -0
- data/test/assets/forward/forward1.idl +13 -0
- data/test/assets/forward/fwd_incl1.idl +6 -0
- data/test/assets/forward/fwd_incl2.idl +7 -0
- data/test/assets/include/a.idl +23 -0
- data/test/assets/include/b.idl +16 -0
- data/test/assets/include/employee.idl +12 -0
- data/test/assets/include/include1.idl +10 -0
- data/test/assets/include/include2.idl +5 -0
- data/test/assets/include/manager.idl +10 -0
- data/test/assets/include/pragma.idl +41 -0
- data/test/assets/include/rookie.idl +13 -0
- data/test/assets/include/rookiemanager.idl +15 -0
- data/test/assets/include/sample.idl +58 -0
- data/test/assets/include/sample_incl.idl +406 -0
- data/test/assets/inherit/IDL1.idl +18 -0
- data/test/assets/inherit/IDL2.idl +18 -0
- data/test/assets/inherit/IDL3.idl +18 -0
- data/test/assets/inherit/IDL4.idl +17 -0
- data/test/assets/inherit/diamond_inheritance.idl +31 -0
- data/test/assets/inherit/inherit.idl +27 -0
- data/test/assets/limit/longidentifiers.idl +25 -0
- data/test/assets/limit/namelens.idl +26 -0
- data/test/assets/limit/tpztest.idl +21 -0
- data/test/assets/module/module1.idl +29 -0
- data/test/assets/module/module2.idl +34 -0
- data/test/assets/module/module3.idl +20 -0
- data/test/assets/module/module4.idl +15 -0
- data/test/assets/nested/nested1.idl +5 -0
- data/test/assets/nested/nested2.idl +11 -0
- data/test/assets/operations/Benchmark.idl +331 -0
- data/test/assets/operations/CCS.idl +82 -0
- data/test/assets/operations/TestIntf.idl +40 -0
- data/test/assets/operations/TestIntfBasic.idl +653 -0
- data/test/assets/operations/atomic.idl +40 -0
- data/test/assets/operations/dif2.idl +48 -0
- data/test/assets/operations/interface1.idl +16 -0
- data/test/assets/operations/parameters.idl +111 -0
- data/test/assets/operations/perf.idl +84 -0
- data/test/assets/operations/timer.idl +104 -0
- data/test/assets/preprocess/base_for_diamond_inheritance_with_macros.idl +17 -0
- data/test/assets/preprocess/basic_macro_marshalling.idl +54 -0
- data/test/assets/preprocess/diamond_inheritance_with_macros.idl +74 -0
- data/test/assets/preprocess/macro1.idl +52 -0
- data/test/assets/preprocess/preprocess1.idl +246 -0
- data/test/assets/preprocess/preprocess2.idl +3 -0
- data/test/assets/recursion/loop.idl +28 -0
- data/test/assets/recursion/recursion1.idl +47 -0
- data/test/assets/recursion/recursion2.idl +74 -0
- data/test/assets/scenarios/filestat.idl +69 -0
- data/test/assets/scenarios/gateway.idl +176 -0
- data/test/assets/scenarios/library.idl +20 -0
- data/test/assets/scenarios/phone.idl +24 -0
- data/test/assets/scenarios/ticketservice.idl +118 -0
- data/test/assets/scope/scope01.idl +58 -0
- data/test/assets/scope/scope02.idl +25 -0
- data/test/assets/scope/scope03.idl +22 -0
- data/test/assets/scope/scope04.idl +27 -0
- data/test/assets/scope/scope05.idl +30 -0
- data/test/assets/scope/scope06.idl +51 -0
- data/test/assets/scope/scope07.idl +20 -0
- data/test/assets/scope/scope08.idl +88 -0
- data/test/assets/scope/scope09.idl +21 -0
- data/test/assets/scope/scope10.idl +95 -0
- data/test/assets/scope/scope11.idl +62 -0
- data/test/assets/scope/scope12.idl +117 -0
- data/test/assets/scope/scope13.idl +117 -0
- data/test/assets/scope/scope14.idl +117 -0
- data/test/assets/scope/scope15.idl +117 -0
- data/test/assets/scope/scope16.idl +117 -0
- data/test/assets/scope/scope17.idl +117 -0
- data/test/assets/scope/scope18.idl +117 -0
- data/test/assets/scope/scope19.idl +117 -0
- data/test/assets/scope/scope20.idl +215 -0
- data/test/assets/scope/scope21.idl +215 -0
- data/test/assets/scope/scope22.idl +205 -0
- data/test/assets/scope/scope23.idl +261 -0
- data/test/assets/scope/scope24.idl +376 -0
- data/test/assets/scope/scope25.idl +266 -0
- data/test/assets/scope/scope26.idl +180 -0
- data/test/assets/scope/scope27.idl +184 -0
- data/test/assets/scope/scope28.idl +182 -0
- data/test/assets/scope/scope29.idl +182 -0
- data/test/assets/scope/scope30.idl +40 -0
- data/test/assets/scope/scope31.idl +33 -0
- data/test/assets/scope/scope32.idl +37 -0
- data/test/assets/scope/scope33.idl +50 -0
- data/test/assets/scope/scope34.idl +97 -0
- data/test/assets/scope/scope35.idl +72 -0
- data/test/assets/scope/scope36.idl +167 -0
- data/test/assets/scope/scope37.idl +57 -0
- data/test/assets/scope/scope38.idl +38 -0
- data/test/assets/scope/scope39.idl +38 -0
- data/test/assets/scope/scope40.idl +38 -0
- data/test/assets/scope/scope41.idl +24 -0
- data/test/assets/scope/scope42.idl +64 -0
- data/test/assets/scope/scope43.idl +66 -0
- data/test/assets/scope/scope44.idl +52 -0
- data/test/assets/sequence/sequence1.idl +24 -0
- data/test/assets/sequence/sequence2.idl +9 -0
- data/test/assets/simple/basictypes1.idl +80 -0
- data/test/assets/simple/basictypes2.idl +197 -0
- data/test/assets/simple/basictypes3.idl +23 -0
- data/test/assets/simple/basictypes4.idl +73 -0
- data/test/assets/simple/basictypes5.idl +29 -0
- data/test/assets/simple/basictypes6.idl +63 -0
- data/test/assets/simple/simple1.idl +45 -0
- data/test/assets/simple/simple2.idl +61 -0
- data/test/assets/simple/simple3.idl +36 -0
- data/test/assets/string/string1.idl +11 -0
- data/test/assets/string/string2.idl +29 -0
- data/test/assets/struct/struct1.idl +20 -0
- data/test/assets/struct/struct2.idl +21 -0
- data/test/assets/struct/struct3.idl +42 -0
- data/test/assets/struct/struct4.idl +57 -0
- data/test/assets/struct/struct5.idl +71 -0
- data/test/assets/typecode/orb.idl +0 -0
- data/test/assets/typecode/pseudo.idl +25 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideIF.idl +17 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideIF_noMO.idl +16 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideMO.idl +17 -0
- data/test/assets/typedef/shorthand_typedef_struct_outsideMO.idl +17 -0
- data/test/assets/typedef/typedef1.idl +8 -0
- data/test/assets/typedef/typedef2.idl +22 -0
- data/test/assets/typedef/typedef_struct_insideIF.idl +18 -0
- data/test/assets/typedef/typedef_struct_insideMO.idl +18 -0
- data/test/assets/typedef/typedef_struct_outsideMO.idl +18 -0
- data/test/assets/union/union1.idl +31 -0
- data/test/assets/union/union2.idl +22 -0
- data/test/assets/union/union3.idl +26 -0
- data/test/conversions/test_attribute.rb +46 -0
- data/test/conversions/test_enum.rb +25 -0
- data/test/conversions/test_exception.rb +24 -0
- data/test/conversions/test_forward_declaration.rb +22 -0
- data/test/conversions/test_interface.rb +30 -0
- data/test/conversions/test_module.rb +24 -0
- data/test/conversions/test_struct.rb +25 -0
- data/test/conversions/test_typedef.rb +22 -0
- data/test/conversions/test_union.rb +27 -0
- data/test/conversions/test_value_box_dcl.rb +22 -0
- data/test/helper.rb +23 -0
- data/test/simple/test_basictypes1.rb +87 -0
- data/test/simple/test_basictypes2.rb +18 -0
- data/test/simple/test_basictypes3.rb +32 -0
- data/test/simple/test_basictypes4.rb +25 -0
- data/test/simple/test_basictypes5.rb +17 -0
- data/test/simple/test_basictypes6.rb +19 -0
- data/test/simple/test_simple1.rb +40 -0
- data/test/simple/test_simple2.rb +48 -0
- data/test/simple/test_simple3.rb +20 -0
- data/test/test_array.rb +22 -0
- data/test/test_assets.rb +33 -0
- data/test/test_complex.rb +17 -0
- data/test/test_node.rb +16 -0
- data/test/test_parser.rb +17 -0
- data/test/test_scanner.rb +234 -0
- metadata +334 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
union Broadbeans switch (unsigned short) {
|
4
|
+
case 521:
|
5
|
+
float ButterBean;
|
6
|
+
case 298:
|
7
|
+
double Cinnamon;
|
8
|
+
case 57:
|
9
|
+
long BreadFruit;
|
10
|
+
case 9875:
|
11
|
+
short BambooShoot;
|
12
|
+
case 7667:
|
13
|
+
unsigned long Fennell;
|
14
|
+
case 12:
|
15
|
+
unsigned short Pineapple;
|
16
|
+
case 76:
|
17
|
+
char Radish;
|
18
|
+
case 23:
|
19
|
+
boolean Damsons;
|
20
|
+
default :
|
21
|
+
octet Mullberry;
|
22
|
+
};
|
23
|
+
|
24
|
+
interface idlServer {
|
25
|
+
|
26
|
+
exception BroadbeansExcpt{
|
27
|
+
::Broadbeans ex1;
|
28
|
+
};
|
29
|
+
|
30
|
+
attribute ::Broadbeans BroadbeansAttr;
|
31
|
+
|
32
|
+
::Broadbeans BroadbeansOp(
|
33
|
+
in ::Broadbeans p1,
|
34
|
+
out ::Broadbeans p2,
|
35
|
+
inout ::Broadbeans p3
|
36
|
+
) raises (BroadbeansExcpt);
|
37
|
+
};
|
38
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
union Broadbeans switch (char) {
|
4
|
+
case 'a':
|
5
|
+
float ButterBean;
|
6
|
+
case 'z':
|
7
|
+
double Cinnamon;
|
8
|
+
default :
|
9
|
+
long BreadFruit;
|
10
|
+
case '!':
|
11
|
+
short BambooShoot;
|
12
|
+
case '\0':
|
13
|
+
unsigned long Fennell;
|
14
|
+
case 'S':
|
15
|
+
unsigned short Pineapple;
|
16
|
+
case 'R':
|
17
|
+
char Radish;
|
18
|
+
case 's':
|
19
|
+
boolean Damsons;
|
20
|
+
case 'E':
|
21
|
+
octet Mullberry;
|
22
|
+
};
|
23
|
+
|
24
|
+
interface idlServer {
|
25
|
+
|
26
|
+
exception BroadbeansExcpt{
|
27
|
+
::Broadbeans ex1;
|
28
|
+
};
|
29
|
+
|
30
|
+
attribute ::Broadbeans BroadbeansAttr;
|
31
|
+
|
32
|
+
::Broadbeans BroadbeansOp(
|
33
|
+
in ::Broadbeans p1,
|
34
|
+
out ::Broadbeans p2,
|
35
|
+
inout ::Broadbeans p3
|
36
|
+
) raises (BroadbeansExcpt);
|
37
|
+
};
|
38
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
union Broadbeans switch (boolean) {
|
4
|
+
case TRUE:
|
5
|
+
float ButterBean;
|
6
|
+
case FALSE:
|
7
|
+
unsigned long Fennell;
|
8
|
+
};
|
9
|
+
|
10
|
+
interface idlServer {
|
11
|
+
|
12
|
+
exception BroadbeansExcpt{
|
13
|
+
::Broadbeans ex1;
|
14
|
+
};
|
15
|
+
|
16
|
+
attribute ::Broadbeans BroadbeansAttr;
|
17
|
+
|
18
|
+
::Broadbeans BroadbeansOp(
|
19
|
+
in ::Broadbeans p1,
|
20
|
+
out ::Broadbeans p2,
|
21
|
+
inout ::Broadbeans p3
|
22
|
+
) raises (BroadbeansExcpt);
|
23
|
+
};
|
24
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
union Broadbeans switch (
|
4
|
+
enum Fennell{
|
5
|
+
UgliFruit,
|
6
|
+
Chickpea,
|
7
|
+
Waterchestnut,
|
8
|
+
Cress,
|
9
|
+
BambooShoot,
|
10
|
+
BeechNut,
|
11
|
+
KidneyBean,
|
12
|
+
Onion,
|
13
|
+
Sweetcorn,
|
14
|
+
LolloRossa,
|
15
|
+
CantelopeMelon,
|
16
|
+
Zucchini,
|
17
|
+
Shallots
|
18
|
+
}
|
19
|
+
) {
|
20
|
+
case ::Broadbeans::UgliFruit :
|
21
|
+
float ButterBean;
|
22
|
+
case ::Broadbeans::Chickpea :
|
23
|
+
unsigned long Fig;
|
24
|
+
case ::Broadbeans::Waterchestnut :
|
25
|
+
double Cinnamon;
|
26
|
+
case ::Broadbeans::BambooShoot :
|
27
|
+
long BreadFruit;
|
28
|
+
case ::Broadbeans::BeechNut :
|
29
|
+
long Tarragon;
|
30
|
+
case ::Broadbeans::Sweetcorn :
|
31
|
+
unsigned short Pineapple;
|
32
|
+
case ::Broadbeans::LolloRossa :
|
33
|
+
unsigned short RedPepper;
|
34
|
+
case ::Broadbeans::CantelopeMelon :
|
35
|
+
char Radish;
|
36
|
+
};
|
37
|
+
|
38
|
+
interface idlServer {
|
39
|
+
|
40
|
+
exception BroadbeansExcpt{
|
41
|
+
::Broadbeans ex1;
|
42
|
+
};
|
43
|
+
|
44
|
+
attribute ::Broadbeans BroadbeansAttr;
|
45
|
+
|
46
|
+
::Broadbeans BroadbeansOp(
|
47
|
+
in ::Broadbeans p1,
|
48
|
+
out ::Broadbeans p2,
|
49
|
+
inout ::Broadbeans p3
|
50
|
+
) raises (BroadbeansExcpt);
|
51
|
+
|
52
|
+
exception FennellExcpt{
|
53
|
+
::Broadbeans::Fennell ex1;
|
54
|
+
};
|
55
|
+
|
56
|
+
attribute ::Broadbeans::Fennell FennellAttr;
|
57
|
+
|
58
|
+
::Broadbeans::Fennell FennellOp(
|
59
|
+
in ::Broadbeans::Fennell p1,
|
60
|
+
out ::Broadbeans::Fennell p2,
|
61
|
+
inout ::Broadbeans::Fennell p3
|
62
|
+
) raises (FennellExcpt);
|
63
|
+
};
|
64
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
typedef long Apple;
|
4
|
+
|
5
|
+
union Broadbeans switch (Apple) {
|
6
|
+
case 521:
|
7
|
+
float ButterBean;
|
8
|
+
case 298:
|
9
|
+
double Cinnamon;
|
10
|
+
case 57:
|
11
|
+
long BreadFruit;
|
12
|
+
case 2436:
|
13
|
+
long Tarragon;
|
14
|
+
case 9875:
|
15
|
+
short BambooShoot;
|
16
|
+
default :
|
17
|
+
short BeechNut;
|
18
|
+
case 7667:
|
19
|
+
unsigned long Fennell;
|
20
|
+
case 765:
|
21
|
+
unsigned long Beetroot;
|
22
|
+
case 12:
|
23
|
+
unsigned short Pineapple;
|
24
|
+
case 98:
|
25
|
+
unsigned short RedPepper;
|
26
|
+
case 76:
|
27
|
+
char Radish;
|
28
|
+
case 67:
|
29
|
+
char Susander;
|
30
|
+
case 75:
|
31
|
+
boolean Damsons;
|
32
|
+
case 125:
|
33
|
+
boolean GreenGrapes;
|
34
|
+
case 23:
|
35
|
+
octet Mullberry;
|
36
|
+
case 72:
|
37
|
+
octet Corn;
|
38
|
+
};
|
39
|
+
|
40
|
+
interface idlServer {
|
41
|
+
|
42
|
+
exception AppleExcpt{
|
43
|
+
::Apple ex1;
|
44
|
+
};
|
45
|
+
|
46
|
+
attribute ::Apple AppleAttr;
|
47
|
+
|
48
|
+
::Apple AppleOp(
|
49
|
+
in ::Apple p1,
|
50
|
+
out ::Apple p2,
|
51
|
+
inout ::Apple p3
|
52
|
+
) raises (AppleExcpt);
|
53
|
+
|
54
|
+
exception BroadbeansExcpt{
|
55
|
+
::Broadbeans ex1;
|
56
|
+
};
|
57
|
+
|
58
|
+
attribute ::Broadbeans BroadbeansAttr;
|
59
|
+
|
60
|
+
::Broadbeans BroadbeansOp(
|
61
|
+
in ::Broadbeans p1,
|
62
|
+
out ::Broadbeans p2,
|
63
|
+
inout ::Broadbeans p3
|
64
|
+
) raises (BroadbeansExcpt);
|
65
|
+
};
|
66
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
union Broadbeans switch (long) {
|
2
|
+
case 521:
|
3
|
+
struct Avocado{
|
4
|
+
float ButterBean;
|
5
|
+
} Banana;
|
6
|
+
case 45:
|
7
|
+
struct GalaApple{
|
8
|
+
float ButterBean, ChestNut, Currant, CoxPippin, Chervil, Scallion, Tomato;
|
9
|
+
} Orange;
|
10
|
+
case 72:
|
11
|
+
octet Corn;
|
12
|
+
};
|
13
|
+
|
14
|
+
interface idlServer {
|
15
|
+
|
16
|
+
exception BroadbeansExcpt{
|
17
|
+
::Broadbeans ex1;
|
18
|
+
};
|
19
|
+
|
20
|
+
attribute ::Broadbeans BroadbeansAttr;
|
21
|
+
|
22
|
+
::Broadbeans BroadbeansOp(
|
23
|
+
in ::Broadbeans p1,
|
24
|
+
out ::Broadbeans p2,
|
25
|
+
inout ::Broadbeans p3
|
26
|
+
) raises (BroadbeansExcpt);
|
27
|
+
|
28
|
+
exception AvocadoExcpt{
|
29
|
+
::Broadbeans::Avocado ex1;
|
30
|
+
};
|
31
|
+
|
32
|
+
attribute ::Broadbeans::Avocado AvocadoAttr;
|
33
|
+
|
34
|
+
::Broadbeans::Avocado AvocadoOp(
|
35
|
+
in ::Broadbeans::Avocado p1,
|
36
|
+
out ::Broadbeans::Avocado p2,
|
37
|
+
inout ::Broadbeans::Avocado p3
|
38
|
+
) raises (AvocadoExcpt);
|
39
|
+
|
40
|
+
exception GalaAppleExcpt{
|
41
|
+
::Broadbeans::GalaApple ex1;
|
42
|
+
};
|
43
|
+
|
44
|
+
attribute ::Broadbeans::GalaApple GalaAppleAttr;
|
45
|
+
|
46
|
+
::Broadbeans::GalaApple GalaAppleOp(
|
47
|
+
in ::Broadbeans::GalaApple p1,
|
48
|
+
out ::Broadbeans::GalaApple p2,
|
49
|
+
inout ::Broadbeans::GalaApple p3
|
50
|
+
) raises (GalaAppleExcpt);
|
51
|
+
};
|
52
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Sequences as in, inout, out and return
|
3
|
+
*/
|
4
|
+
|
5
|
+
struct S {
|
6
|
+
long x;
|
7
|
+
sequence<long> seq;
|
8
|
+
};
|
9
|
+
|
10
|
+
typedef sequence<S> SSeq;
|
11
|
+
|
12
|
+
typedef sequence<string> StringSeq;
|
13
|
+
|
14
|
+
struct S2 {
|
15
|
+
sequence<char,10> seq;
|
16
|
+
};
|
17
|
+
|
18
|
+
|
19
|
+
interface foo {
|
20
|
+
S bar( in S s1, inout S s2, out S s3 );
|
21
|
+
SSeq bar2( in SSeq s1, inout SSeq s2, out SSeq s3 );
|
22
|
+
void bar3( in StringSeq s );
|
23
|
+
};
|
24
|
+
|
@@ -0,0 +1,80 @@
|
|
1
|
+
// Description : Tests most basic types used by all ORBs
|
2
|
+
|
3
|
+
struct BasicTypes
|
4
|
+
{
|
5
|
+
short argShort;
|
6
|
+
unsigned short argUShort;
|
7
|
+
long argLong;
|
8
|
+
unsigned long argULong;
|
9
|
+
float argFloat;
|
10
|
+
double argDouble;
|
11
|
+
char argChar;
|
12
|
+
string argString;
|
13
|
+
boolean argBoolean;
|
14
|
+
octet argOctet;
|
15
|
+
};
|
16
|
+
|
17
|
+
enum Color { blue, green, red, black };
|
18
|
+
|
19
|
+
union U switch( long ) {
|
20
|
+
case 10: string str;
|
21
|
+
case 20: short s;
|
22
|
+
case 50: long r;
|
23
|
+
case 60: float f;
|
24
|
+
default: char c;
|
25
|
+
};
|
26
|
+
|
27
|
+
typedef long IntSequence[10];
|
28
|
+
|
29
|
+
typedef sequence<long> longSeq;
|
30
|
+
|
31
|
+
interface RequestBht
|
32
|
+
{
|
33
|
+
//
|
34
|
+
// Basic types
|
35
|
+
//
|
36
|
+
void requestVoid ( );
|
37
|
+
short requestShort ( in short arg );
|
38
|
+
unsigned short requestUShort ( in unsigned short arg );
|
39
|
+
long requestLong ( in long arg );
|
40
|
+
unsigned long requestULong ( in unsigned long arg );
|
41
|
+
float requestFloat ( in float arg );
|
42
|
+
double requestDouble ( in double arg );
|
43
|
+
char requestChar ( in char arg );
|
44
|
+
string requestString ( in string arg );
|
45
|
+
boolean requestBoolean ( in boolean arg );
|
46
|
+
octet requestOctet ( in octet arg );
|
47
|
+
IntSequence requestArray ( in IntSequence arg);
|
48
|
+
Color requestEnum ( in Color arg);
|
49
|
+
U requestUnion ( in U arg);
|
50
|
+
BasicTypes requestBasicTypes( in BasicTypes arg );
|
51
|
+
|
52
|
+
oneway void onewayVoid ( );
|
53
|
+
oneway void onewayShort ( in short arg );
|
54
|
+
oneway void onewayUShort ( in unsigned short arg );
|
55
|
+
oneway void onewayLong ( in long arg );
|
56
|
+
oneway void onewayULong ( in unsigned long arg );
|
57
|
+
oneway void onewayFloat ( in float arg );
|
58
|
+
oneway void onewayDouble ( in double arg );
|
59
|
+
oneway void onewayChar ( in char arg );
|
60
|
+
oneway void onewayString ( in string arg );
|
61
|
+
oneway void onewayBoolean ( in boolean arg );
|
62
|
+
oneway void onewayOctet ( in octet arg );
|
63
|
+
oneway void onewayArray ( in IntSequence arg);
|
64
|
+
oneway void onewayEnum ( in Color arg);
|
65
|
+
oneway void onewayUnion ( in U arg);
|
66
|
+
|
67
|
+
//
|
68
|
+
// IN, OUT, INOUT, RESULT tests
|
69
|
+
//
|
70
|
+
short request_short ( in short i1, out short i2, inout short i3 );
|
71
|
+
long request_long ( in long i1, out long i2, inout long i3 );
|
72
|
+
float request_float ( in float i1, out float i2, inout float i3 );
|
73
|
+
string request_string ( in string i1, out string i2, inout string i3 );
|
74
|
+
octet request_octet ( in octet i1, out octet i2, inout octet i3 );
|
75
|
+
IntSequence request_array ( in IntSequence i1, out IntSequence i2, inout IntSequence i3);
|
76
|
+
Color request_enum ( in Color i1, out Color i2, inout Color i3);
|
77
|
+
U request_union ( in U i1, out U i2, inout U i3);
|
78
|
+
|
79
|
+
};
|
80
|
+
|
@@ -0,0 +1,197 @@
|
|
1
|
+
// Description : Tests most basic types used by all ORBs
|
2
|
+
|
3
|
+
struct BasicTypes
|
4
|
+
{
|
5
|
+
short argShort;
|
6
|
+
unsigned short argUShort;
|
7
|
+
long argLong;
|
8
|
+
unsigned long argULong;
|
9
|
+
float argFloat;
|
10
|
+
double argDouble;
|
11
|
+
char argChar;
|
12
|
+
string argString;
|
13
|
+
boolean argBoolean;
|
14
|
+
octet argOctet;
|
15
|
+
};
|
16
|
+
|
17
|
+
|
18
|
+
typedef long IntSequence[10];
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
interface C2RTwowayVoid
|
23
|
+
{
|
24
|
+
void twowayVoid ( );
|
25
|
+
};
|
26
|
+
|
27
|
+
interface C2RTwowayShort
|
28
|
+
{
|
29
|
+
short twowayShort ( in short arg );
|
30
|
+
};
|
31
|
+
|
32
|
+
interface C2RTwowayUShort
|
33
|
+
{
|
34
|
+
unsigned short twowayUShort ( in unsigned short arg );
|
35
|
+
};
|
36
|
+
|
37
|
+
interface C2RTwowayLong
|
38
|
+
{
|
39
|
+
long twowayLong ( in long arg );
|
40
|
+
};
|
41
|
+
|
42
|
+
interface C2RTwowayULong
|
43
|
+
{
|
44
|
+
unsigned long twowayULong ( in unsigned long arg );
|
45
|
+
};
|
46
|
+
|
47
|
+
interface C2RTwowayFloat
|
48
|
+
{
|
49
|
+
float twowayFloat ( in float arg );
|
50
|
+
};
|
51
|
+
|
52
|
+
interface C2RTwowayDouble
|
53
|
+
{
|
54
|
+
double twowayDouble ( in double arg );
|
55
|
+
};
|
56
|
+
|
57
|
+
interface C2RTwowayChar
|
58
|
+
{
|
59
|
+
char twowayChar ( in char arg );
|
60
|
+
};
|
61
|
+
|
62
|
+
interface C2RTwowayString
|
63
|
+
{
|
64
|
+
string twowayString ( in string arg );
|
65
|
+
};
|
66
|
+
|
67
|
+
interface C2RTwowayBoolean
|
68
|
+
{
|
69
|
+
boolean twowayBoolean ( in boolean arg );
|
70
|
+
};
|
71
|
+
|
72
|
+
interface C2RTwowayOctet
|
73
|
+
{
|
74
|
+
octet twowayOctet ( in octet arg );
|
75
|
+
};
|
76
|
+
|
77
|
+
interface C2RTwowayShortIO
|
78
|
+
{
|
79
|
+
short twowayShortIO ( in short i1, out short i2, inout short i3 );
|
80
|
+
};
|
81
|
+
|
82
|
+
interface C2RTwowayLongIO
|
83
|
+
{
|
84
|
+
long twowayLongIO ( in long i1, out long i2, inout long i3 );
|
85
|
+
};
|
86
|
+
|
87
|
+
interface C2RTwowayFloatIO
|
88
|
+
{
|
89
|
+
float twowayFloatIO ( in float i1, out float i2, inout float i3 );
|
90
|
+
};
|
91
|
+
|
92
|
+
interface C2RTwowayStringIO
|
93
|
+
{
|
94
|
+
string twowayStringIO ( in string i1, out string i2, inout string i3 );
|
95
|
+
};
|
96
|
+
|
97
|
+
|
98
|
+
interface C2ROnewayVoid
|
99
|
+
{
|
100
|
+
oneway void onewayVoid ( );
|
101
|
+
};
|
102
|
+
|
103
|
+
interface C2ROnewayShort
|
104
|
+
{
|
105
|
+
oneway void onewayShort ( in short arg );
|
106
|
+
};
|
107
|
+
|
108
|
+
interface C2ROnewayUShort
|
109
|
+
{
|
110
|
+
oneway void onewayUShort ( in unsigned short arg );
|
111
|
+
};
|
112
|
+
|
113
|
+
interface C2ROnewayLong
|
114
|
+
{
|
115
|
+
oneway void onewayLong ( in long arg );
|
116
|
+
};
|
117
|
+
|
118
|
+
interface C2ROnewayULong
|
119
|
+
{
|
120
|
+
oneway void onewayULong ( in unsigned long arg );
|
121
|
+
};
|
122
|
+
|
123
|
+
interface C2ROnewayFloat
|
124
|
+
{
|
125
|
+
oneway void onewayFloat ( in float arg );
|
126
|
+
};
|
127
|
+
|
128
|
+
interface C2ROnewayDouble
|
129
|
+
{
|
130
|
+
oneway void onewayDouble ( in double arg );
|
131
|
+
};
|
132
|
+
|
133
|
+
interface C2ROnewayChar
|
134
|
+
{
|
135
|
+
oneway void onewayChar ( in char arg );
|
136
|
+
};
|
137
|
+
|
138
|
+
interface C2ROnewayString
|
139
|
+
{
|
140
|
+
oneway void onewayString ( in string arg );
|
141
|
+
};
|
142
|
+
|
143
|
+
interface C2ROnewayBoolean
|
144
|
+
{
|
145
|
+
oneway void onewayBoolean ( in boolean arg );
|
146
|
+
};
|
147
|
+
|
148
|
+
interface C2ROnewayOctet
|
149
|
+
{
|
150
|
+
oneway void onewayOctet (in octet arg );
|
151
|
+
};
|
152
|
+
|
153
|
+
|
154
|
+
interface RequestSenderC2R
|
155
|
+
{
|
156
|
+
//
|
157
|
+
// Basic types
|
158
|
+
//
|
159
|
+
void requestVoid ( );
|
160
|
+
short requestShort ( in short arg );
|
161
|
+
unsigned short requestUShort ( in unsigned short arg );
|
162
|
+
long requestLong ( in long arg );
|
163
|
+
unsigned long requestULong ( in unsigned long arg );
|
164
|
+
float requestFloat ( in float arg );
|
165
|
+
double requestDouble ( in double arg );
|
166
|
+
char requestChar ( in char arg );
|
167
|
+
string requestString ( in string arg );
|
168
|
+
boolean requestBoolean ( in boolean arg );
|
169
|
+
octet requestOctet ( in octet arg );
|
170
|
+
|
171
|
+
oneway void onewayVoid ( );
|
172
|
+
oneway void onewayShort ( in short arg );
|
173
|
+
oneway void onewayUShort ( in unsigned short arg );
|
174
|
+
oneway void onewayLong ( in long arg );
|
175
|
+
oneway void onewayULong ( in unsigned long arg );
|
176
|
+
oneway void onewayFloat ( in float arg );
|
177
|
+
oneway void onewayDouble ( in double arg );
|
178
|
+
oneway void onewayChar ( in char arg );
|
179
|
+
oneway void onewayString ( in string arg );
|
180
|
+
oneway void onewayBoolean ( in boolean arg );
|
181
|
+
oneway void onewayOctet ( in octet arg );
|
182
|
+
|
183
|
+
//
|
184
|
+
// Complex types
|
185
|
+
//
|
186
|
+
BasicTypes requestBasicTypes ( in BasicTypes arg );
|
187
|
+
IntSequence requestIntSequence ( in IntSequence arg );
|
188
|
+
|
189
|
+
//
|
190
|
+
// IN, OUT, INOUT, RESULT tests
|
191
|
+
//
|
192
|
+
short request_IO_1 ( in short i1, out short i2, inout short i3 );
|
193
|
+
long request_IO_2 ( in long i1, out long i2, inout long i3 );
|
194
|
+
float request_IO_3 ( in float i1, out float i2, inout float i3 );
|
195
|
+
string request_IO_4 ( in string i1, out string i2, inout string i3 );
|
196
|
+
|
197
|
+
};
|