r2corba 1.5.5-universal-java → 1.6.0-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/corba.rb +1 -1
- data/lib/corba/cbase/ORB.rb +19 -16
- data/lib/corba/cbase/Request.rb +3 -3
- data/lib/corba/cbase/Values.rb +4 -2
- data/lib/corba/cbase/exception.rb +4 -2
- data/lib/corba/cbase/poa.rb +1 -1
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cbase/require.rb +8 -1
- data/lib/corba/common/Any.rb +2 -1
- data/lib/corba/common/IDL.rb +1 -1
- data/lib/corba/common/ORB.rb +21 -21
- data/lib/corba/common/Object.rb +14 -13
- data/lib/corba/common/Servant.rb +4 -4
- data/lib/corba/common/Stub.rb +6 -6
- data/lib/corba/common/Typecode.rb +35 -8
- data/lib/corba/common/Union.rb +5 -0
- data/lib/corba/common/Values.rb +1 -0
- data/lib/corba/common/const.rb +1 -1
- data/lib/corba/common/exception.rb +2 -1
- data/lib/corba/common/version.rb +2 -2
- data/lib/corba/idl/IDL.rb +1 -1
- data/lib/corba/jbase/Any.rb +6 -4
- data/lib/corba/jbase/ORB.rb +2 -2
- data/lib/corba/jbase/Object.rb +13 -13
- data/lib/corba/jbase/Request.rb +3 -3
- data/lib/corba/jbase/Streams.rb +64 -0
- data/lib/corba/jbase/Typecode.rb +3 -2
- data/lib/corba/jbase/Values.rb +2 -0
- data/lib/corba/jbase/exception.rb +1 -0
- data/lib/corba/jbase/poa.rb +18 -18
- data/lib/corba/jbase/policies.rb +29 -29
- data/lib/corba/jbase/require.rb +4 -0
- data/lib/corba/svcs/ins/cos_naming.rb +10 -1
- data/lib/corba/svcs/ins/ins.rb +45 -45
- data/lib/corba/svcs/ins/naming_service.rb +6 -6
- data/lib/ridlbe/ruby/config.rb +27 -20
- data/lib/ridlbe/ruby/walker.rb +276 -253
- data/mkrf_conf_bingem.rb +4 -4
- data/rakelib/build.rake +1 -1
- data/rakelib/config.rake +1 -1
- data/rakelib/config.rb +9 -9
- data/rakelib/gem.rake +20 -20
- data/rakelib/gem.rb +1 -1
- data/rakelib/package.rake +1 -1
- data/test/BiDirectional/client.rb +16 -16
- data/test/BiDirectional/run_test.rb +10 -10
- data/test/BiDirectional/server.rb +20 -20
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
- data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
- data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
- data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
- data/test/Collocation/run_test.rb +10 -10
- data/test/Collocation/test.rb +26 -19
- data/test/Connect_Timeout/client.rb +15 -15
- data/test/Connect_Timeout/run_test.rb +10 -10
- data/test/DII/client.rb +27 -27
- data/test/DII/run_test.rb +10 -10
- data/test/DII/server.rb +15 -15
- data/test/DSI/client.rb +15 -15
- data/test/DSI/run_test.rb +10 -10
- data/test/DSI/server.rb +16 -16
- data/test/Exceptions/client.rb +19 -19
- data/test/Exceptions/run_test.rb +10 -10
- data/test/Exceptions/server.rb +15 -15
- data/test/Hello/client.rb +15 -15
- data/test/Hello/run_test.rb +10 -10
- data/test/Hello/server.rb +16 -16
- data/test/IDL_Test/client.rb +20 -20
- data/test/IDL_Test/run_test.rb +10 -10
- data/test/IDL_Test/server.rb +18 -18
- data/test/IORMap/client.rb +14 -14
- data/test/IORMap/run_test.rb +10 -10
- data/test/IORMap/server.rb +22 -22
- data/test/IORTable/client.rb +14 -14
- data/test/IORTable/run_test.rb +10 -10
- data/test/IORTable/server.rb +22 -22
- data/test/Implicit_Conversion/client.rb +19 -16
- data/test/Implicit_Conversion/run_test.rb +10 -10
- data/test/Implicit_Conversion/server.rb +15 -15
- data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
- data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
- data/test/Multi_Threading/Simple/client.rb +15 -15
- data/test/Multi_Threading/Simple/run_test.rb +10 -10
- data/test/Multi_Threading/Simple/server.rb +15 -15
- data/test/Multi_Threading/Threads/client.rb +15 -15
- data/test/Multi_Threading/Threads/run_test.rb +10 -10
- data/test/Multi_Threading/Threads/server.rb +17 -17
- data/test/Multi_Threading/Threads/watchdog.rb +15 -15
- data/test/Multiple_Servant_Interfaces/client.rb +13 -13
- data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
- data/test/Multiple_Servant_Interfaces/server.rb +17 -17
- data/test/Nil/run_test.rb +10 -10
- data/test/Nil/test.rb +13 -13
- data/test/OBV/AbstractInterface/client.rb +13 -13
- data/test/OBV/AbstractInterface/run_test.rb +10 -10
- data/test/OBV/AbstractInterface/server.rb +19 -18
- data/test/OBV/Custom/OBV_impl.rb +2 -0
- data/test/OBV/Custom/client.rb +13 -13
- data/test/OBV/Custom/run_test.rb +10 -10
- data/test/OBV/Custom/server.rb +15 -15
- data/test/OBV/Simple/OBV_impl.rb +1 -0
- data/test/OBV/Simple/client.rb +13 -13
- data/test/OBV/Simple/run_test.rb +10 -10
- data/test/OBV/Simple/server.rb +15 -15
- data/test/OBV/Simple_Event/Event_impl.rb +1 -0
- data/test/OBV/Simple_Event/client.rb +13 -13
- data/test/OBV/Simple_Event/run_test.rb +10 -10
- data/test/OBV/Simple_Event/server.rb +15 -15
- data/test/OBV/Supports/client.rb +18 -18
- data/test/OBV/Supports/run_test.rb +10 -10
- data/test/OBV/Supports/server.rb +14 -14
- data/test/OBV/Supports/supports_impl.rb +3 -0
- data/test/OBV/Tree/client.rb +13 -13
- data/test/OBV/Tree/run_test.rb +10 -10
- data/test/OBV/Tree/server.rb +18 -18
- data/test/OBV/Truncatable/client.rb +56 -56
- data/test/OBV/Truncatable/run_test.rb +10 -10
- data/test/OBV/Truncatable/server.rb +14 -14
- data/test/OBV/ValueBox/client.rb +148 -147
- data/test/OBV/ValueBox/run_test.rb +10 -10
- data/test/OBV/ValueBox/server.rb +15 -15
- data/test/Object/client.rb +13 -13
- data/test/Object/run_test.rb +10 -10
- data/test/Object/server.rb +18 -18
- data/test/POA/run_test.rb +10 -10
- data/test/POA/test.rb +15 -15
- data/test/Param_Test/client.rb +47 -47
- data/test/Param_Test/run_test.rb +10 -10
- data/test/Param_Test/server.rb +55 -55
- data/test/Performance/Simple/client.rb +15 -15
- data/test/Performance/Simple/run_test.rb +10 -10
- data/test/Performance/Simple/server.rb +15 -15
- data/test/Policies/run_test.rb +10 -10
- data/test/Policies/test.rb +23 -23
- data/test/Timeout/client.rb +17 -17
- data/test/Timeout/run_test.rb +10 -10
- data/test/Timeout/server.rb +18 -18
- data/test/lib/test.rb +13 -7
- data/test/test_runner.rb +19 -19
- metadata +6 -6
data/lib/corba/jbase/Streams.rb
CHANGED
@@ -92,6 +92,7 @@ module R2CORBA
|
|
92
92
|
CORBA::Exception.native2r($!)
|
93
93
|
end
|
94
94
|
end
|
95
|
+
|
95
96
|
def read_boolean()
|
96
97
|
begin
|
97
98
|
self.stream_.read_boolean()
|
@@ -99,6 +100,7 @@ module R2CORBA
|
|
99
100
|
CORBA::Exception.native2r($!)
|
100
101
|
end
|
101
102
|
end
|
103
|
+
|
102
104
|
def read_boolean_array(arr, offset, length)
|
103
105
|
jarr = Array.new(arr.size).to_java(:boolean)
|
104
106
|
begin
|
@@ -108,6 +110,7 @@ module R2CORBA
|
|
108
110
|
end
|
109
111
|
arr.fill(offset, length) {|i| jarr[i]}
|
110
112
|
end
|
113
|
+
|
111
114
|
def read_char()
|
112
115
|
begin
|
113
116
|
self.stream_.read_char().chr
|
@@ -115,6 +118,7 @@ module R2CORBA
|
|
115
118
|
CORBA::Exception.native2r($!)
|
116
119
|
end
|
117
120
|
end
|
121
|
+
|
118
122
|
def read_char_array(arr, offset, length)
|
119
123
|
jarr = Array.new(arr.size).to_java(:char)
|
120
124
|
begin
|
@@ -124,6 +128,7 @@ module R2CORBA
|
|
124
128
|
end
|
125
129
|
arr.fill(offset, length) {|i| jarr[i].chr }
|
126
130
|
end
|
131
|
+
|
127
132
|
def read_wchar()
|
128
133
|
begin
|
129
134
|
self.stream_.read_wchar()
|
@@ -131,6 +136,7 @@ module R2CORBA
|
|
131
136
|
CORBA::Exception.native2r($!)
|
132
137
|
end
|
133
138
|
end
|
139
|
+
|
134
140
|
def read_wchar_array(arr, offset, length)
|
135
141
|
jarr = Array.new(arr.size).to_java(:char)
|
136
142
|
begin
|
@@ -140,6 +146,7 @@ module R2CORBA
|
|
140
146
|
end
|
141
147
|
arr.fill(offset, length) {|i| jarr[i] }
|
142
148
|
end
|
149
|
+
|
143
150
|
def read_octet(value)
|
144
151
|
begin
|
145
152
|
[self.stream_.read_octet()].pack('c').unpack('C').first
|
@@ -147,6 +154,7 @@ module R2CORBA
|
|
147
154
|
CORBA::Exception.native2r($!)
|
148
155
|
end
|
149
156
|
end
|
157
|
+
|
150
158
|
def read_octet_array(arr, offset, length)
|
151
159
|
jarr = Array.new(arr.size).to_java(:byte)
|
152
160
|
begin
|
@@ -157,6 +165,7 @@ module R2CORBA
|
|
157
165
|
jarr = jarr.pack('c*').unpack('C*')
|
158
166
|
arr.fill(offset, length) {|i| jarr[i] }
|
159
167
|
end
|
168
|
+
|
160
169
|
def read_short()
|
161
170
|
begin
|
162
171
|
self.stream_.read_short()
|
@@ -164,6 +173,7 @@ module R2CORBA
|
|
164
173
|
CORBA::Exception.native2r($!)
|
165
174
|
end
|
166
175
|
end
|
176
|
+
|
167
177
|
def read_short_array(arr, offset, length)
|
168
178
|
jarr = Array.new(arr.size).to_java(:short)
|
169
179
|
begin
|
@@ -173,6 +183,7 @@ module R2CORBA
|
|
173
183
|
end
|
174
184
|
arr.fill(offset, length) {|i| jarr[i] }
|
175
185
|
end
|
186
|
+
|
176
187
|
def read_ushort()
|
177
188
|
begin
|
178
189
|
[self.stream_.read_ushort()].pack('s').unpack('S').first
|
@@ -180,6 +191,7 @@ module R2CORBA
|
|
180
191
|
CORBA::Exception.native2r($!)
|
181
192
|
end
|
182
193
|
end
|
194
|
+
|
183
195
|
def read_ushort_array(arr, offset, length)
|
184
196
|
jarr = Array.new(arr.size).to_java(:short)
|
185
197
|
begin
|
@@ -190,6 +202,7 @@ module R2CORBA
|
|
190
202
|
jarr = jarr.pack('s*').unpack('S*')
|
191
203
|
arr.fill(offset, length) {|i| jarr[i] }
|
192
204
|
end
|
205
|
+
|
193
206
|
def read_long()
|
194
207
|
begin
|
195
208
|
self.stream_.read_long()
|
@@ -197,6 +210,7 @@ module R2CORBA
|
|
197
210
|
CORBA::Exception.native2r($!)
|
198
211
|
end
|
199
212
|
end
|
213
|
+
|
200
214
|
def read_long_array(arr, offset, length)
|
201
215
|
jarr = Array.new(arr.size).to_java(:int)
|
202
216
|
begin
|
@@ -206,6 +220,7 @@ module R2CORBA
|
|
206
220
|
end
|
207
221
|
arr.fill(offset, length) {|i| jarr[i] }
|
208
222
|
end
|
223
|
+
|
209
224
|
def read_ulong()
|
210
225
|
begin
|
211
226
|
[self.stream_.read_ulong()].pack('l').unpack('L').first
|
@@ -213,6 +228,7 @@ module R2CORBA
|
|
213
228
|
CORBA::Exception.native2r($!)
|
214
229
|
end
|
215
230
|
end
|
231
|
+
|
216
232
|
def read_ulong_array(arr, offset, length)
|
217
233
|
jarr = Array.new(arr.size).to_java(:int)
|
218
234
|
begin
|
@@ -223,6 +239,7 @@ module R2CORBA
|
|
223
239
|
jarr = jarr.pack('l*').unpack('L*')
|
224
240
|
arr.fill(offset, length) {|i| jarr[i] }
|
225
241
|
end
|
242
|
+
|
226
243
|
def read_longlong()
|
227
244
|
begin
|
228
245
|
self.stream_.read_longlong()
|
@@ -230,6 +247,7 @@ module R2CORBA
|
|
230
247
|
CORBA::Exception.native2r($!)
|
231
248
|
end
|
232
249
|
end
|
250
|
+
|
233
251
|
def read_longlong_array(arr, offset, length)
|
234
252
|
jarr = Array.new(arr.size).to_java(:long)
|
235
253
|
begin
|
@@ -239,6 +257,7 @@ module R2CORBA
|
|
239
257
|
end
|
240
258
|
arr.fill(offset, length) {|i| jarr[i] }
|
241
259
|
end
|
260
|
+
|
242
261
|
def read_ulonglong()
|
243
262
|
begin
|
244
263
|
[self.stream_.read_ulonglong()].pack('q').unpack('Q').first
|
@@ -246,6 +265,7 @@ module R2CORBA
|
|
246
265
|
CORBA::Exception.native2r($!)
|
247
266
|
end
|
248
267
|
end
|
268
|
+
|
249
269
|
def read_ulonglong_array(arr, offset, length)
|
250
270
|
jarr = Array.new(arr.size).to_java(:long)
|
251
271
|
begin
|
@@ -256,6 +276,7 @@ module R2CORBA
|
|
256
276
|
jarr = jarr.pack('q*').unpack('Q*')
|
257
277
|
arr.fill(offset, length) {|i| jarr[i] }
|
258
278
|
end
|
279
|
+
|
259
280
|
def read_float()
|
260
281
|
begin
|
261
282
|
self.stream_.read_float()
|
@@ -263,6 +284,7 @@ module R2CORBA
|
|
263
284
|
CORBA::Exception.native2r($!)
|
264
285
|
end
|
265
286
|
end
|
287
|
+
|
266
288
|
def read_float_array(arr, offset, length)
|
267
289
|
jarr = Array.new(arr.size).to_java(:float)
|
268
290
|
begin
|
@@ -272,6 +294,7 @@ module R2CORBA
|
|
272
294
|
end
|
273
295
|
arr.fill(offset, length) {|i| jarr[i] }
|
274
296
|
end
|
297
|
+
|
275
298
|
def read_double()
|
276
299
|
begin
|
277
300
|
self.stream_.read_double()
|
@@ -279,6 +302,7 @@ module R2CORBA
|
|
279
302
|
CORBA::Exception.native2r($!)
|
280
303
|
end
|
281
304
|
end
|
305
|
+
|
282
306
|
def read_double_array(arr, offset, length)
|
283
307
|
jarr = Array.new(arr.size).to_java(:double)
|
284
308
|
begin
|
@@ -288,6 +312,7 @@ module R2CORBA
|
|
288
312
|
end
|
289
313
|
arr.fill(offset, length) {|i| jarr[i] }
|
290
314
|
end
|
315
|
+
|
291
316
|
def read_string()
|
292
317
|
begin
|
293
318
|
self.stream_.read_string()
|
@@ -295,6 +320,7 @@ module R2CORBA
|
|
295
320
|
CORBA::Exception.native2r($!)
|
296
321
|
end
|
297
322
|
end
|
323
|
+
|
298
324
|
def read_wstring()
|
299
325
|
begin
|
300
326
|
self.stream_.read_wstring()
|
@@ -302,6 +328,7 @@ module R2CORBA
|
|
302
328
|
CORBA::Exception.native2r($!)
|
303
329
|
end
|
304
330
|
end
|
331
|
+
|
305
332
|
def read_Object()
|
306
333
|
begin
|
307
334
|
CORBA::Object._wrap_native(self.stream_().read_Object())
|
@@ -309,6 +336,7 @@ module R2CORBA
|
|
309
336
|
CORBA::Exception.native2r($!)
|
310
337
|
end
|
311
338
|
end
|
339
|
+
|
312
340
|
def read_TypeCode()
|
313
341
|
begin
|
314
342
|
CORBA::TypeCode._wrap_native(self.stream_().read_TypeCode())
|
@@ -316,6 +344,7 @@ module R2CORBA
|
|
316
344
|
CORBA::Exception.native2r($!)
|
317
345
|
end
|
318
346
|
end
|
347
|
+
|
319
348
|
def read_fixed()
|
320
349
|
begin
|
321
350
|
java.math.BigDecimal.new(self.stream_.read_fixed().toString())
|
@@ -323,6 +352,7 @@ module R2CORBA
|
|
323
352
|
CORBA::Exception.native2r($!)
|
324
353
|
end
|
325
354
|
end
|
355
|
+
|
326
356
|
def read_construct(tc)
|
327
357
|
begin
|
328
358
|
jany = self.stream_.orb().create_any()
|
@@ -332,6 +362,7 @@ module R2CORBA
|
|
332
362
|
CORBA::Exception.native2r($!)
|
333
363
|
end
|
334
364
|
end
|
365
|
+
|
335
366
|
def read_Abstract()
|
336
367
|
begin
|
337
368
|
obj = self.stream_.read_abstract_interface()
|
@@ -341,6 +372,7 @@ module R2CORBA
|
|
341
372
|
obj = CORBA::Object._wrap_native(obj) if obj.is_a?(CORBA::Native::Object)
|
342
373
|
obj
|
343
374
|
end
|
375
|
+
|
344
376
|
def read_value()
|
345
377
|
begin
|
346
378
|
self.stream_.read_value()
|
@@ -436,6 +468,7 @@ module R2CORBA
|
|
436
468
|
CORBA::Exception.native2r($!)
|
437
469
|
end
|
438
470
|
end
|
471
|
+
|
439
472
|
def write_boolean(value)
|
440
473
|
begin
|
441
474
|
self.stream_.write_boolean(value)
|
@@ -443,6 +476,7 @@ module R2CORBA
|
|
443
476
|
CORBA::Exception.native2r($!)
|
444
477
|
end
|
445
478
|
end
|
479
|
+
|
446
480
|
def write_boolean_array(value, offset, length)
|
447
481
|
begin
|
448
482
|
self.stream_.write_boolean_array(value.to_java(:boolean), offset, length)
|
@@ -450,6 +484,7 @@ module R2CORBA
|
|
450
484
|
CORBA::Exception.native2r($!)
|
451
485
|
end
|
452
486
|
end
|
487
|
+
|
453
488
|
def write_char(value)
|
454
489
|
begin
|
455
490
|
self.stream_.write_char(value[0])
|
@@ -457,6 +492,7 @@ module R2CORBA
|
|
457
492
|
CORBA::Exception.native2r($!)
|
458
493
|
end
|
459
494
|
end
|
495
|
+
|
460
496
|
def write_char_array(value, offset, length)
|
461
497
|
begin
|
462
498
|
self.stream_.write_char_array(value.collect{|c| c[0]}.to_java(:char), offset, length)
|
@@ -464,9 +500,11 @@ module R2CORBA
|
|
464
500
|
CORBA::Exception.native2r($!)
|
465
501
|
end
|
466
502
|
end
|
503
|
+
|
467
504
|
def write_wchar(value)
|
468
505
|
self.stream_.write_wchar(value)
|
469
506
|
end
|
507
|
+
|
470
508
|
def write_wchar_array(value, offset, length)
|
471
509
|
begin
|
472
510
|
self.stream_.write_wchar_array(value.to_java(:char), offset, length)
|
@@ -474,6 +512,7 @@ module R2CORBA
|
|
474
512
|
CORBA::Exception.native2r($!)
|
475
513
|
end
|
476
514
|
end
|
515
|
+
|
477
516
|
def write_octet(value)
|
478
517
|
begin
|
479
518
|
self.stream_.write_octet([value].pack('C').unpack('c').first)
|
@@ -481,6 +520,7 @@ module R2CORBA
|
|
481
520
|
CORBA::Exception.native2r($!)
|
482
521
|
end
|
483
522
|
end
|
523
|
+
|
484
524
|
def write_octet_array(value, offset, length)
|
485
525
|
begin
|
486
526
|
self.stream_.write_octet_array(value.pack('C*').unpack('c*').to_java(:byte), offset, length)
|
@@ -488,6 +528,7 @@ module R2CORBA
|
|
488
528
|
CORBA::Exception.native2r($!)
|
489
529
|
end
|
490
530
|
end
|
531
|
+
|
491
532
|
def write_short(value)
|
492
533
|
begin
|
493
534
|
self.stream_.write_short(value)
|
@@ -495,6 +536,7 @@ module R2CORBA
|
|
495
536
|
CORBA::Exception.native2r($!)
|
496
537
|
end
|
497
538
|
end
|
539
|
+
|
498
540
|
def write_short_array(value, offset, length)
|
499
541
|
begin
|
500
542
|
self.stream_.write_short_array(value.to_java(:short), offset, length)
|
@@ -502,6 +544,7 @@ module R2CORBA
|
|
502
544
|
CORBA::Exception.native2r($!)
|
503
545
|
end
|
504
546
|
end
|
547
|
+
|
505
548
|
def write_ushort(value)
|
506
549
|
begin
|
507
550
|
self.stream_.write_ushort([value].pack('S').unpack('s').first)
|
@@ -509,6 +552,7 @@ module R2CORBA
|
|
509
552
|
CORBA::Exception.native2r($!)
|
510
553
|
end
|
511
554
|
end
|
555
|
+
|
512
556
|
def write_ushort_array(value, offset, length)
|
513
557
|
begin
|
514
558
|
self.stream_.write_ushort_array(value.pack('S*').unpack('s*').to_java(:short), offset, length)
|
@@ -516,6 +560,7 @@ module R2CORBA
|
|
516
560
|
CORBA::Exception.native2r($!)
|
517
561
|
end
|
518
562
|
end
|
563
|
+
|
519
564
|
def write_long(value)
|
520
565
|
begin
|
521
566
|
self.stream_.write_long(value)
|
@@ -523,6 +568,7 @@ module R2CORBA
|
|
523
568
|
CORBA::Exception.native2r($!)
|
524
569
|
end
|
525
570
|
end
|
571
|
+
|
526
572
|
def write_long_array(value, offset, length)
|
527
573
|
begin
|
528
574
|
self.stream_.write_long_array(value.to_java(:int), offset, length)
|
@@ -530,6 +576,7 @@ module R2CORBA
|
|
530
576
|
CORBA::Exception.native2r($!)
|
531
577
|
end
|
532
578
|
end
|
579
|
+
|
533
580
|
def write_ulong(value)
|
534
581
|
begin
|
535
582
|
self.stream_.write_ulong([value].pack('L').unpack('l').first)
|
@@ -537,6 +584,7 @@ module R2CORBA
|
|
537
584
|
CORBA::Exception.native2r($!)
|
538
585
|
end
|
539
586
|
end
|
587
|
+
|
540
588
|
def write_ulong_array(value, offset, length)
|
541
589
|
begin
|
542
590
|
self.stream_.write_ulong_array(value.pack('L*').unpack('l*').to_java(:int), offset, length)
|
@@ -544,6 +592,7 @@ module R2CORBA
|
|
544
592
|
CORBA::Exception.native2r($!)
|
545
593
|
end
|
546
594
|
end
|
595
|
+
|
547
596
|
def write_longlong(value)
|
548
597
|
begin
|
549
598
|
self.stream_.write_longlong(value)
|
@@ -551,6 +600,7 @@ module R2CORBA
|
|
551
600
|
CORBA::Exception.native2r($!)
|
552
601
|
end
|
553
602
|
end
|
603
|
+
|
554
604
|
def write_longlong_array(value, offset, length)
|
555
605
|
begin
|
556
606
|
self.stream_.write_longlong_array(value.to_java(:long), offset, length)
|
@@ -558,6 +608,7 @@ module R2CORBA
|
|
558
608
|
CORBA::Exception.native2r($!)
|
559
609
|
end
|
560
610
|
end
|
611
|
+
|
561
612
|
def write_ulonglong(value)
|
562
613
|
begin
|
563
614
|
self.stream_.write_ulonglong([value].pack('Q').unpack('q').first)
|
@@ -565,6 +616,7 @@ module R2CORBA
|
|
565
616
|
CORBA::Exception.native2r($!)
|
566
617
|
end
|
567
618
|
end
|
619
|
+
|
568
620
|
def write_ulonglong_array(value, offset, length)
|
569
621
|
begin
|
570
622
|
self.stream_.write_ulonglong_array(value.pack('Q*').unpack('q*').to_java(:long), offset, length)
|
@@ -572,6 +624,7 @@ module R2CORBA
|
|
572
624
|
CORBA::Exception.native2r($!)
|
573
625
|
end
|
574
626
|
end
|
627
|
+
|
575
628
|
def write_float(value)
|
576
629
|
begin
|
577
630
|
self.stream_.write_float(value)
|
@@ -579,6 +632,7 @@ module R2CORBA
|
|
579
632
|
CORBA::Exception.native2r($!)
|
580
633
|
end
|
581
634
|
end
|
635
|
+
|
582
636
|
def write_float_array(value, offset, length)
|
583
637
|
begin
|
584
638
|
self.stream_.write_float_array(value.to_java(:float), offset, length)
|
@@ -586,6 +640,7 @@ module R2CORBA
|
|
586
640
|
CORBA::Exception.native2r($!)
|
587
641
|
end
|
588
642
|
end
|
643
|
+
|
589
644
|
def write_double(value)
|
590
645
|
begin
|
591
646
|
self.stream_.write_double(value)
|
@@ -593,6 +648,7 @@ module R2CORBA
|
|
593
648
|
CORBA::Exception.native2r($!)
|
594
649
|
end
|
595
650
|
end
|
651
|
+
|
596
652
|
def write_double_array(value, offset, length)
|
597
653
|
begin
|
598
654
|
self.stream_.write_double_array(value.to_java(:double), offset, length)
|
@@ -600,6 +656,7 @@ module R2CORBA
|
|
600
656
|
CORBA::Exception.native2r($!)
|
601
657
|
end
|
602
658
|
end
|
659
|
+
|
603
660
|
def write_string(value)
|
604
661
|
begin
|
605
662
|
self.stream_.write_string(value)
|
@@ -607,6 +664,7 @@ module R2CORBA
|
|
607
664
|
CORBA::Exception.native2r($!)
|
608
665
|
end
|
609
666
|
end
|
667
|
+
|
610
668
|
def write_wstring(value)
|
611
669
|
begin
|
612
670
|
self.stream_.write_wstring(value.inject('') {|s, b| s << b.chr})
|
@@ -614,6 +672,7 @@ module R2CORBA
|
|
614
672
|
CORBA::Exception.native2r($!)
|
615
673
|
end
|
616
674
|
end
|
675
|
+
|
617
676
|
def write_fixed(value)
|
618
677
|
begin
|
619
678
|
self.stream_.write_fixed(java.math.BigDecimal.new(value.to_s))
|
@@ -621,6 +680,7 @@ module R2CORBA
|
|
621
680
|
CORBA::Exception.native2r($!)
|
622
681
|
end
|
623
682
|
end
|
683
|
+
|
624
684
|
def write_Object(value)
|
625
685
|
begin
|
626
686
|
self.stream_.write_Object(value.objref_)
|
@@ -628,6 +688,7 @@ module R2CORBA
|
|
628
688
|
CORBA::Exception.native2r($!)
|
629
689
|
end
|
630
690
|
end
|
691
|
+
|
631
692
|
def write_TypeCode(value)
|
632
693
|
begin
|
633
694
|
self.stream_.write_TypeCode(value.tc_)
|
@@ -635,6 +696,7 @@ module R2CORBA
|
|
635
696
|
CORBA::Exception.native2r($!)
|
636
697
|
end
|
637
698
|
end
|
699
|
+
|
638
700
|
def write_construct(value, tc)
|
639
701
|
begin
|
640
702
|
CORBA::Any.to_any(value, tc).to_java(self.stream_().orb()).write_value(self.stream_)
|
@@ -642,6 +704,7 @@ module R2CORBA
|
|
642
704
|
CORBA::Exception.native2r($!)
|
643
705
|
end
|
644
706
|
end
|
707
|
+
|
645
708
|
def write_Abstract(value)
|
646
709
|
begin
|
647
710
|
self.stream_().write_abstract_interface(value.is_a?(CORBA::Object) ? value.objref_ : value)
|
@@ -649,6 +712,7 @@ module R2CORBA
|
|
649
712
|
CORBA::Exception.native2r($!)
|
650
713
|
end
|
651
714
|
end
|
715
|
+
|
652
716
|
def write_value(value)
|
653
717
|
begin
|
654
718
|
self.stream_.write_value(value)
|