r2corba 1.4.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +159 -0
  3. data/LICENSE +59 -0
  4. data/README +62 -0
  5. data/THANKS +52 -0
  6. data/bin/r2corba +8 -0
  7. data/bin/r2corba.bat +20 -0
  8. data/bin/ridlc +11 -0
  9. data/bin/ridlc.bat +23 -0
  10. data/bin/rins +7 -0
  11. data/bin/rins.bat +19 -0
  12. data/ext/.keep +0 -0
  13. data/lib/corba/cbase/IORMap.rb +33 -0
  14. data/lib/corba/cbase/ORB.rb +231 -0
  15. data/lib/corba/cbase/Request.rb +134 -0
  16. data/lib/corba/cbase/Streams.rb +129 -0
  17. data/lib/corba/cbase/Stub.rb +19 -0
  18. data/lib/corba/cbase/Typecode.rb +441 -0
  19. data/lib/corba/cbase/Values.rb +129 -0
  20. data/lib/corba/cbase/exception.rb +66 -0
  21. data/lib/corba/cbase/poa.rb +23 -0
  22. data/lib/corba/cbase/policies.rb +78 -0
  23. data/lib/corba/cbase/post_require.rb +14 -0
  24. data/lib/corba/cbase/require.rb +28 -0
  25. data/lib/corba/cmds/base.rb +85 -0
  26. data/lib/corba/cmds/test.rb +30 -0
  27. data/lib/corba/common/Any.rb +91 -0
  28. data/lib/corba/common/IDL.rb +104 -0
  29. data/lib/corba/common/ORB.rb +368 -0
  30. data/lib/corba/common/Object.rb +208 -0
  31. data/lib/corba/common/Request.rb +20 -0
  32. data/lib/corba/common/Servant.rb +108 -0
  33. data/lib/corba/common/Struct.rb +22 -0
  34. data/lib/corba/common/Stub.rb +79 -0
  35. data/lib/corba/common/Typecode.rb +1121 -0
  36. data/lib/corba/common/Union.rb +56 -0
  37. data/lib/corba/common/Values.rb +92 -0
  38. data/lib/corba/common/const.rb +22 -0
  39. data/lib/corba/common/exception.rb +68 -0
  40. data/lib/corba/common/require.rb +27 -0
  41. data/lib/corba/common/version.rb +22 -0
  42. data/lib/corba/idl/BiDirPolicyC.rb +63 -0
  43. data/lib/corba/idl/CosNamingC.rb +461 -0
  44. data/lib/corba/idl/CosNamingS.rb +309 -0
  45. data/lib/corba/idl/IDL.rb +21 -0
  46. data/lib/corba/idl/IORTable.pidl +62 -0
  47. data/lib/corba/idl/IORTableC.rb +117 -0
  48. data/lib/corba/idl/MessagingC.rb +904 -0
  49. data/lib/corba/idl/POAC.rb +930 -0
  50. data/lib/corba/idl/TAO_Ext.pidl +46 -0
  51. data/lib/corba/idl/TAO_ExtC.rb +179 -0
  52. data/lib/corba/idl/r2c_orb.rb +572 -0
  53. data/lib/corba/idl/require.rb +20 -0
  54. data/lib/corba/jbase/Any.rb +273 -0
  55. data/lib/corba/jbase/IORMap.rb +36 -0
  56. data/lib/corba/jbase/ORB.rb +99 -0
  57. data/lib/corba/jbase/Object.rb +98 -0
  58. data/lib/corba/jbase/Request.rb +226 -0
  59. data/lib/corba/jbase/Servant.rb +247 -0
  60. data/lib/corba/jbase/ServerRequest.rb +128 -0
  61. data/lib/corba/jbase/Streams.rb +671 -0
  62. data/lib/corba/jbase/Stub.rb +38 -0
  63. data/lib/corba/jbase/Typecode.rb +520 -0
  64. data/lib/corba/jbase/Values.rb +173 -0
  65. data/lib/corba/jbase/exception.rb +106 -0
  66. data/lib/corba/jbase/poa.rb +229 -0
  67. data/lib/corba/jbase/policies.rb +300 -0
  68. data/lib/corba/jbase/post_require.rb +14 -0
  69. data/lib/corba/jbase/require.rb +86 -0
  70. data/lib/corba/naming.rb +14 -0
  71. data/lib/corba/naming_service.rb +15 -0
  72. data/lib/corba/poa.rb +15 -0
  73. data/lib/corba/policies.rb +18 -0
  74. data/lib/corba/require.rb +17 -0
  75. data/lib/corba/svcs/ins/cos_naming.rb +426 -0
  76. data/lib/corba/svcs/ins/ins.rb +526 -0
  77. data/lib/corba/svcs/ins/naming_service.rb +119 -0
  78. data/lib/corba.rb +16 -0
  79. data/lib/ridlbe/ruby/config.rb +336 -0
  80. data/lib/ridlbe/ruby/orb.pidlc +0 -0
  81. data/lib/ridlbe/ruby/require.rb +16 -0
  82. data/lib/ridlbe/ruby/walker.rb +1582 -0
  83. data/mkrf_conf_bingem.rb +101 -0
  84. data/rakelib/bin.rake +80 -0
  85. data/rakelib/bin.rb +146 -0
  86. data/rakelib/build.rake +87 -0
  87. data/rakelib/config.rake +52 -0
  88. data/rakelib/config.rb +450 -0
  89. data/rakelib/ext.rake +242 -0
  90. data/rakelib/ext.rb +308 -0
  91. data/rakelib/ext_r2tao.rb +232 -0
  92. data/rakelib/gem.rake +212 -0
  93. data/rakelib/gem.rb +146 -0
  94. data/rakelib/package.rake +26 -0
  95. data/rakelib/test.rake +23 -0
  96. data/test/BiDirectional/Test.idl +34 -0
  97. data/test/BiDirectional/client.rb +132 -0
  98. data/test/BiDirectional/run_test.rb +68 -0
  99. data/test/BiDirectional/server.ior +1 -0
  100. data/test/BiDirectional/server.rb +169 -0
  101. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +27 -0
  102. data/test/CORBA_Services/Naming/BindingIterator/client.rb +121 -0
  103. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +1 -0
  104. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +82 -0
  105. data/test/CORBA_Services/Naming/BindingIterator/server.rb +109 -0
  106. data/test/CORBA_Services/Naming/Corbaname/Test.idl +27 -0
  107. data/test/CORBA_Services/Naming/Corbaname/client.rb +85 -0
  108. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +1 -0
  109. data/test/CORBA_Services/Naming/Corbaname/ins.ior +1 -0
  110. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +88 -0
  111. data/test/CORBA_Services/Naming/Corbaname/server.rb +135 -0
  112. data/test/CORBA_Services/Naming/Simple/Test.idl +27 -0
  113. data/test/CORBA_Services/Naming/Simple/client.rb +84 -0
  114. data/test/CORBA_Services/Naming/Simple/ins.ior +1 -0
  115. data/test/CORBA_Services/Naming/Simple/run_test.rb +82 -0
  116. data/test/CORBA_Services/Naming/Simple/server.rb +109 -0
  117. data/test/Collocation/Diamond.idl +39 -0
  118. data/test/Collocation/run_test.rb +52 -0
  119. data/test/Collocation/test.rb +195 -0
  120. data/test/Connect_Timeout/Test.idl +27 -0
  121. data/test/Connect_Timeout/client.rb +111 -0
  122. data/test/Connect_Timeout/run_test.rb +52 -0
  123. data/test/DII/Test.idl +27 -0
  124. data/test/DII/client.rb +115 -0
  125. data/test/DII/run_test.rb +69 -0
  126. data/test/DII/server.ior +1 -0
  127. data/test/DII/server.rb +95 -0
  128. data/test/DSI/Test.idl +27 -0
  129. data/test/DSI/client.rb +66 -0
  130. data/test/DSI/run_test.rb +69 -0
  131. data/test/DSI/server.ior +1 -0
  132. data/test/DSI/server.rb +106 -0
  133. data/test/Exceptions/Test.idl +48 -0
  134. data/test/Exceptions/client.rb +118 -0
  135. data/test/Exceptions/run_test.rb +69 -0
  136. data/test/Exceptions/server.ior +1 -0
  137. data/test/Exceptions/server.rb +131 -0
  138. data/test/Hello/Test.idl +27 -0
  139. data/test/Hello/client.rb +78 -0
  140. data/test/Hello/run_test.rb +71 -0
  141. data/test/Hello/server.rb +95 -0
  142. data/test/IDL_Test/Test.idl +113 -0
  143. data/test/IDL_Test/Test_inc.idl +17 -0
  144. data/test/IDL_Test/client.rb +102 -0
  145. data/test/IDL_Test/run_test.rb +69 -0
  146. data/test/IDL_Test/server.ior +1 -0
  147. data/test/IDL_Test/server.rb +99 -0
  148. data/test/IORMap/Test.idl +27 -0
  149. data/test/IORMap/client.rb +73 -0
  150. data/test/IORMap/run_test.rb +69 -0
  151. data/test/IORMap/server.ior +1 -0
  152. data/test/IORMap/server.rb +114 -0
  153. data/test/IORTable/Test.idl +27 -0
  154. data/test/IORTable/client.rb +75 -0
  155. data/test/IORTable/run_test.rb +69 -0
  156. data/test/IORTable/server.ior +1 -0
  157. data/test/IORTable/server.rb +130 -0
  158. data/test/Implicit_Conversion/Test.idl +31 -0
  159. data/test/Implicit_Conversion/client.rb +110 -0
  160. data/test/Implicit_Conversion/run_test.rb +69 -0
  161. data/test/Implicit_Conversion/server.ior +1 -0
  162. data/test/Implicit_Conversion/server.rb +99 -0
  163. data/test/Multi_Threading/Multiple_ORB/Test.idl +27 -0
  164. data/test/Multi_Threading/Multiple_ORB/client.rb +82 -0
  165. data/test/Multi_Threading/Multiple_ORB/run_test.rb +71 -0
  166. data/test/Multi_Threading/Multiple_ORB/server.rb +108 -0
  167. data/test/Multi_Threading/Multiple_ORB/server0.ior +1 -0
  168. data/test/Multi_Threading/Multiple_ORB/server1.ior +1 -0
  169. data/test/Multi_Threading/Simple/Test.idl +27 -0
  170. data/test/Multi_Threading/Simple/client.rb +88 -0
  171. data/test/Multi_Threading/Simple/run_test.rb +69 -0
  172. data/test/Multi_Threading/Simple/server.ior +1 -0
  173. data/test/Multi_Threading/Simple/server.rb +118 -0
  174. data/test/Multi_Threading/Threads/Test.idl +31 -0
  175. data/test/Multi_Threading/Threads/client.rb +80 -0
  176. data/test/Multi_Threading/Threads/run_test.rb +76 -0
  177. data/test/Multi_Threading/Threads/server.ior +1 -0
  178. data/test/Multi_Threading/Threads/server.rb +119 -0
  179. data/test/Multi_Threading/Threads/watchdog.ior +1 -0
  180. data/test/Multi_Threading/Threads/watchdog.rb +87 -0
  181. data/test/Multiple_Servant_Interfaces/Test.idl +34 -0
  182. data/test/Multiple_Servant_Interfaces/client.rb +70 -0
  183. data/test/Multiple_Servant_Interfaces/run_test.rb +69 -0
  184. data/test/Multiple_Servant_Interfaces/server.ior +1 -0
  185. data/test/Multiple_Servant_Interfaces/server.rb +102 -0
  186. data/test/Nil/Test.idl +27 -0
  187. data/test/Nil/run_test.rb +52 -0
  188. data/test/Nil/test.rb +78 -0
  189. data/test/OBV/AbstractInterface/client.rb +179 -0
  190. data/test/OBV/AbstractInterface/run_test.rb +69 -0
  191. data/test/OBV/AbstractInterface/server.ior +1 -0
  192. data/test/OBV/AbstractInterface/server.rb +149 -0
  193. data/test/OBV/AbstractInterface/test.idl +53 -0
  194. data/test/OBV/Custom/OBV.idl +18 -0
  195. data/test/OBV/Custom/OBV_impl.rb +40 -0
  196. data/test/OBV/Custom/client.rb +86 -0
  197. data/test/OBV/Custom/run_test.rb +69 -0
  198. data/test/OBV/Custom/server.ior +1 -0
  199. data/test/OBV/Custom/server.rb +100 -0
  200. data/test/OBV/Simple/OBV.idl +15 -0
  201. data/test/OBV/Simple/OBV_impl.rb +26 -0
  202. data/test/OBV/Simple/client.rb +86 -0
  203. data/test/OBV/Simple/run_test.rb +69 -0
  204. data/test/OBV/Simple/server.ior +1 -0
  205. data/test/OBV/Simple/server.rb +100 -0
  206. data/test/OBV/Simple_Event/Event.idl +15 -0
  207. data/test/OBV/Simple_Event/Event_impl.rb +26 -0
  208. data/test/OBV/Simple_Event/client.rb +86 -0
  209. data/test/OBV/Simple_Event/run_test.rb +69 -0
  210. data/test/OBV/Simple_Event/server.ior +1 -0
  211. data/test/OBV/Simple_Event/server.rb +100 -0
  212. data/test/OBV/Supports/client.rb +116 -0
  213. data/test/OBV/Supports/run_test.rb +69 -0
  214. data/test/OBV/Supports/server.ior +1 -0
  215. data/test/OBV/Supports/server.rb +103 -0
  216. data/test/OBV/Supports/supports.idl +33 -0
  217. data/test/OBV/Supports/supports_impl.rb +57 -0
  218. data/test/OBV/Tree/client.rb +116 -0
  219. data/test/OBV/Tree/run_test.rb +69 -0
  220. data/test/OBV/Tree/server.ior +1 -0
  221. data/test/OBV/Tree/server.rb +117 -0
  222. data/test/OBV/Tree/test.idl +32 -0
  223. data/test/OBV/Truncatable/Extra.idl +27 -0
  224. data/test/OBV/Truncatable/Truncatable.idl +105 -0
  225. data/test/OBV/Truncatable/Truncatable_impl.rb +86 -0
  226. data/test/OBV/Truncatable/client.rb +279 -0
  227. data/test/OBV/Truncatable/run_test.rb +69 -0
  228. data/test/OBV/Truncatable/server.ior +1 -0
  229. data/test/OBV/Truncatable/server.rb +89 -0
  230. data/test/OBV/ValueBox/client.rb +497 -0
  231. data/test/OBV/ValueBox/run_test.rb +69 -0
  232. data/test/OBV/ValueBox/server.ior +1 -0
  233. data/test/OBV/ValueBox/server.rb +271 -0
  234. data/test/OBV/ValueBox/valuebox.idl +101 -0
  235. data/test/OBV/ValueBox/vb_basic.idl +75 -0
  236. data/test/OBV/ValueBox/vb_struct.idl +68 -0
  237. data/test/OBV/ValueBox/vb_union.idl +21 -0
  238. data/test/Object/Test.idl +27 -0
  239. data/test/Object/client.rb +103 -0
  240. data/test/Object/run_test.rb +69 -0
  241. data/test/Object/server.ior +1 -0
  242. data/test/Object/server.rb +126 -0
  243. data/test/POA/Test.idl +27 -0
  244. data/test/POA/run_test.rb +52 -0
  245. data/test/POA/test.rb +112 -0
  246. data/test/Param_Test/Test.idl +182 -0
  247. data/test/Param_Test/client.rb +277 -0
  248. data/test/Param_Test/run_test.rb +69 -0
  249. data/test/Param_Test/server.ior +1 -0
  250. data/test/Param_Test/server.rb +296 -0
  251. data/test/Performance/Simple/Test.idl +27 -0
  252. data/test/Performance/Simple/client.rb +90 -0
  253. data/test/Performance/Simple/run_test.rb +69 -0
  254. data/test/Performance/Simple/server.ior +1 -0
  255. data/test/Performance/Simple/server.rb +95 -0
  256. data/test/Policies/Test.idl +27 -0
  257. data/test/Policies/run_test.rb +52 -0
  258. data/test/Policies/test.rb +144 -0
  259. data/test/Timeout/client.rb +207 -0
  260. data/test/Timeout/run_test.rb +69 -0
  261. data/test/Timeout/server.ior +1 -0
  262. data/test/Timeout/server.rb +109 -0
  263. data/test/Timeout/test.idl +19 -0
  264. data/test/lib/assert.rb +43 -0
  265. data/test/lib/test.rb +542 -0
  266. data/test/test_runner.rb +193 -0
  267. metadata +342 -0
