r2corba 1.6.1-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +173 -0
- data/LICENSE +59 -0
- data/README.rdoc +62 -0
- data/THANKS +54 -0
- data/bin/r2corba +8 -0
- data/bin/r2corba.bat +20 -0
- data/bin/ridlc +11 -0
- data/bin/ridlc.bat +23 -0
- data/bin/rins +7 -0
- data/bin/rins.bat +19 -0
- data/ext/.keep +0 -0
- data/lib/corba/cbase/IORMap.rb +32 -0
- data/lib/corba/cbase/ORB.rb +239 -0
- data/lib/corba/cbase/Request.rb +133 -0
- data/lib/corba/cbase/Streams.rb +128 -0
- data/lib/corba/cbase/Stub.rb +18 -0
- data/lib/corba/cbase/Typecode.rb +440 -0
- data/lib/corba/cbase/Values.rb +130 -0
- data/lib/corba/cbase/exception.rb +67 -0
- data/lib/corba/cbase/poa.rb +22 -0
- data/lib/corba/cbase/policies.rb +77 -0
- data/lib/corba/cbase/post_require.rb +13 -0
- data/lib/corba/cbase/require.rb +36 -0
- data/lib/corba/cmds/base.rb +84 -0
- data/lib/corba/cmds/test.rb +29 -0
- data/lib/corba/common/Any.rb +91 -0
- data/lib/corba/common/IDL.rb +100 -0
- data/lib/corba/common/ORB.rb +367 -0
- data/lib/corba/common/Object.rb +211 -0
- data/lib/corba/common/Request.rb +19 -0
- data/lib/corba/common/Servant.rb +107 -0
- data/lib/corba/common/Struct.rb +21 -0
- data/lib/corba/common/Stub.rb +78 -0
- data/lib/corba/common/Typecode.rb +1147 -0
- data/lib/corba/common/Union.rb +60 -0
- data/lib/corba/common/Values.rb +92 -0
- data/lib/corba/common/const.rb +21 -0
- data/lib/corba/common/exception.rb +68 -0
- data/lib/corba/common/require.rb +34 -0
- data/lib/corba/common/version.rb +21 -0
- data/lib/corba/idl/BiDirPolicyC.rb +62 -0
- data/lib/corba/idl/CosNamingC.rb +460 -0
- data/lib/corba/idl/CosNamingS.rb +308 -0
- data/lib/corba/idl/IDL.rb +20 -0
- data/lib/corba/idl/IORTable.pidl +61 -0
- data/lib/corba/idl/IORTableC.rb +116 -0
- data/lib/corba/idl/MessagingC.rb +903 -0
- data/lib/corba/idl/POAC.rb +929 -0
- data/lib/corba/idl/TAO_Ext.pidl +45 -0
- data/lib/corba/idl/TAO_ExtC.rb +178 -0
- data/lib/corba/idl/r2c_orb.rb +571 -0
- data/lib/corba/idl/require.rb +19 -0
- data/lib/corba/jbase/Any.rb +274 -0
- data/lib/corba/jbase/IORMap.rb +35 -0
- data/lib/corba/jbase/ORB.rb +111 -0
- data/lib/corba/jbase/Object.rb +98 -0
- data/lib/corba/jbase/Request.rb +225 -0
- data/lib/corba/jbase/Servant.rb +247 -0
- data/lib/corba/jbase/ServerRequest.rb +127 -0
- data/lib/corba/jbase/Streams.rb +734 -0
- data/lib/corba/jbase/Stub.rb +37 -0
- data/lib/corba/jbase/Typecode.rb +520 -0
- data/lib/corba/jbase/Values.rb +174 -0
- data/lib/corba/jbase/exception.rb +106 -0
- data/lib/corba/jbase/poa.rb +228 -0
- data/lib/corba/jbase/policies.rb +299 -0
- data/lib/corba/jbase/post_require.rb +13 -0
- data/lib/corba/jbase/require.rb +92 -0
- data/lib/corba/naming.rb +13 -0
- data/lib/corba/naming_service.rb +14 -0
- data/lib/corba/poa.rb +14 -0
- data/lib/corba/policies.rb +17 -0
- data/lib/corba/require.rb +16 -0
- data/lib/corba/svcs/ins/cos_naming.rb +432 -0
- data/lib/corba/svcs/ins/ins.rb +525 -0
- data/lib/corba/svcs/ins/naming_service.rb +118 -0
- data/lib/corba.rb +15 -0
- data/lib/ridlbe/ruby/config.rb +340 -0
- data/lib/ridlbe/ruby/orb.pidlc +0 -0
- data/lib/ridlbe/ruby/require.rb +15 -0
- data/lib/ridlbe/ruby/walker.rb +1605 -0
- data/mkrf_conf_bingem.rb +149 -0
- data/rakelib/bin.rake +79 -0
- data/rakelib/bin.rb +145 -0
- data/rakelib/build.rake +87 -0
- data/rakelib/config.rake +51 -0
- data/rakelib/config.rb +542 -0
- data/rakelib/ext.rake +183 -0
- data/rakelib/ext.rb +277 -0
- data/rakelib/ext_r2tao.rb +208 -0
- data/rakelib/gem.rake +251 -0
- data/rakelib/gem.rb +145 -0
- data/rakelib/package.rake +25 -0
- data/rakelib/test.rake +22 -0
- data/test/BiDirectional/Test.idl +33 -0
- data/test/BiDirectional/client.rb +131 -0
- data/test/BiDirectional/run_test.rb +67 -0
- data/test/BiDirectional/server.rb +167 -0
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +26 -0
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +120 -0
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +81 -0
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +108 -0
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +26 -0
- data/test/CORBA_Services/Naming/Corbaname/client.rb +84 -0
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +87 -0
- data/test/CORBA_Services/Naming/Corbaname/server.rb +134 -0
- data/test/CORBA_Services/Naming/Simple/Test.idl +26 -0
- data/test/CORBA_Services/Naming/Simple/client.rb +83 -0
- data/test/CORBA_Services/Naming/Simple/run_test.rb +81 -0
- data/test/CORBA_Services/Naming/Simple/server.rb +108 -0
- data/test/Collocation/Diamond.idl +38 -0
- data/test/Collocation/run_test.rb +51 -0
- data/test/Collocation/test.rb +201 -0
- data/test/Connect_Timeout/Test.idl +26 -0
- data/test/Connect_Timeout/client.rb +109 -0
- data/test/Connect_Timeout/run_test.rb +51 -0
- data/test/DII/Test.idl +26 -0
- data/test/DII/client.rb +114 -0
- data/test/DII/run_test.rb +68 -0
- data/test/DII/server.rb +94 -0
- data/test/DSI/Test.idl +26 -0
- data/test/DSI/client.rb +65 -0
- data/test/DSI/run_test.rb +68 -0
- data/test/DSI/server.rb +105 -0
- data/test/Exceptions/Test.idl +47 -0
- data/test/Exceptions/client.rb +117 -0
- data/test/Exceptions/run_test.rb +68 -0
- data/test/Exceptions/server.rb +130 -0
- data/test/Hello/Test.idl +26 -0
- data/test/Hello/client.rb +77 -0
- data/test/Hello/run_test.rb +70 -0
- data/test/Hello/server.rb +94 -0
- data/test/IDL_Test/Test.idl +116 -0
- data/test/IDL_Test/Test_inc.idl +17 -0
- data/test/IDL_Test/client.rb +103 -0
- data/test/IDL_Test/run_test.rb +68 -0
- data/test/IDL_Test/server.rb +103 -0
- data/test/IORMap/Test.idl +26 -0
- data/test/IORMap/client.rb +72 -0
- data/test/IORMap/run_test.rb +68 -0
- data/test/IORMap/server.rb +113 -0
- data/test/IORTable/Test.idl +26 -0
- data/test/IORTable/client.rb +74 -0
- data/test/IORTable/run_test.rb +68 -0
- data/test/IORTable/server.rb +129 -0
- data/test/Implicit_Conversion/Test.idl +30 -0
- data/test/Implicit_Conversion/client.rb +112 -0
- data/test/Implicit_Conversion/run_test.rb +68 -0
- data/test/Implicit_Conversion/server.rb +98 -0
- data/test/Multi_Threading/Multiple_ORB/Test.idl +26 -0
- data/test/Multi_Threading/Multiple_ORB/client.rb +81 -0
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +70 -0
- data/test/Multi_Threading/Multiple_ORB/server.rb +107 -0
- data/test/Multi_Threading/Simple/Test.idl +26 -0
- data/test/Multi_Threading/Simple/client.rb +92 -0
- data/test/Multi_Threading/Simple/run_test.rb +68 -0
- data/test/Multi_Threading/Simple/server.rb +117 -0
- data/test/Multi_Threading/Threads/Test.idl +27 -0
- data/test/Multi_Threading/Threads/client.rb +77 -0
- data/test/Multi_Threading/Threads/run_test.rb +75 -0
- data/test/Multi_Threading/Threads/server.rb +116 -0
- data/test/Multi_Threading/Threads/watchdog.rb +87 -0
- data/test/Multiple_Servant_Interfaces/Test.idl +33 -0
- data/test/Multiple_Servant_Interfaces/client.rb +69 -0
- data/test/Multiple_Servant_Interfaces/run_test.rb +68 -0
- data/test/Multiple_Servant_Interfaces/server.rb +101 -0
- data/test/Nil/Test.idl +26 -0
- data/test/Nil/run_test.rb +51 -0
- data/test/Nil/test.rb +80 -0
- data/test/OBV/AbstractInterface/client.rb +178 -0
- data/test/OBV/AbstractInterface/run_test.rb +68 -0
- data/test/OBV/AbstractInterface/server.rb +149 -0
- data/test/OBV/AbstractInterface/test.idl +52 -0
- data/test/OBV/Custom/OBV.idl +18 -0
- data/test/OBV/Custom/OBV_impl.rb +41 -0
- data/test/OBV/Custom/client.rb +85 -0
- data/test/OBV/Custom/run_test.rb +68 -0
- data/test/OBV/Custom/server.rb +99 -0
- data/test/OBV/Simple/OBV.idl +15 -0
- data/test/OBV/Simple/OBV_impl.rb +26 -0
- data/test/OBV/Simple/client.rb +85 -0
- data/test/OBV/Simple/run_test.rb +68 -0
- data/test/OBV/Simple/server.rb +99 -0
- data/test/OBV/Simple_Event/Event.idl +15 -0
- data/test/OBV/Simple_Event/Event_impl.rb +26 -0
- data/test/OBV/Simple_Event/client.rb +85 -0
- data/test/OBV/Simple_Event/run_test.rb +68 -0
- data/test/OBV/Simple_Event/server.rb +99 -0
- data/test/OBV/Supports/client.rb +115 -0
- data/test/OBV/Supports/run_test.rb +68 -0
- data/test/OBV/Supports/server.rb +102 -0
- data/test/OBV/Supports/supports.idl +32 -0
- data/test/OBV/Supports/supports_impl.rb +59 -0
- data/test/OBV/Tree/client.rb +115 -0
- data/test/OBV/Tree/run_test.rb +68 -0
- data/test/OBV/Tree/server.rb +116 -0
- data/test/OBV/Tree/test.idl +31 -0
- data/test/OBV/Truncatable/Extra.idl +26 -0
- data/test/OBV/Truncatable/Truncatable.idl +105 -0
- data/test/OBV/Truncatable/Truncatable_impl.rb +85 -0
- data/test/OBV/Truncatable/client.rb +278 -0
- data/test/OBV/Truncatable/run_test.rb +68 -0
- data/test/OBV/Truncatable/server.rb +88 -0
- data/test/OBV/ValueBox/client.rb +497 -0
- data/test/OBV/ValueBox/run_test.rb +68 -0
- data/test/OBV/ValueBox/server.rb +271 -0
- data/test/OBV/ValueBox/valuebox.idl +101 -0
- data/test/OBV/ValueBox/vb_basic.idl +75 -0
- data/test/OBV/ValueBox/vb_struct.idl +68 -0
- data/test/OBV/ValueBox/vb_union.idl +21 -0
- data/test/Object/Test.idl +26 -0
- data/test/Object/client.rb +111 -0
- data/test/Object/run_test.rb +68 -0
- data/test/Object/server.rb +125 -0
- data/test/POA/Test.idl +27 -0
- data/test/POA/run_test.rb +51 -0
- data/test/POA/test.rb +111 -0
- data/test/Param_Test/Test.idl +182 -0
- data/test/Param_Test/client.rb +276 -0
- data/test/Param_Test/run_test.rb +68 -0
- data/test/Param_Test/server.rb +295 -0
- data/test/Performance/Simple/Test.idl +26 -0
- data/test/Performance/Simple/client.rb +89 -0
- data/test/Performance/Simple/run_test.rb +68 -0
- data/test/Performance/Simple/server.rb +94 -0
- data/test/Policies/Test.idl +26 -0
- data/test/Policies/run_test.rb +51 -0
- data/test/Policies/test.rb +142 -0
- data/test/Timeout/client.rb +206 -0
- data/test/Timeout/run_test.rb +68 -0
- data/test/Timeout/server.rb +108 -0
- data/test/Timeout/test.idl +18 -0
- data/test/lib/assert.rb +41 -0
- data/test/lib/test.rb +546 -0
- data/test/test_runner.rb +191 -0
- metadata +318 -0
@@ -0,0 +1,308 @@
|
|
1
|
+
# -*- Ruby -*-
|
2
|
+
#
|
3
|
+
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
|
+
# R2CORBA has been developed by:
|
5
|
+
# Remedy IT Expertise BV
|
6
|
+
# The Netherlands
|
7
|
+
# https://www.remedy.nl
|
8
|
+
#
|
9
|
+
require 'corba/poa.rb'
|
10
|
+
|
11
|
+
module POA
|
12
|
+
CORBA.implement('CosNaming.idl', {}, CORBA::IDL::SERVANT_INTF) {
|
13
|
+
|
14
|
+
module CosNaming
|
15
|
+
|
16
|
+
class BindingIterator < PortableServer::Servant; end ## servant forward
|
17
|
+
|
18
|
+
class NamingContext < PortableServer::Servant ## servant
|
19
|
+
|
20
|
+
module Intf
|
21
|
+
Id = 'IDL:omg.org/CosNaming/NamingContext:1.0'.freeze
|
22
|
+
Ids = [ Id ]
|
23
|
+
Operations = {}
|
24
|
+
|
25
|
+
Operations.store(:bind, {
|
26
|
+
:arg_list => [
|
27
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc],
|
28
|
+
['obj', CORBA::ARG_IN, CORBA._tc_Object]],
|
29
|
+
:result_type => CORBA._tc_void,
|
30
|
+
:exc_list => [
|
31
|
+
::CosNaming::NamingContext::NotFound._tc,
|
32
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
33
|
+
::CosNaming::NamingContext::InvalidName._tc,
|
34
|
+
::CosNaming::NamingContext::AlreadyBound._tc]})
|
35
|
+
|
36
|
+
def bind(n, obj)
|
37
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
38
|
+
'unimplemented servant operation',
|
39
|
+
1, ::CORBA::COMPLETED_NO)
|
40
|
+
end
|
41
|
+
|
42
|
+
Operations.store(:rebind, {
|
43
|
+
:arg_list => [
|
44
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc],
|
45
|
+
['obj', CORBA::ARG_IN, CORBA._tc_Object]],
|
46
|
+
:result_type => CORBA._tc_void,
|
47
|
+
:exc_list => [
|
48
|
+
::CosNaming::NamingContext::NotFound._tc,
|
49
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
50
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
51
|
+
|
52
|
+
def rebind(n, obj)
|
53
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
54
|
+
'unimplemented servant operation',
|
55
|
+
1, ::CORBA::COMPLETED_NO)
|
56
|
+
end
|
57
|
+
|
58
|
+
Operations.store(:bind_context, {
|
59
|
+
:arg_list => [
|
60
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc],
|
61
|
+
['nc', CORBA::ARG_IN, ::CosNaming::NamingContext._tc]],
|
62
|
+
:result_type => CORBA._tc_void,
|
63
|
+
:exc_list => [
|
64
|
+
::CosNaming::NamingContext::NotFound._tc,
|
65
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
66
|
+
::CosNaming::NamingContext::InvalidName._tc,
|
67
|
+
::CosNaming::NamingContext::AlreadyBound._tc]})
|
68
|
+
|
69
|
+
def bind_context(n, nc)
|
70
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
71
|
+
'unimplemented servant operation',
|
72
|
+
1, ::CORBA::COMPLETED_NO)
|
73
|
+
end
|
74
|
+
|
75
|
+
Operations.store(:rebind_context, {
|
76
|
+
:arg_list => [
|
77
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc],
|
78
|
+
['nc', CORBA::ARG_IN, ::CosNaming::NamingContext._tc]],
|
79
|
+
:result_type => CORBA._tc_void,
|
80
|
+
:exc_list => [
|
81
|
+
::CosNaming::NamingContext::NotFound._tc,
|
82
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
83
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
84
|
+
|
85
|
+
def rebind_context(n, nc)
|
86
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
87
|
+
'unimplemented servant operation',
|
88
|
+
1, ::CORBA::COMPLETED_NO)
|
89
|
+
end
|
90
|
+
|
91
|
+
Operations.store(:resolve, {
|
92
|
+
:arg_list => [
|
93
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc]],
|
94
|
+
:result_type => CORBA._tc_Object,
|
95
|
+
:exc_list => [
|
96
|
+
::CosNaming::NamingContext::NotFound._tc,
|
97
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
98
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
99
|
+
|
100
|
+
def resolve(n)
|
101
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
102
|
+
'unimplemented servant operation',
|
103
|
+
1, ::CORBA::COMPLETED_NO)
|
104
|
+
end
|
105
|
+
|
106
|
+
Operations.store(:unbind, {
|
107
|
+
:arg_list => [
|
108
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc]],
|
109
|
+
:result_type => CORBA._tc_void,
|
110
|
+
:exc_list => [
|
111
|
+
::CosNaming::NamingContext::NotFound._tc,
|
112
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
113
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
114
|
+
|
115
|
+
def unbind(n)
|
116
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
117
|
+
'unimplemented servant operation',
|
118
|
+
1, ::CORBA::COMPLETED_NO)
|
119
|
+
end
|
120
|
+
|
121
|
+
Operations.store(:new_context, {
|
122
|
+
:result_type => ::CosNaming::NamingContext._tc})
|
123
|
+
|
124
|
+
def new_context()
|
125
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
126
|
+
'unimplemented servant operation',
|
127
|
+
1, ::CORBA::COMPLETED_NO)
|
128
|
+
end
|
129
|
+
|
130
|
+
Operations.store(:bind_new_context, {
|
131
|
+
:arg_list => [
|
132
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc]],
|
133
|
+
:result_type => ::CosNaming::NamingContext._tc,
|
134
|
+
:exc_list => [
|
135
|
+
::CosNaming::NamingContext::NotFound._tc,
|
136
|
+
::CosNaming::NamingContext::AlreadyBound._tc,
|
137
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
138
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
139
|
+
|
140
|
+
def bind_new_context(n)
|
141
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
142
|
+
'unimplemented servant operation',
|
143
|
+
1, ::CORBA::COMPLETED_NO)
|
144
|
+
end
|
145
|
+
|
146
|
+
Operations.store(:destroy, {
|
147
|
+
:result_type => CORBA._tc_void,
|
148
|
+
:exc_list => [
|
149
|
+
::CosNaming::NamingContext::NotEmpty._tc]})
|
150
|
+
|
151
|
+
def destroy()
|
152
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
153
|
+
'unimplemented servant operation',
|
154
|
+
1, ::CORBA::COMPLETED_NO)
|
155
|
+
end
|
156
|
+
|
157
|
+
Operations.store(:list, {
|
158
|
+
:arg_list => [
|
159
|
+
['how_many', CORBA::ARG_IN, CORBA._tc_ulong],
|
160
|
+
['bl', CORBA::ARG_OUT, ::CosNaming::BindingList._tc],
|
161
|
+
['bi', CORBA::ARG_OUT, ::CosNaming::BindingIterator._tc]],
|
162
|
+
:result_type => CORBA._tc_void})
|
163
|
+
|
164
|
+
def list(how_many)
|
165
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
166
|
+
'unimplemented servant operation',
|
167
|
+
1, ::CORBA::COMPLETED_NO)
|
168
|
+
end
|
169
|
+
|
170
|
+
end #of Intf
|
171
|
+
|
172
|
+
Id = Intf::Id
|
173
|
+
|
174
|
+
include_interface(PortableServer::Servant::Intf)
|
175
|
+
|
176
|
+
include Intf
|
177
|
+
|
178
|
+
def _this; ::CosNaming::NamingContext._narrow(super); end
|
179
|
+
end #of servant NamingContext
|
180
|
+
|
181
|
+
class BindingIterator < PortableServer::Servant ## servant
|
182
|
+
|
183
|
+
module Intf
|
184
|
+
Id = 'IDL:omg.org/CosNaming/BindingIterator:1.0'.freeze
|
185
|
+
Ids = [ Id ]
|
186
|
+
Operations = {}
|
187
|
+
|
188
|
+
Operations.store(:next_one, {
|
189
|
+
:arg_list => [
|
190
|
+
['b', CORBA::ARG_OUT, ::CosNaming::Binding._tc]],
|
191
|
+
:result_type => CORBA._tc_boolean})
|
192
|
+
|
193
|
+
def next_one()
|
194
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
195
|
+
'unimplemented servant operation',
|
196
|
+
1, ::CORBA::COMPLETED_NO)
|
197
|
+
end
|
198
|
+
|
199
|
+
Operations.store(:next_n, {
|
200
|
+
:arg_list => [
|
201
|
+
['how_many', CORBA::ARG_IN, CORBA._tc_ulong],
|
202
|
+
['bl', CORBA::ARG_OUT, ::CosNaming::BindingList._tc]],
|
203
|
+
:result_type => CORBA._tc_boolean})
|
204
|
+
|
205
|
+
def next_n(how_many)
|
206
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
207
|
+
'unimplemented servant operation',
|
208
|
+
1, ::CORBA::COMPLETED_NO)
|
209
|
+
end
|
210
|
+
|
211
|
+
Operations.store(:destroy, {
|
212
|
+
:result_type => CORBA._tc_void})
|
213
|
+
|
214
|
+
def destroy()
|
215
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
216
|
+
'unimplemented servant operation',
|
217
|
+
1, ::CORBA::COMPLETED_NO)
|
218
|
+
end
|
219
|
+
|
220
|
+
end #of Intf
|
221
|
+
|
222
|
+
Id = Intf::Id
|
223
|
+
|
224
|
+
include_interface(PortableServer::Servant::Intf)
|
225
|
+
|
226
|
+
include Intf
|
227
|
+
|
228
|
+
def _this; ::CosNaming::BindingIterator._narrow(super); end
|
229
|
+
end #of servant BindingIterator
|
230
|
+
|
231
|
+
class NamingContextExt < PortableServer::Servant ## servant
|
232
|
+
|
233
|
+
module Intf
|
234
|
+
Id = 'IDL:omg.org/CosNaming/NamingContextExt:1.0'.freeze
|
235
|
+
Ids = [ Id ]
|
236
|
+
Operations = {}
|
237
|
+
|
238
|
+
Operations.store(:to_string, {
|
239
|
+
:arg_list => [
|
240
|
+
['n', CORBA::ARG_IN, ::CosNaming::Name._tc]],
|
241
|
+
:result_type => ::CosNaming::NamingContextExt::StringName._tc,
|
242
|
+
:exc_list => [
|
243
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
244
|
+
|
245
|
+
def to_string(n)
|
246
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
247
|
+
'unimplemented servant operation',
|
248
|
+
1, ::CORBA::COMPLETED_NO)
|
249
|
+
end
|
250
|
+
|
251
|
+
Operations.store(:to_name, {
|
252
|
+
:arg_list => [
|
253
|
+
['sn', CORBA::ARG_IN, ::CosNaming::NamingContextExt::StringName._tc]],
|
254
|
+
:result_type => ::CosNaming::Name._tc,
|
255
|
+
:exc_list => [
|
256
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
257
|
+
|
258
|
+
def to_name(sn)
|
259
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
260
|
+
'unimplemented servant operation',
|
261
|
+
1, ::CORBA::COMPLETED_NO)
|
262
|
+
end
|
263
|
+
|
264
|
+
Operations.store(:to_url, {
|
265
|
+
:arg_list => [
|
266
|
+
['addr', CORBA::ARG_IN, ::CosNaming::NamingContextExt::Address._tc],
|
267
|
+
['sn', CORBA::ARG_IN, ::CosNaming::NamingContextExt::StringName._tc]],
|
268
|
+
:result_type => ::CosNaming::NamingContextExt::URLString._tc,
|
269
|
+
:exc_list => [
|
270
|
+
::CosNaming::NamingContextExt::InvalidAddress._tc,
|
271
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
272
|
+
|
273
|
+
def to_url(addr, sn)
|
274
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
275
|
+
'unimplemented servant operation',
|
276
|
+
1, ::CORBA::COMPLETED_NO)
|
277
|
+
end
|
278
|
+
|
279
|
+
Operations.store(:resolve_str, {
|
280
|
+
:arg_list => [
|
281
|
+
['n', CORBA::ARG_IN, ::CosNaming::NamingContextExt::StringName._tc]],
|
282
|
+
:result_type => CORBA._tc_Object,
|
283
|
+
:exc_list => [
|
284
|
+
::CosNaming::NamingContext::NotFound._tc,
|
285
|
+
::CosNaming::NamingContext::CannotProceed._tc,
|
286
|
+
::CosNaming::NamingContext::InvalidName._tc]})
|
287
|
+
|
288
|
+
def resolve_str(n)
|
289
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
290
|
+
'unimplemented servant operation',
|
291
|
+
1, ::CORBA::COMPLETED_NO)
|
292
|
+
end
|
293
|
+
|
294
|
+
end #of Intf
|
295
|
+
|
296
|
+
Id = Intf::Id
|
297
|
+
|
298
|
+
include_interface(CosNaming::NamingContext::Intf)
|
299
|
+
|
300
|
+
include Intf
|
301
|
+
|
302
|
+
def _this; ::CosNaming::NamingContextExt._narrow(super); end
|
303
|
+
end #of servant NamingContextExt
|
304
|
+
end #of module CosNaming
|
305
|
+
|
306
|
+
} ## end of 'CosNaming.idl'
|
307
|
+
end #of module POA
|
308
|
+
# -*- END -*-
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#--------------------------------------------------------------------
|
2
|
+
# IDL.rb - R2CORBA inline IDL support
|
3
|
+
#
|
4
|
+
# Author: Martin Corino
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the R2CORBA LICENSE which is
|
8
|
+
# included with this program.
|
9
|
+
#
|
10
|
+
# Copyright (c) Remedy IT Expertise BV
|
11
|
+
#--------------------------------------------------------------------
|
12
|
+
module R2CORBA
|
13
|
+
|
14
|
+
module CORBA
|
15
|
+
def CORBA.implement(idlfile, params = {}, genbits = IDL::CLIENT_STUB, &block)
|
16
|
+
IDL.implement(idlfile, params, genbits, &block)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// -*- IDL -*-
|
2
|
+
|
3
|
+
#ifndef R2TAO_IORTABLE_IORTABLE_PIDL
|
4
|
+
#define R2TAO_IORTABLE_IORTABLE_PIDL
|
5
|
+
|
6
|
+
/// Define a module to avoid namespace pollution
|
7
|
+
module IORTable
|
8
|
+
{
|
9
|
+
local interface Locator;
|
10
|
+
|
11
|
+
/// The object key is already in the IORTable
|
12
|
+
exception AlreadyBound {};
|
13
|
+
|
14
|
+
/// Cannot find the object key in the IORTable
|
15
|
+
exception NotFound {};
|
16
|
+
|
17
|
+
/// Define the IORTable interface
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* Any TAO server can be configured as an corbaloc agent.
|
21
|
+
* Such agents forward requests generated using a simple
|
22
|
+
* ObjectKey in a corbaloc specifcation to the real location
|
23
|
+
* of the object.
|
24
|
+
* In TAO we implement this feature by dynamically (or
|
25
|
+
* statically) adding a new Object Adapter to the ORB, that
|
26
|
+
* handles any sort of request.
|
27
|
+
*/
|
28
|
+
local interface Table
|
29
|
+
{
|
30
|
+
/// Bind @a object_key to the @a IOR
|
31
|
+
void bind (in string object_key,
|
32
|
+
in string IOR)
|
33
|
+
raises (AlreadyBound);
|
34
|
+
|
35
|
+
/// Bind @a object_key to the @a IOR
|
36
|
+
void rebind (in string object_key,
|
37
|
+
in string IOR);
|
38
|
+
|
39
|
+
/// Remove the binding for @a object_key
|
40
|
+
void unbind (in string object_key)
|
41
|
+
raises (NotFound);
|
42
|
+
|
43
|
+
/// Set the locator, if no binding is set for an object_key we try
|
44
|
+
/// to use the locator to resolve it
|
45
|
+
void set_locator (in Locator the_locator);
|
46
|
+
};
|
47
|
+
|
48
|
+
/// Callback interface to locate object keys dynamically
|
49
|
+
/**
|
50
|
+
* The application can provide a callback interface to locate object
|
51
|
+
* keys dynamically.
|
52
|
+
*/
|
53
|
+
local interface Locator
|
54
|
+
{
|
55
|
+
/// Returns an IOR to use for @a object_key
|
56
|
+
string locate (in string object_key)
|
57
|
+
raises (NotFound);
|
58
|
+
};
|
59
|
+
};
|
60
|
+
|
61
|
+
#endif /* R2TAO_IORTABLE_IORTABLE_PIDL */
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# -*- Ruby -*-
|
2
|
+
#
|
3
|
+
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
|
+
# R2CORBA has been developed by:
|
5
|
+
# Remedy IT Expertise BV
|
6
|
+
# The Netherlands
|
7
|
+
# https://www.remedy.nl
|
8
|
+
#
|
9
|
+
|
10
|
+
module R2CORBA
|
11
|
+
|
12
|
+
CORBA.implement('lib/corba/idl/IORTable.pidl', {}, CORBA::IDL::CLIENT_STUB) {
|
13
|
+
|
14
|
+
module IORTable
|
15
|
+
|
16
|
+
module Locator; end ## interface forward
|
17
|
+
|
18
|
+
class AlreadyBound < CORBA::UserException
|
19
|
+
|
20
|
+
def AlreadyBound._tc
|
21
|
+
@@tc_AlreadyBound ||= CORBA::TypeCode::Except.new('IDL:IORTable/AlreadyBound:1.0'.freeze, 'AlreadyBound', self)
|
22
|
+
end
|
23
|
+
self._tc # register typecode
|
24
|
+
end #of exception AlreadyBound
|
25
|
+
|
26
|
+
class NotFound < CORBA::UserException
|
27
|
+
|
28
|
+
def NotFound._tc
|
29
|
+
@@tc_NotFound ||= CORBA::TypeCode::Except.new('IDL:IORTable/NotFound:1.0'.freeze, 'NotFound', self)
|
30
|
+
end
|
31
|
+
self._tc # register typecode
|
32
|
+
end #of exception NotFound
|
33
|
+
|
34
|
+
module Table ## interface
|
35
|
+
|
36
|
+
Id = 'IDL:IORTable/Table:1.0'.freeze
|
37
|
+
Ids = [ Id ].freeze
|
38
|
+
|
39
|
+
def Table._tc; @@tc_Table ||= CORBA::TypeCode::ObjectRef.new(Id, 'Table', self); end
|
40
|
+
self._tc # register typecode
|
41
|
+
|
42
|
+
def Table._narrow(obj)
|
43
|
+
return nil if CORBA.is_nil(obj)
|
44
|
+
return CORBA::Stub.create_stub(obj)._unchecked_narrow!(self)
|
45
|
+
end
|
46
|
+
|
47
|
+
def Table._duplicate(obj)
|
48
|
+
obj
|
49
|
+
end
|
50
|
+
|
51
|
+
def _interface_repository_id
|
52
|
+
IORTable::Table::Id
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
def bind(object_key, iOR)
|
57
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
58
|
+
'unimplemented operation on local interface',
|
59
|
+
1, ::CORBA::COMPLETED_NO)
|
60
|
+
end #of operation bind
|
61
|
+
|
62
|
+
def rebind(object_key, iOR)
|
63
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
64
|
+
'unimplemented operation on local interface',
|
65
|
+
1, ::CORBA::COMPLETED_NO)
|
66
|
+
end #of operation rebind
|
67
|
+
|
68
|
+
def unbind(object_key)
|
69
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
70
|
+
'unimplemented operation on local interface',
|
71
|
+
1, ::CORBA::COMPLETED_NO)
|
72
|
+
end #of operation unbind
|
73
|
+
|
74
|
+
def set_locator(the_locator)
|
75
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
76
|
+
'unimplemented operation on local interface',
|
77
|
+
1, ::CORBA::COMPLETED_NO)
|
78
|
+
end #of operation set_locator
|
79
|
+
end #of interface Table
|
80
|
+
|
81
|
+
|
82
|
+
module Locator ## interface
|
83
|
+
|
84
|
+
Id = 'IDL:IORTable/Locator:1.0'.freeze
|
85
|
+
Ids = [ Id ].freeze
|
86
|
+
|
87
|
+
def Locator._tc; @@tc_Locator ||= CORBA::TypeCode::ObjectRef.new(Id, 'Locator', self); end
|
88
|
+
self._tc # register typecode
|
89
|
+
|
90
|
+
def Locator._narrow(obj)
|
91
|
+
return nil if CORBA.is_nil(obj)
|
92
|
+
return CORBA::Stub.create_stub(obj)._unchecked_narrow!(self)
|
93
|
+
end
|
94
|
+
|
95
|
+
def Locator._duplicate(obj)
|
96
|
+
obj
|
97
|
+
end
|
98
|
+
|
99
|
+
def _interface_repository_id
|
100
|
+
IORTable::Locator::Id
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
def locate(object_key)
|
105
|
+
raise ::CORBA::NO_IMPLEMENT.new(
|
106
|
+
'unimplemented operation on local interface',
|
107
|
+
1, ::CORBA::COMPLETED_NO)
|
108
|
+
end #of operation locate
|
109
|
+
end #of interface Locator
|
110
|
+
|
111
|
+
end #of module IORTable
|
112
|
+
|
113
|
+
} ## end of 'lib/corba/idl/IORTable.pidl'
|
114
|
+
end #of module R2CORBA
|
115
|
+
|
116
|
+
# -*- END -*-
|