@@ -0,0 +1,461 @@
1
+ # -*- Ruby -*-
2
+ #
3
+ # **** Code generated by the R2CORBA IDL Compiler ****
4
+ # R2CORBA has been developed by:
5
+ # Remedy IT
6
+ # Nijkerk, GLD
7
+ # The Netherlands
8
+ # http://www.remedy.nl http://www.theaceorb.nl
9
+ #
10
+ require 'corba'
11
+
12
+ CORBA.implement('CosNaming.idl', {}, CORBA::IDL::CLIENT_STUB) {
13
+
14
+ module CosNaming
15
+
16
+ class Istring < String
17
+ def Istring._tc; @@tc_Istring ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/Istring:1.0', 'Istring', CORBA::_tc_string, self); end
18
+ end # typedef Istring
19
+
20
+ class NameComponent < CORBA::Portable::Struct
21
+
22
+ def NameComponent._tc
23
+ @@tc_NameComponent ||= CORBA::TypeCode::Struct.new('IDL:omg.org/CosNaming/NameComponent:1.0'.freeze, 'NameComponent',
24
+ [['r_id', CosNaming::Istring._tc],
25
+ ['kind', CosNaming::Istring._tc]], self)
26
+ end
27
+ self._tc # register typecode
28
+ attr_accessor :r_id
29
+ attr_accessor :kind
30
+ def initialize(*param_)
31
+ @r_id = param_.shift
32
+ @kind = param_.shift
33
+ end
34
+
35
+ end #of struct NameComponent
36
+ class Name < Array
37
+ def Name._tc
38
+ @@tc_Name ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/Name:1.0', 'Name',
39
+ CORBA::TypeCode::Sequence.new(CosNaming::NameComponent._tc), self)
40
+ end
41
+ end # typedef Name
42
+ class BindingType < ::Fixnum
43
+ def BindingType._tc
44
+ @@tc_BindingType ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CosNaming/BindingType:1.0'.freeze, 'BindingType', [
45
+ 'Nobject',
46
+ 'Ncontext'])
47
+ end
48
+ self._tc # register typecode
49
+ end # enum BindingType
50
+ Nobject = 0
51
+ Ncontext = 1
52
+
53
+ class Binding < CORBA::Portable::Struct
54
+
55
+ def Binding._tc
56
+ @@tc_Binding ||= CORBA::TypeCode::Struct.new('IDL:omg.org/CosNaming/Binding:1.0'.freeze, 'Binding',
57
+ [['binding_name', CosNaming::Name._tc],
58
+ ['binding_type', CosNaming::BindingType._tc]], self)
59
+ end
60
+ self._tc # register typecode
61
+ attr_accessor :binding_name
62
+ attr_accessor :binding_type
63
+ def initialize(*param_)
64
+ @binding_name = param_.shift
65
+ @binding_type = param_.shift
66
+ end
67
+
68
+ end #of struct Binding
69
+ class BindingList < Array
70
+ def BindingList._tc
71
+ @@tc_BindingList ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/BindingList:1.0', 'BindingList',
72
+ CORBA::TypeCode::Sequence.new(CosNaming::Binding._tc), self)
73
+ end
74
+ end # typedef BindingList
75
+ module BindingIterator; end ## interface forward
76
+
77
+ module NamingContext ## interface
78
+
79
+ Id = 'IDL:omg.org/CosNaming/NamingContext:1.0'.freeze
80
+ Ids = [ Id ].freeze
81
+
82
+ def NamingContext._tc; @@tc_NamingContext ||= CORBA::TypeCode::ObjectRef.new(Id, 'NamingContext', self); end
83
+ self._tc # register typecode
84
+
85
+ def NamingContext._narrow(obj)
86
+ return nil if CORBA.is_nil(obj)
87
+ return CORBA::Stub.create_stub(obj)._narrow!(self)
88
+ end
89
+
90
+ def NamingContext._duplicate(obj)
91
+ return nil if CORBA.is_nil(obj)
92
+ return CORBA::Stub.create_stub(super(obj))._narrow!(self)
93
+ end
94
+
95
+ def _interface_repository_id
96
+ CosNaming::NamingContext::Id
97
+ end
98
+
99
+ class NotFoundReason < ::Fixnum
100
+ def NotFoundReason._tc
101
+ @@tc_NotFoundReason ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0'.freeze, 'NotFoundReason', [
102
+ 'Missing_node',
103
+ 'Not_context',
104
+ 'Not_object'])
105
+ end
106
+ self._tc # register typecode
107
+ end # enum NotFoundReason
108
+ Missing_node = 0
109
+ Not_context = 1
110
+ Not_object = 2
111
+
112
+ class NotFound < CORBA::UserException
113
+
114
+ def NotFound._tc
115
+ @@tc_NotFound ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContext/NotFound:1.0'.freeze, 'NotFound',
116
+ [['why', CosNaming::NamingContext::NotFoundReason._tc],
117
+ ['rest_of_name', CosNaming::Name._tc]], self)
118
+ end
119
+ self._tc # register typecode
120
+ attr_accessor :why
121
+ attr_accessor :rest_of_name
122
+ def initialize(*param_)
123
+ @why = param_.shift
124
+ @rest_of_name = param_.shift
125
+ end
126
+
127
+ end #of exception NotFound
128
+
129
+ class CannotProceed < CORBA::UserException
130
+
131
+ def CannotProceed._tc
132
+ @@tc_CannotProceed ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0'.freeze, 'CannotProceed',
133
+ [['cxt', CosNaming::NamingContext._tc],
134
+ ['rest_of_name', CosNaming::Name._tc]], self)
135
+ end
136
+ self._tc # register typecode
137
+ attr_accessor :cxt
138
+ attr_accessor :rest_of_name
139
+ def initialize(*param_)
140
+ @cxt = param_.shift
141
+ @rest_of_name = param_.shift
142
+ end
143
+
144
+ end #of exception CannotProceed
145
+
146
+ class InvalidName < CORBA::UserException
147
+
148
+ def InvalidName._tc
149
+ @@tc_InvalidName ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0'.freeze, 'InvalidName', self)
150
+ end
151
+ self._tc # register typecode
152
+ end #of exception InvalidName
153
+
154
+ class AlreadyBound < CORBA::UserException
155
+
156
+ def AlreadyBound._tc
157
+ @@tc_AlreadyBound ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0'.freeze, 'AlreadyBound', self)
158
+ end
159
+ self._tc # register typecode
160
+ end #of exception AlreadyBound
161
+
162
+ class NotEmpty < CORBA::UserException
163
+
164
+ def NotEmpty._tc
165
+ @@tc_NotEmpty ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0'.freeze, 'NotEmpty', self)
166
+ end
167
+ self._tc # register typecode
168
+ end #of exception NotEmpty
169
+
170
+ def bind(n, obj)
171
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
172
+ n = CosNaming::Name._tc.validate(n)
173
+ obj = CORBA._tc_Object.validate(obj)
174
+ _ret = self._invoke('bind', {
175
+ :arg_list => [
176
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n],
177
+ ['obj', CORBA::ARG_IN, CORBA._tc_Object, obj]],
178
+ :result_type => CORBA._tc_void,
179
+ :exc_list => [
180
+ CosNaming::NamingContext::NotFound._tc,
181
+ CosNaming::NamingContext::CannotProceed._tc,
182
+ CosNaming::NamingContext::InvalidName._tc,
183
+ CosNaming::NamingContext::AlreadyBound._tc]})
184
+ _ret
185
+ end #of operation bind
186
+
187
+ def rebind(n, obj)
188
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
189
+ n = CosNaming::Name._tc.validate(n)
190
+ obj = CORBA._tc_Object.validate(obj)
191
+ _ret = self._invoke('rebind', {
192
+ :arg_list => [
193
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n],
194
+ ['obj', CORBA::ARG_IN, CORBA._tc_Object, obj]],
195
+ :result_type => CORBA._tc_void,
196
+ :exc_list => [
197
+ CosNaming::NamingContext::NotFound._tc,
198
+ CosNaming::NamingContext::CannotProceed._tc,
199
+ CosNaming::NamingContext::InvalidName._tc]})
200
+ _ret
201
+ end #of operation rebind
202
+
203
+ def bind_context(n, nc)
204
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
205
+ n = CosNaming::Name._tc.validate(n)
206
+ nc = CosNaming::NamingContext._tc.validate(nc)
207
+ _ret = self._invoke('bind_context', {
208
+ :arg_list => [
209
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n],
210
+ ['nc', CORBA::ARG_IN, CosNaming::NamingContext._tc, nc]],
211
+ :result_type => CORBA._tc_void,
212
+ :exc_list => [
213
+ CosNaming::NamingContext::NotFound._tc,
214
+ CosNaming::NamingContext::CannotProceed._tc,
215
+ CosNaming::NamingContext::InvalidName._tc,
216
+ CosNaming::NamingContext::AlreadyBound._tc]})
217
+ _ret
218
+ end #of operation bind_context
219
+
220
+ def rebind_context(n, nc)
221
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
222
+ n = CosNaming::Name._tc.validate(n)
223
+ nc = CosNaming::NamingContext._tc.validate(nc)
224
+ _ret = self._invoke('rebind_context', {
225
+ :arg_list => [
226
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n],
227
+ ['nc', CORBA::ARG_IN, CosNaming::NamingContext._tc, nc]],
228
+ :result_type => CORBA._tc_void,
229
+ :exc_list => [
230
+ CosNaming::NamingContext::NotFound._tc,
231
+ CosNaming::NamingContext::CannotProceed._tc,
232
+ CosNaming::NamingContext::InvalidName._tc]})
233
+ _ret
234
+ end #of operation rebind_context
235
+
236
+ def resolve(n)
237
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
238
+ n = CosNaming::Name._tc.validate(n)
239
+ _ret = self._invoke('resolve', {
240
+ :arg_list => [
241
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n]],
242
+ :result_type => CORBA._tc_Object,
243
+ :exc_list => [
244
+ CosNaming::NamingContext::NotFound._tc,
245
+ CosNaming::NamingContext::CannotProceed._tc,
246
+ CosNaming::NamingContext::InvalidName._tc]})
247
+ _ret
248
+ end #of operation resolve
249
+
250
+ def unbind(n)
251
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
252
+ n = CosNaming::Name._tc.validate(n)
253
+ _ret = self._invoke('unbind', {
254
+ :arg_list => [
255
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n]],
256
+ :result_type => CORBA._tc_void,
257
+ :exc_list => [
258
+ CosNaming::NamingContext::NotFound._tc,
259
+ CosNaming::NamingContext::CannotProceed._tc,
260
+ CosNaming::NamingContext::InvalidName._tc]})
261
+ _ret
262
+ end #of operation unbind
263
+
264
+ def new_context()
265
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
266
+ _ret = self._invoke('new_context', {
267
+ :result_type => CosNaming::NamingContext._tc})
268
+ _ret
269
+ end #of operation new_context
270
+
271
+ def bind_new_context(n)
272
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
273
+ n = CosNaming::Name._tc.validate(n)
274
+ _ret = self._invoke('bind_new_context', {
275
+ :arg_list => [
276
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n]],
277
+ :result_type => CosNaming::NamingContext._tc,
278
+ :exc_list => [
279
+ CosNaming::NamingContext::NotFound._tc,
280
+ CosNaming::NamingContext::AlreadyBound._tc,
281
+ CosNaming::NamingContext::CannotProceed._tc,
282
+ CosNaming::NamingContext::InvalidName._tc]})
283
+ _ret
284
+ end #of operation bind_new_context
285
+
286
+ def destroy()
287
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
288
+ _ret = self._invoke('destroy', {
289
+ :result_type => CORBA._tc_void,
290
+ :exc_list => [
291
+ CosNaming::NamingContext::NotEmpty._tc]})
292
+ _ret
293
+ end #of operation destroy
294
+
295
+ def list(how_many)
296
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
297
+ how_many = CORBA._tc_ulong.validate(how_many)
298
+ _ret = self._invoke('list', {
299
+ :arg_list => [
300
+ ['how_many', CORBA::ARG_IN, CORBA._tc_ulong, how_many],
301
+ ['bl', CORBA::ARG_OUT, CosNaming::BindingList._tc],
302
+ ['bi', CORBA::ARG_OUT, (CORBA::TypeCode.typecode_for_id('IDL:omg.org/CosNaming/BindingIterator:1.0') || CORBA::TypeCode::ObjectRef.new('IDL:omg.org/CosNaming/BindingIterator:1.0', 'BindingIterator', CosNaming::BindingIterator))]],
303
+ :result_type => CORBA._tc_void})
304
+ _ret
305
+ end #of operation list
306
+ end #of interface NamingContext
307
+
308
+
309
+ module BindingIterator ## interface
310
+
311
+ Id = 'IDL:omg.org/CosNaming/BindingIterator:1.0'.freeze
312
+ Ids = [ Id ].freeze
313
+
314
+ def BindingIterator._tc; @@tc_BindingIterator ||= CORBA::TypeCode::ObjectRef.new(Id, 'BindingIterator', self); end
315
+ self._tc # register typecode
316
+
317
+ def BindingIterator._narrow(obj)
318
+ return nil if CORBA.is_nil(obj)
319
+ return CORBA::Stub.create_stub(obj)._narrow!(self)
320
+ end
321
+
322
+ def BindingIterator._duplicate(obj)
323
+ return nil if CORBA.is_nil(obj)
324
+ return CORBA::Stub.create_stub(super(obj))._narrow!(self)
325
+ end
326
+
327
+ def _interface_repository_id
328
+ CosNaming::BindingIterator::Id
329
+ end
330
+
331
+
332
+ def next_one()
333
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
334
+ _ret = self._invoke('next_one', {
335
+ :arg_list => [
336
+ ['b', CORBA::ARG_OUT, CosNaming::Binding._tc]],
337
+ :result_type => CORBA._tc_boolean})
338
+ _ret
339
+ end #of operation next_one
340
+
341
+ def next_n(how_many)
342
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
343
+ how_many = CORBA._tc_ulong.validate(how_many)
344
+ _ret = self._invoke('next_n', {
345
+ :arg_list => [
346
+ ['how_many', CORBA::ARG_IN, CORBA._tc_ulong, how_many],
347
+ ['bl', CORBA::ARG_OUT, CosNaming::BindingList._tc]],
348
+ :result_type => CORBA._tc_boolean})
349
+ _ret
350
+ end #of operation next_n
351
+
352
+ def destroy()
353
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
354
+ _ret = self._invoke('destroy', {
355
+ :result_type => CORBA._tc_void})
356
+ _ret
357
+ end #of operation destroy
358
+ end #of interface BindingIterator
359
+
360
+
361
+ module NamingContextExt ## interface
362
+
363
+ include CosNaming::NamingContext
364
+
365
+ Id = 'IDL:omg.org/CosNaming/NamingContextExt:1.0'.freeze
366
+ Ids = [ Id,
367
+ CosNaming::NamingContext::Id ].freeze
368
+
369
+ def NamingContextExt._tc; @@tc_NamingContextExt ||= CORBA::TypeCode::ObjectRef.new(Id, 'NamingContextExt', self); end
370
+ self._tc # register typecode
371
+
372
+ def NamingContextExt._narrow(obj)
373
+ return nil if CORBA.is_nil(obj)
374
+ return CORBA::Stub.create_stub(obj)._narrow!(self)
375
+ end
376
+
377
+ def NamingContextExt._duplicate(obj)
378
+ return nil if CORBA.is_nil(obj)
379
+ return CORBA::Stub.create_stub(super(obj))._narrow!(self)
380
+ end
381
+
382
+ def _interface_repository_id
383
+ CosNaming::NamingContextExt::Id
384
+ end
385
+
386
+ class StringName < String
387
+ def StringName._tc; @@tc_StringName ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/NamingContextExt/StringName:1.0', 'StringName', CORBA::_tc_string, self); end
388
+ end # typedef StringName
389
+ class Address < String
390
+ def Address._tc; @@tc_Address ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/NamingContextExt/Address:1.0', 'Address', CORBA::_tc_string, self); end
391
+ end # typedef Address
392
+ class URLString < String
393
+ def URLString._tc; @@tc_URLString ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CosNaming/NamingContextExt/URLString:1.0', 'URLString', CORBA::_tc_string, self); end
394
+ end # typedef URLString
395
+
396
+ def to_string(n)
397
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
398
+ n = CosNaming::Name._tc.validate(n)
399
+ _ret = self._invoke('to_string', {
400
+ :arg_list => [
401
+ ['n', CORBA::ARG_IN, CosNaming::Name._tc, n]],
402
+ :result_type => CosNaming::NamingContextExt::StringName._tc,
403
+ :exc_list => [
404
+ CosNaming::NamingContext::InvalidName._tc]})
405
+ _ret
406
+ end #of operation to_string
407
+
408
+ def to_name(sn)
409
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
410
+ sn = CosNaming::NamingContextExt::StringName._tc.validate(sn)
411
+ _ret = self._invoke('to_name', {
412
+ :arg_list => [
413
+ ['sn', CORBA::ARG_IN, CosNaming::NamingContextExt::StringName._tc, sn]],
414
+ :result_type => CosNaming::Name._tc,
415
+ :exc_list => [
416
+ CosNaming::NamingContext::InvalidName._tc]})
417
+ _ret
418
+ end #of operation to_name
419
+
420
+ class InvalidAddress < CORBA::UserException
421
+
422
+ def InvalidAddress._tc
423
+ @@tc_InvalidAddress ||= CORBA::TypeCode::Except.new('IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0'.freeze, 'InvalidAddress', self)
424
+ end
425
+ self._tc # register typecode
426
+ end #of exception InvalidAddress
427
+
428
+ def to_url(addr, sn)
429
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
430
+ addr = CosNaming::NamingContextExt::Address._tc.validate(addr)
431
+ sn = CosNaming::NamingContextExt::StringName._tc.validate(sn)
432
+ _ret = self._invoke('to_url', {
433
+ :arg_list => [
434
+ ['addr', CORBA::ARG_IN, CosNaming::NamingContextExt::Address._tc, addr],
435
+ ['sn', CORBA::ARG_IN, CosNaming::NamingContextExt::StringName._tc, sn]],
436
+ :result_type => CosNaming::NamingContextExt::URLString._tc,
437
+ :exc_list => [
438
+ CosNaming::NamingContextExt::InvalidAddress._tc,
439
+ CosNaming::NamingContext::InvalidName._tc]})
440
+ _ret
441
+ end #of operation to_url
442
+
443
+ def resolve_str(n)
444
+ raise ::CORBA::NO_IMPLEMENT unless self.respond_to?(:_invoke, true)
445
+ n = CosNaming::NamingContextExt::StringName._tc.validate(n)
446
+ _ret = self._invoke('resolve_str', {
447
+ :arg_list => [
448
+ ['n', CORBA::ARG_IN, CosNaming::NamingContextExt::StringName._tc, n]],
449
+ :result_type => CORBA._tc_Object,
450
+ :exc_list => [
451
+ CosNaming::NamingContext::NotFound._tc,
452
+ CosNaming::NamingContext::CannotProceed._tc,
453
+ CosNaming::NamingContext::InvalidName._tc]})
454
+ _ret
455
+ end #of operation resolve_str
456
+ end #of interface NamingContextExt
457
+
458
+ end #of module CosNaming
459
+
460
+ } ## end of 'CosNaming.idl'
461
+ # -*- END -*-