zeroc-ice 3.7.11 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (895) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +159 -376
  3. data/dist/IceRuby/Communicator.h +8 -9
  4. data/dist/IceRuby/Config.h +23 -89
  5. data/dist/IceRuby/Connection.cpp +111 -219
  6. data/dist/IceRuby/Connection.h +8 -12
  7. data/dist/IceRuby/DefaultSliceLoader.cpp +45 -0
  8. data/dist/IceRuby/DefaultSliceLoader.h +25 -0
  9. data/dist/IceRuby/Endpoint.cpp +63 -65
  10. data/dist/IceRuby/Endpoint.h +7 -11
  11. data/dist/IceRuby/ImplicitContext.cpp +26 -31
  12. data/dist/IceRuby/ImplicitContext.h +6 -10
  13. data/dist/IceRuby/Init.cpp +27 -40
  14. data/dist/IceRuby/Logger.cpp +23 -28
  15. data/dist/IceRuby/Logger.h +8 -12
  16. data/dist/IceRuby/Operation.cpp +177 -219
  17. data/dist/IceRuby/Operation.h +15 -18
  18. data/dist/IceRuby/Properties.cpp +133 -89
  19. data/dist/IceRuby/Properties.h +6 -10
  20. data/dist/IceRuby/Proxy.cpp +179 -649
  21. data/dist/IceRuby/Proxy.h +11 -12
  22. data/dist/IceRuby/RubySliceLoader.cpp +39 -0
  23. data/dist/IceRuby/RubySliceLoader.h +27 -0
  24. data/dist/IceRuby/Slice.cpp +88 -94
  25. data/dist/IceRuby/Slice.h +3 -7
  26. data/dist/IceRuby/Types.cpp +987 -1190
  27. data/dist/IceRuby/Types.h +390 -461
  28. data/dist/IceRuby/Util.cpp +214 -473
  29. data/dist/IceRuby/Util.h +378 -479
  30. data/dist/ice/cpp/include/Ice/AsyncResponseHandler.h +85 -0
  31. data/dist/ice/cpp/include/Ice/BatchRequest.h +39 -0
  32. data/dist/ice/cpp/include/Ice/BatchRequestQueueF.h +4 -10
  33. data/dist/ice/cpp/include/Ice/Buffer.h +116 -111
  34. data/dist/ice/cpp/include/Ice/Communicator.h +411 -0
  35. data/dist/ice/cpp/include/Ice/CommunicatorF.h +16 -0
  36. data/dist/ice/cpp/include/Ice/Config.h +46 -62
  37. data/dist/ice/cpp/include/Ice/Connection.h +410 -0
  38. data/dist/ice/cpp/include/Ice/ConnectionF.h +36 -0
  39. data/dist/ice/cpp/include/Ice/ConnectionIF.h +6 -28
  40. data/dist/ice/cpp/include/Ice/CtrlCHandler.h +56 -0
  41. data/dist/ice/cpp/include/Ice/Current.h +60 -0
  42. data/dist/ice/cpp/include/Ice/DefaultSliceLoader.h +160 -0
  43. data/dist/ice/cpp/include/Ice/Demangle.h +17 -0
  44. data/dist/ice/cpp/include/Ice/Endpoint.h +298 -0
  45. data/dist/ice/cpp/include/Ice/EndpointF.h +44 -0
  46. data/dist/ice/cpp/include/Ice/EndpointSelectionType.h +21 -0
  47. data/dist/ice/cpp/include/Ice/Exception.h +46 -151
  48. data/dist/ice/cpp/include/Ice/FacetMap.h +16 -0
  49. data/dist/ice/cpp/include/Ice/Format.h +11 -27
  50. data/dist/ice/cpp/include/Ice/Ice.h +53 -48
  51. data/dist/ice/cpp/include/Ice/IconvStringConverter.h +165 -326
  52. data/dist/ice/cpp/include/Ice/ImplicitContext.h +76 -0
  53. data/dist/ice/cpp/include/Ice/IncomingRequest.h +75 -0
  54. data/dist/ice/cpp/include/Ice/Initialize.h +113 -927
  55. data/dist/ice/cpp/include/Ice/InputStream.h +748 -1320
  56. data/dist/ice/cpp/include/Ice/InstanceF.h +4 -10
  57. data/dist/ice/cpp/include/Ice/Instrumentation.h +319 -0
  58. data/dist/ice/cpp/include/Ice/LocalException.h +58 -0
  59. data/dist/ice/cpp/include/Ice/LocalExceptions.h +870 -0
  60. data/dist/ice/cpp/include/Ice/Logger.h +62 -0
  61. data/dist/ice/cpp/include/Ice/LoggerUtil.h +124 -147
  62. data/dist/ice/cpp/include/Ice/MarshaledResult.h +50 -0
  63. data/dist/ice/cpp/include/Ice/NativePropertiesAdmin.h +41 -71
  64. data/dist/ice/cpp/include/Ice/Object.h +151 -490
  65. data/dist/ice/cpp/include/Ice/ObjectAdapter.h +324 -0
  66. data/dist/ice/cpp/include/Ice/ObjectAdapterF.h +16 -0
  67. data/dist/ice/cpp/include/Ice/ObjectF.h +5 -19
  68. data/dist/ice/cpp/include/Ice/ObserverHelper.h +115 -132
  69. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +392 -748
  70. data/dist/ice/cpp/include/Ice/OutgoingResponse.h +129 -0
  71. data/dist/ice/cpp/include/Ice/OutputStream.h +756 -956
  72. data/dist/ice/cpp/include/Ice/Plugin.h +73 -0
  73. data/dist/ice/cpp/include/Ice/PluginFactory.h +77 -0
  74. data/dist/ice/cpp/include/{IceUtil → Ice}/PopDisableWarnings.h +8 -6
  75. data/dist/ice/cpp/include/Ice/Properties.h +307 -0
  76. data/dist/ice/cpp/include/Ice/PropertiesF.h +19 -0
  77. data/dist/ice/cpp/include/Ice/Proxy.h +665 -5094
  78. data/dist/ice/cpp/include/Ice/ProxyF.h +2 -44
  79. data/dist/ice/cpp/include/Ice/ProxyFunctions.h +209 -0
  80. data/dist/ice/cpp/include/Ice/PushDisableWarnings.h +29 -0
  81. data/dist/ice/cpp/include/Ice/ReferenceF.h +4 -19
  82. data/dist/ice/cpp/include/Ice/RequestHandlerF.h +8 -18
  83. data/dist/ice/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +276 -0
  84. data/dist/ice/cpp/include/Ice/SSL/Config.h +54 -0
  85. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfo.h +107 -0
  86. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfoF.h +39 -0
  87. data/dist/ice/cpp/include/Ice/SSL/EndpointInfo.h +40 -0
  88. data/dist/ice/cpp/include/Ice/SSL/SSLException.h +32 -0
  89. data/dist/ice/cpp/include/Ice/SSL/ServerAuthenticationOptions.h +286 -0
  90. data/dist/ice/cpp/include/Ice/ServantLocator.h +51 -0
  91. data/dist/ice/cpp/include/Ice/Service.h +182 -342
  92. data/dist/ice/cpp/include/Ice/SliceLoader.h +67 -0
  93. data/dist/ice/cpp/include/Ice/SlicedData.h +113 -160
  94. data/dist/ice/cpp/include/Ice/SlicedDataF.h +17 -27
  95. data/dist/ice/cpp/include/Ice/StreamHelpers.h +532 -1070
  96. data/dist/ice/cpp/include/Ice/StreamableTraits.h +291 -0
  97. data/dist/ice/cpp/include/Ice/StringConverter.h +152 -63
  98. data/dist/ice/cpp/include/Ice/StringUtil.h +114 -0
  99. data/dist/ice/cpp/include/Ice/TimerTask.h +24 -0
  100. data/dist/ice/cpp/include/Ice/TupleCompare.h +103 -0
  101. data/dist/ice/cpp/include/Ice/UUID.h +6 -9
  102. data/dist/ice/cpp/include/Ice/UserException.h +46 -0
  103. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +4 -79
  104. data/dist/ice/cpp/include/Ice/Value.h +103 -115
  105. data/dist/ice/cpp/include/Ice/ValueF.h +6 -11
  106. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +16 -1877
  107. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +16 -1185
  108. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +46 -146
  109. data/dist/ice/cpp/include/generated/Ice/Context.h +40 -0
  110. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +49 -93
  111. data/dist/ice/cpp/include/generated/Ice/Identity.h +70 -226
  112. data/dist/ice/cpp/include/generated/Ice/Locator.h +494 -3850
  113. data/dist/ice/cpp/include/generated/Ice/LocatorRegistry.h +443 -0
  114. data/dist/ice/cpp/include/generated/Ice/Metrics.h +937 -4603
  115. data/dist/ice/cpp/include/generated/Ice/OperationMode.h +73 -0
  116. data/dist/ice/cpp/include/generated/Ice/Process.h +197 -929
  117. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +249 -1301
  118. data/dist/ice/cpp/include/generated/Ice/PropertyDict.h +39 -0
  119. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +637 -2620
  120. data/dist/ice/cpp/include/generated/Ice/ReplyStatus.h +94 -0
  121. data/dist/ice/cpp/include/generated/Ice/Router.h +429 -1783
  122. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +18 -65
  123. data/dist/ice/cpp/include/generated/Ice/Version.h +73 -318
  124. data/dist/ice/cpp/include/generated/IceDiscovery/Lookup.h +498 -0
  125. data/dist/ice/cpp/include/generated/IceLocatorDiscovery/Lookup.h +387 -0
  126. data/dist/ice/cpp/src/Ice/Acceptor.h +28 -24
  127. data/dist/ice/cpp/src/Ice/AcceptorF.h +6 -14
  128. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories.h +16 -0
  129. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_all.cpp +43 -0
  130. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_min.cpp +17 -0
  131. data/dist/ice/cpp/src/Ice/ArgVector.cpp +17 -18
  132. data/dist/ice/cpp/src/Ice/ArgVector.h +19 -25
  133. data/dist/ice/cpp/src/Ice/Base64.cpp +66 -66
  134. data/dist/ice/cpp/src/Ice/Base64.h +14 -19
  135. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +70 -121
  136. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +37 -47
  137. data/dist/ice/cpp/src/Ice/Buffer.cpp +73 -41
  138. data/dist/ice/cpp/src/Ice/CheckIdentity.h +21 -0
  139. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +215 -249
  140. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.h +38 -60
  141. data/dist/ice/cpp/src/Ice/Communicator.cpp +399 -0
  142. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.cpp +140 -0
  143. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.h +39 -0
  144. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.cpp +63 -184
  145. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.h +30 -51
  146. data/dist/ice/cpp/src/Ice/ConnectRequestHandlerF.h +4 -14
  147. data/dist/ice/cpp/src/Ice/Connection.cpp +44 -0
  148. data/dist/ice/cpp/src/Ice/ConnectionFactory.cpp +578 -792
  149. data/dist/ice/cpp/src/Ice/ConnectionFactory.h +200 -200
  150. data/dist/ice/cpp/src/Ice/ConnectionFactoryF.h +6 -19
  151. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +1674 -1782
  152. data/dist/ice/cpp/src/Ice/ConnectionI.h +333 -293
  153. data/dist/ice/cpp/src/Ice/ConnectionOptions.h +22 -0
  154. data/dist/ice/cpp/src/Ice/Connector.h +25 -19
  155. data/dist/ice/cpp/src/Ice/ConnectorF.h +4 -11
  156. data/dist/ice/cpp/src/{IceUtil → Ice}/ConsoleUtil.cpp +32 -53
  157. data/dist/ice/cpp/src/Ice/ConsoleUtil.h +79 -0
  158. data/dist/ice/cpp/src/Ice/CtrlCHandler.cpp +189 -0
  159. data/dist/ice/cpp/src/Ice/Current.cpp +29 -0
  160. data/dist/ice/cpp/src/Ice/DLLMain.cpp +25 -35
  161. data/dist/ice/cpp/src/Ice/DefaultSliceLoader.cpp +39 -0
  162. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +41 -119
  163. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.h +27 -41
  164. data/dist/ice/cpp/src/Ice/DefaultsAndOverridesF.h +4 -11
  165. data/dist/ice/cpp/src/Ice/Demangle.cpp +26 -0
  166. data/dist/ice/cpp/src/Ice/DisableWarnings.h +31 -0
  167. data/dist/ice/cpp/src/Ice/DynamicLibrary.cpp +44 -112
  168. data/dist/ice/cpp/src/Ice/DynamicLibrary.h +91 -0
  169. data/dist/ice/cpp/src/Ice/Endian.h +40 -0
  170. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +35 -59
  171. data/dist/ice/cpp/src/Ice/EndpointFactory.h +82 -103
  172. data/dist/ice/cpp/src/Ice/EndpointFactoryF.h +4 -11
  173. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.cpp +54 -87
  174. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.h +28 -33
  175. data/dist/ice/cpp/src/Ice/EndpointFactoryManagerF.h +4 -11
  176. data/dist/ice/cpp/src/Ice/EndpointI.cpp +53 -23
  177. data/dist/ice/cpp/src/Ice/EndpointI.h +132 -200
  178. data/dist/ice/cpp/src/Ice/EndpointIF.h +11 -39
  179. data/dist/ice/cpp/src/Ice/EventHandler.cpp +3 -26
  180. data/dist/ice/cpp/src/Ice/EventHandler.h +46 -56
  181. data/dist/ice/cpp/src/Ice/EventHandlerF.h +4 -14
  182. data/dist/ice/cpp/src/Ice/Exception.cpp +3 -816
  183. data/dist/ice/cpp/src/Ice/FileUtil.cpp +476 -0
  184. data/dist/ice/cpp/src/Ice/FileUtil.h +152 -0
  185. data/dist/ice/cpp/src/Ice/FixedRequestHandler.cpp +34 -0
  186. data/dist/ice/cpp/src/Ice/FixedRequestHandler.h +29 -0
  187. data/dist/ice/cpp/src/Ice/HashUtil.h +46 -32
  188. data/dist/ice/cpp/src/Ice/HttpParser.cpp +431 -431
  189. data/dist/ice/cpp/src/Ice/HttpParser.h +95 -100
  190. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +207 -324
  191. data/dist/ice/cpp/src/Ice/IPEndpointI.h +80 -126
  192. data/dist/ice/cpp/src/Ice/IPEndpointIF.h +6 -17
  193. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.cpp +172 -0
  194. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.h +89 -0
  195. data/dist/ice/cpp/src/Ice/ImplicitContext.cpp +109 -0
  196. data/dist/ice/cpp/src/Ice/IncomingRequest.cpp +66 -0
  197. data/dist/ice/cpp/src/Ice/Initialize.cpp +48 -542
  198. data/dist/ice/cpp/src/Ice/InputStream.cpp +848 -1385
  199. data/dist/ice/cpp/src/Ice/Instance.cpp +816 -827
  200. data/dist/ice/cpp/src/Ice/Instance.h +202 -212
  201. data/dist/ice/cpp/src/Ice/InstrumentationI.cpp +526 -661
  202. data/dist/ice/cpp/src/Ice/InstrumentationI.h +171 -192
  203. data/dist/ice/cpp/src/Ice/LocalException.cpp +518 -0
  204. data/dist/ice/cpp/src/Ice/LocalExceptions.cpp +577 -0
  205. data/dist/ice/cpp/src/Ice/LocatorInfo.cpp +291 -329
  206. data/dist/ice/cpp/src/Ice/LocatorInfo.h +144 -157
  207. data/dist/ice/cpp/src/Ice/LocatorInfoF.h +8 -17
  208. data/dist/ice/cpp/src/Ice/LoggerAdminI.cpp +561 -743
  209. data/dist/ice/cpp/src/Ice/LoggerAdminI.h +18 -28
  210. data/dist/ice/cpp/src/Ice/LoggerI.cpp +66 -91
  211. data/dist/ice/cpp/src/Ice/LoggerI.h +36 -41
  212. data/dist/ice/cpp/src/Ice/LoggerMiddleware.cpp +176 -0
  213. data/dist/ice/cpp/src/Ice/LoggerMiddleware.h +42 -0
  214. data/dist/ice/cpp/src/Ice/LoggerUtil.cpp +14 -38
  215. data/dist/ice/cpp/src/Ice/MarshaledResult.cpp +20 -0
  216. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +194 -280
  217. data/dist/ice/cpp/src/Ice/MetricsAdminI.h +600 -0
  218. data/dist/ice/cpp/src/Ice/MetricsFunctional.h +92 -0
  219. data/dist/ice/cpp/src/Ice/MetricsObserverI.h +587 -0
  220. data/dist/ice/cpp/src/Ice/NativePropertiesAdmin.cpp +185 -0
  221. data/dist/ice/cpp/src/Ice/Network.cpp +595 -917
  222. data/dist/ice/cpp/src/Ice/Network.h +189 -213
  223. data/dist/ice/cpp/src/Ice/NetworkF.h +2 -10
  224. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +99 -104
  225. data/dist/ice/cpp/src/Ice/NetworkProxy.h +49 -54
  226. data/dist/ice/cpp/src/Ice/NetworkProxyF.h +4 -11
  227. data/dist/ice/cpp/src/Ice/OSLogLoggerI.cpp +16 -18
  228. data/dist/ice/cpp/src/Ice/OSLogLoggerI.h +22 -27
  229. data/dist/ice/cpp/src/Ice/Object.cpp +152 -338
  230. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +170 -113
  231. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.h +41 -41
  232. data/dist/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +4 -15
  233. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +580 -727
  234. data/dist/ice/cpp/src/Ice/ObjectAdapterI.h +149 -145
  235. data/dist/ice/cpp/src/Ice/ObserverHelper.cpp +36 -17
  236. data/dist/ice/cpp/src/Ice/ObserverMiddleware.cpp +96 -0
  237. data/dist/ice/cpp/src/Ice/ObserverMiddleware.h +25 -0
  238. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.cpp +147 -187
  239. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.h +56 -64
  240. data/dist/ice/cpp/src/{IceUtil → Ice}/Options.cpp +187 -258
  241. data/dist/ice/cpp/src/Ice/Options.h +119 -0
  242. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +516 -732
  243. data/dist/ice/cpp/src/Ice/OutgoingResponse.cpp +276 -0
  244. data/dist/ice/cpp/src/Ice/OutputStream.cpp +610 -543
  245. data/dist/ice/cpp/src/Ice/OutputUtil.cpp +344 -0
  246. data/dist/ice/cpp/src/Ice/OutputUtil.h +173 -0
  247. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +118 -277
  248. data/dist/ice/cpp/src/Ice/PluginManagerI.h +41 -48
  249. data/dist/ice/cpp/src/Ice/Properties.cpp +931 -0
  250. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +519 -1341
  251. data/dist/ice/cpp/src/Ice/PropertyNames.h +49 -64
  252. data/dist/ice/cpp/src/Ice/PropertyUtil.cpp +103 -0
  253. data/dist/ice/cpp/src/Ice/PropertyUtil.h +31 -0
  254. data/dist/ice/cpp/src/Ice/Protocol.cpp +129 -94
  255. data/dist/ice/cpp/src/Ice/Protocol.h +116 -0
  256. data/dist/ice/cpp/src/Ice/ProtocolInstance.cpp +117 -62
  257. data/dist/ice/cpp/src/Ice/ProtocolInstance.h +63 -82
  258. data/dist/ice/cpp/src/Ice/ProtocolInstanceF.h +4 -11
  259. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +10 -32
  260. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.h +25 -54
  261. data/dist/ice/cpp/src/Ice/Proxy.cpp +294 -1357
  262. data/dist/ice/cpp/src/Ice/ProxyAsync.cpp +684 -0
  263. data/dist/ice/cpp/src/Ice/ProxyFunctions.cpp +90 -0
  264. data/dist/ice/cpp/src/Ice/PushDisableDeprecatedWarnings.h +15 -0
  265. data/dist/ice/cpp/src/Ice/Random.cpp +29 -0
  266. data/dist/ice/cpp/src/Ice/Random.h +23 -0
  267. data/dist/ice/cpp/src/Ice/Reference.cpp +635 -1097
  268. data/dist/ice/cpp/src/Ice/Reference.h +314 -298
  269. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +320 -378
  270. data/dist/ice/cpp/src/Ice/ReferenceFactory.h +48 -66
  271. data/dist/ice/cpp/src/Ice/ReferenceFactoryF.h +4 -9
  272. data/dist/ice/cpp/src/Ice/RequestHandler.cpp +15 -24
  273. data/dist/ice/cpp/src/Ice/RequestHandler.h +43 -68
  274. data/dist/ice/cpp/src/Ice/RequestHandlerCache.cpp +76 -0
  275. data/dist/ice/cpp/src/Ice/RequestHandlerCache.h +33 -0
  276. data/dist/ice/cpp/src/Ice/ResourceConfig.h +27 -0
  277. data/dist/ice/cpp/src/Ice/RetryQueue.cpp +51 -57
  278. data/dist/ice/cpp/src/Ice/RetryQueue.h +39 -46
  279. data/dist/ice/cpp/src/Ice/RetryQueueF.h +4 -9
  280. data/dist/ice/cpp/src/Ice/RouterInfo.cpp +97 -201
  281. data/dist/ice/cpp/src/Ice/RouterInfo.h +61 -118
  282. data/dist/ice/cpp/src/Ice/RouterInfoF.h +6 -14
  283. data/dist/ice/cpp/src/Ice/SHA1.cpp +86 -60
  284. data/dist/ice/cpp/src/Ice/SHA1.h +35 -0
  285. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.cpp +89 -0
  286. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.h +87 -0
  287. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.cpp +521 -0
  288. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.h +40 -0
  289. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngineF.h +13 -0
  290. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp +646 -0
  291. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.h +80 -0
  292. data/dist/ice/cpp/src/{IceSSL → Ice/SSL}/RFC2253.cpp +85 -88
  293. data/dist/ice/cpp/src/Ice/SSL/RFC2253.h +58 -0
  294. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.cpp +124 -0
  295. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.h +52 -0
  296. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.cpp +92 -0
  297. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.h +38 -0
  298. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.cpp +377 -0
  299. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.h +84 -0
  300. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.cpp +115 -0
  301. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.h +69 -0
  302. data/dist/ice/cpp/src/Ice/SSL/SSLEngineF.h +14 -0
  303. data/dist/ice/cpp/src/Ice/SSL/SSLException.cpp +18 -0
  304. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.cpp +27 -0
  305. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.h +26 -0
  306. data/dist/ice/cpp/src/Ice/SSL/SSLInstanceF.h +19 -0
  307. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.cpp +673 -0
  308. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.h +118 -0
  309. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.cpp +1449 -0
  310. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.h +58 -0
  311. data/dist/ice/cpp/src/Ice/SSL/SchannelEngineF.h +18 -0
  312. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.cpp +1088 -0
  313. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.h +118 -0
  314. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.cpp +825 -0
  315. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.h +44 -0
  316. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngineF.h +18 -0
  317. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +621 -0
  318. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.h +91 -0
  319. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.cpp +1048 -0
  320. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.h +40 -0
  321. data/dist/ice/cpp/src/Ice/SSL/TrustManager.cpp +233 -0
  322. data/dist/ice/cpp/src/Ice/SSL/TrustManager.h +42 -0
  323. data/dist/ice/cpp/src/Ice/SSL/TrustManagerF.h +14 -0
  324. data/dist/ice/cpp/src/Ice/ScannerConfig.h +35 -0
  325. data/dist/ice/cpp/src/Ice/Selector.cpp +341 -606
  326. data/dist/ice/cpp/src/Ice/Selector.h +167 -224
  327. data/dist/ice/cpp/src/Ice/ServantManager.cpp +195 -128
  328. data/dist/ice/cpp/src/Ice/ServantManager.h +52 -55
  329. data/dist/ice/cpp/src/Ice/ServantManagerF.h +14 -0
  330. data/dist/ice/cpp/src/Ice/Service.cpp +548 -641
  331. data/dist/ice/cpp/src/Ice/SharedContext.h +13 -26
  332. data/dist/ice/cpp/src/Ice/SliceLoader.cpp +53 -0
  333. data/dist/ice/cpp/src/Ice/SlicedData.cpp +17 -96
  334. data/dist/ice/cpp/src/Ice/StreamSocket.cpp +104 -151
  335. data/dist/ice/cpp/src/Ice/StreamSocket.h +48 -60
  336. data/dist/ice/cpp/src/Ice/StringConverter.cpp +586 -0
  337. data/dist/ice/cpp/src/Ice/StringUtil.cpp +1137 -0
  338. data/dist/ice/cpp/src/Ice/SysLoggerI.cpp +41 -47
  339. data/dist/ice/cpp/src/Ice/SysLoggerI.h +24 -27
  340. data/dist/ice/cpp/src/Ice/SystemdJournalI.cpp +16 -17
  341. data/dist/ice/cpp/src/Ice/SystemdJournalI.h +19 -25
  342. data/dist/ice/cpp/src/Ice/TargetCompare.h +96 -0
  343. data/dist/ice/cpp/src/Ice/TcpAcceptor.cpp +67 -88
  344. data/dist/ice/cpp/src/Ice/TcpAcceptor.h +34 -40
  345. data/dist/ice/cpp/src/Ice/TcpConnector.cpp +42 -41
  346. data/dist/ice/cpp/src/Ice/TcpConnector.h +26 -35
  347. data/dist/ice/cpp/src/Ice/TcpEndpointI.cpp +172 -146
  348. data/dist/ice/cpp/src/Ice/TcpEndpointI.h +76 -80
  349. data/dist/ice/cpp/src/Ice/TcpTransceiver.cpp +38 -26
  350. data/dist/ice/cpp/src/Ice/TcpTransceiver.h +40 -45
  351. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +333 -515
  352. data/dist/ice/cpp/src/Ice/ThreadPool.h +202 -290
  353. data/dist/ice/cpp/src/Ice/ThreadPoolF.h +14 -0
  354. data/dist/ice/cpp/src/Ice/TimeUtil.cpp +47 -0
  355. data/dist/ice/cpp/src/Ice/TimeUtil.h +21 -0
  356. data/dist/ice/cpp/src/Ice/Timer.cpp +73 -167
  357. data/dist/ice/cpp/src/Ice/Timer.h +212 -0
  358. data/dist/ice/cpp/src/Ice/TraceLevels.cpp +11 -29
  359. data/dist/ice/cpp/src/Ice/TraceLevels.h +22 -28
  360. data/dist/ice/cpp/src/Ice/TraceLevelsF.h +4 -11
  361. data/dist/ice/cpp/src/Ice/TraceUtil.cpp +136 -215
  362. data/dist/ice/cpp/src/Ice/TraceUtil.h +27 -16
  363. data/dist/ice/cpp/src/Ice/Transceiver.cpp +3 -7
  364. data/dist/ice/cpp/src/Ice/Transceiver.h +35 -32
  365. data/dist/ice/cpp/src/Ice/TransceiverF.h +10 -20
  366. data/dist/ice/cpp/src/Ice/UUID.cpp +79 -0
  367. data/dist/ice/cpp/src/Ice/UdpConnector.cpp +39 -39
  368. data/dist/ice/cpp/src/Ice/UdpConnector.h +27 -36
  369. data/dist/ice/cpp/src/Ice/UdpEndpointI.cpp +178 -213
  370. data/dist/ice/cpp/src/Ice/UdpEndpointI.h +82 -85
  371. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +201 -221
  372. data/dist/ice/cpp/src/Ice/UdpTransceiver.h +68 -74
  373. data/dist/ice/cpp/{include/IceUtil → src/Ice}/UndefSysMacros.h +12 -12
  374. data/dist/ice/cpp/src/Ice/UniqueRef.h +77 -0
  375. data/dist/ice/cpp/src/Ice/UserException.cpp +58 -0
  376. data/dist/ice/cpp/src/Ice/Value.cpp +107 -38
  377. data/dist/ice/cpp/src/Ice/WSAcceptor.cpp +10 -15
  378. data/dist/ice/cpp/src/Ice/WSAcceptor.h +31 -37
  379. data/dist/ice/cpp/src/Ice/WSConnector.cpp +25 -40
  380. data/dist/ice/cpp/src/Ice/WSConnector.h +26 -33
  381. data/dist/ice/cpp/src/Ice/WSEndpoint.cpp +164 -217
  382. data/dist/ice/cpp/src/Ice/WSEndpoint.h +72 -83
  383. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +469 -458
  384. data/dist/ice/cpp/src/Ice/WSTransceiver.h +117 -123
  385. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +20 -29
  386. data/dist/ice/cpp/src/Ice/generated/Context.cpp +40 -0
  387. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +20 -31
  388. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +24 -34
  389. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +454 -1744
  390. data/dist/ice/cpp/src/Ice/generated/LocatorRegistry.cpp +577 -0
  391. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +824 -1971
  392. data/dist/ice/cpp/src/Ice/generated/OperationMode.cpp +56 -0
  393. data/dist/ice/cpp/src/Ice/generated/Process.cpp +190 -331
  394. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +289 -449
  395. data/dist/ice/cpp/src/Ice/generated/PropertyDict.cpp +40 -0
  396. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +547 -867
  397. data/dist/ice/cpp/src/Ice/generated/ReplyStatus.cpp +70 -0
  398. data/dist/ice/cpp/src/Ice/generated/Router.cpp +406 -723
  399. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +19 -29
  400. data/dist/ice/cpp/src/Ice/generated/Version.cpp +28 -31
  401. data/dist/ice/cpp/src/IceDiscovery/LocatorI.cpp +76 -139
  402. data/dist/ice/cpp/src/IceDiscovery/LocatorI.h +55 -96
  403. data/dist/ice/cpp/src/IceDiscovery/LookupI.cpp +190 -303
  404. data/dist/ice/cpp/src/IceDiscovery/LookupI.h +126 -185
  405. data/dist/ice/cpp/src/IceDiscovery/PluginI.cpp +56 -77
  406. data/dist/ice/cpp/src/IceDiscovery/PluginI.h +20 -25
  407. data/dist/ice/cpp/src/IceDiscovery/generated/Lookup.cpp +638 -0
  408. data/dist/ice/cpp/src/IceLocatorDiscovery/Plugin.h +14 -37
  409. data/dist/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +411 -649
  410. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/Lookup.cpp +468 -0
  411. data/dist/ice/cpp/src/Slice/DeprecationReporter.cpp +172 -0
  412. data/dist/ice/cpp/src/Slice/DeprecationReporter.h +14 -0
  413. data/dist/ice/cpp/src/Slice/DocCommentParser.cpp +736 -0
  414. data/dist/ice/cpp/src/Slice/DocCommentParser.h +61 -0
  415. data/dist/ice/cpp/src/Slice/FileTracker.cpp +25 -75
  416. data/dist/ice/cpp/src/Slice/FileTracker.h +35 -56
  417. data/dist/ice/cpp/src/Slice/Grammar.cpp +2711 -3382
  418. data/dist/ice/cpp/src/Slice/Grammar.h +95 -75
  419. data/dist/ice/cpp/src/Slice/GrammarUtil.h +117 -217
  420. data/dist/ice/cpp/src/Slice/MetadataValidation.cpp +486 -0
  421. data/dist/ice/cpp/src/Slice/MetadataValidation.h +106 -0
  422. data/dist/ice/cpp/src/Slice/Parser.cpp +3068 -5223
  423. data/dist/ice/cpp/src/Slice/Parser.h +1086 -1065
  424. data/dist/ice/cpp/src/Slice/Preprocessor.cpp +97 -599
  425. data/dist/ice/cpp/src/Slice/Preprocessor.h +26 -42
  426. data/dist/ice/cpp/src/Slice/Scanner.cpp +1562 -924
  427. data/dist/ice/cpp/src/Slice/SliceUtil.cpp +517 -113
  428. data/dist/ice/cpp/src/Slice/StringLiteralUtil.cpp +254 -269
  429. data/dist/ice/cpp/src/Slice/Util.h +126 -35
  430. data/dist/ice/cpp/src/slice2rb/Main.cpp +13 -15
  431. data/dist/ice/cpp/src/slice2rb/Ruby.cpp +250 -0
  432. data/dist/ice/cpp/src/slice2rb/RubyUtil.cpp +1197 -0
  433. data/dist/ice/cpp/src/slice2rb/RubyUtil.h +56 -0
  434. data/dist/ice/slice/Glacier2/Metrics.ice +34 -75
  435. data/dist/ice/slice/Glacier2/PermissionsVerifier.ice +42 -98
  436. data/dist/ice/slice/Glacier2/Router.ice +80 -173
  437. data/dist/ice/slice/Glacier2/SSLInfo.ice +23 -40
  438. data/dist/ice/slice/Glacier2/Session.ice +120 -261
  439. data/dist/ice/slice/Ice/BuiltinSequences.ice +33 -38
  440. data/dist/ice/slice/Ice/Context.ice +24 -0
  441. data/dist/ice/slice/Ice/EndpointTypes.ice +35 -33
  442. data/dist/ice/slice/Ice/Identity.ice +24 -63
  443. data/dist/ice/slice/Ice/Locator.ice +61 -226
  444. data/dist/ice/slice/Ice/LocatorRegistry.ice +77 -0
  445. data/dist/ice/slice/Ice/Metrics.ice +189 -424
  446. data/dist/ice/slice/Ice/OperationMode.ice +38 -0
  447. data/dist/ice/slice/Ice/Process.ice +16 -52
  448. data/dist/ice/slice/Ice/PropertiesAdmin.ice +25 -75
  449. data/dist/ice/slice/Ice/PropertyDict.ice +23 -0
  450. data/dist/ice/slice/Ice/RemoteLogger.ice +113 -213
  451. data/dist/ice/slice/Ice/ReplyStatus.ice +65 -0
  452. data/dist/ice/slice/Ice/Router.ice +42 -91
  453. data/dist/ice/slice/Ice/SliceChecksumDict.ice +7 -25
  454. data/dist/ice/slice/Ice/Version.ice +31 -39
  455. data/dist/ice/slice/IceBox/ServiceManager.ice +79 -0
  456. data/dist/ice/slice/IceGrid/Admin.ice +942 -1918
  457. data/dist/ice/slice/IceGrid/Descriptor.ice +476 -1051
  458. data/dist/ice/slice/IceGrid/Exception.ice +86 -384
  459. data/dist/ice/slice/IceGrid/FileParser.ice +23 -59
  460. data/dist/ice/slice/IceGrid/Registry.ice +117 -256
  461. data/dist/ice/slice/IceGrid/Session.ice +46 -110
  462. data/dist/ice/slice/IceGrid/UserAccountMapper.ice +22 -57
  463. data/dist/ice/slice/IceStorm/IceStorm.ice +173 -401
  464. data/dist/ice/slice/IceStorm/Metrics.ice +28 -70
  465. data/dist/lib/Glacier2/Metrics.rb +16 -31
  466. data/dist/lib/Glacier2/PermissionsVerifier.rb +18 -50
  467. data/dist/lib/Glacier2/Router.rb +20 -42
  468. data/dist/lib/Glacier2/SSLInfo.rb +14 -22
  469. data/dist/lib/Glacier2/Session.rb +53 -113
  470. data/dist/lib/Glacier2.rb +6 -6
  471. data/dist/lib/Ice/BuiltinSequences.rb +14 -26
  472. data/dist/lib/Ice/CompressBatch.rb +50 -0
  473. data/dist/lib/Ice/Context.rb +12 -0
  474. data/dist/lib/Ice/EndpointSelectionType.rb +49 -0
  475. data/dist/lib/Ice/EndpointTypes.rb +14 -55
  476. data/dist/lib/Ice/Exception.rb +20 -0
  477. data/dist/lib/Ice/Identity.rb +10 -26
  478. data/dist/lib/Ice/IdentitySpaceship.rb +16 -0
  479. data/dist/lib/Ice/InitializationData.rb +12 -0
  480. data/dist/lib/Ice/LocalExceptions.rb +168 -0
  481. data/dist/lib/Ice/Locator.rb +21 -134
  482. data/dist/lib/Ice/LocatorRegistry.rb +73 -0
  483. data/dist/lib/Ice/Metrics.rb +85 -132
  484. data/dist/lib/Ice/OperationMode.rb +58 -0
  485. data/dist/lib/Ice/Process.rb +12 -31
  486. data/dist/lib/Ice/PropertiesAdmin.rb +12 -36
  487. data/dist/lib/Ice/PropertyDict.rb +12 -0
  488. data/dist/lib/Ice/Proxy.rb +85 -0
  489. data/dist/lib/Ice/ProxyFunctions.rb +69 -0
  490. data/dist/lib/Ice/RemoteLogger.rb +29 -60
  491. data/dist/lib/Ice/ReplyStatus.rb +65 -0
  492. data/dist/lib/Ice/Router.rb +19 -47
  493. data/dist/lib/Ice/SliceChecksumDict.rb +5 -17
  494. data/dist/lib/Ice/SliceUtil.rb +41 -0
  495. data/dist/lib/Ice/Struct.rb +11 -0
  496. data/dist/lib/Ice/ToStringMode.rb +50 -0
  497. data/dist/lib/Ice/Value.rb +93 -0
  498. data/dist/lib/Ice/Version.rb +12 -24
  499. data/dist/lib/Ice.rb +29 -665
  500. data/dist/lib/IceBox/ServiceManager.rb +104 -0
  501. data/dist/lib/IceBox.rb +2 -4
  502. data/dist/lib/IceGrid/Admin.rb +303 -291
  503. data/dist/lib/IceGrid/Descriptor.rb +147 -192
  504. data/dist/lib/IceGrid/Exception.rb +26 -257
  505. data/dist/lib/IceGrid/FileParser.rb +12 -36
  506. data/dist/lib/IceGrid/Registry.rb +35 -76
  507. data/dist/lib/IceGrid/Session.rb +19 -34
  508. data/dist/lib/IceGrid/UserAccountMapper.rb +11 -34
  509. data/dist/lib/IceGrid.rb +3 -3
  510. data/dist/lib/IceStorm/IceStorm.rb +51 -132
  511. data/dist/lib/IceStorm/Metrics.rb +19 -37
  512. data/dist/lib/IceStorm.rb +3 -5
  513. data/extconf.rb +6 -8
  514. data/ice.gemspec +3 -3
  515. data/scripts/slice2rb +1 -3
  516. metadata +206 -386
  517. data/dist/IceRuby/ValueFactoryManager.cpp +0 -445
  518. data/dist/IceRuby/ValueFactoryManager.h +0 -95
  519. data/dist/ice/cpp/include/Ice/Application.h +0 -326
  520. data/dist/ice/cpp/include/Ice/AsyncResult.h +0 -155
  521. data/dist/ice/cpp/include/Ice/AsyncResultF.h +0 -23
  522. data/dist/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -75
  523. data/dist/ice/cpp/include/Ice/CommunicatorAsync.h +0 -154
  524. data/dist/ice/cpp/include/Ice/Comparable.h +0 -205
  525. data/dist/ice/cpp/include/Ice/ConnectionAsync.h +0 -302
  526. data/dist/ice/cpp/include/Ice/ConsoleUtil.h +0 -23
  527. data/dist/ice/cpp/include/Ice/DefaultValueFactory.h +0 -57
  528. data/dist/ice/cpp/include/Ice/DispatchInterceptor.h +0 -41
  529. data/dist/ice/cpp/include/Ice/Dispatcher.h +0 -67
  530. data/dist/ice/cpp/include/Ice/DynamicLibrary.h +0 -102
  531. data/dist/ice/cpp/include/Ice/DynamicLibraryF.h +0 -24
  532. data/dist/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  533. data/dist/ice/cpp/include/Ice/FactoryTable.h +0 -73
  534. data/dist/ice/cpp/include/Ice/FactoryTableInit.h +0 -84
  535. data/dist/ice/cpp/include/Ice/Functional.h +0 -140
  536. data/dist/ice/cpp/include/Ice/GCObject.h +0 -76
  537. data/dist/ice/cpp/include/Ice/Handle.h +0 -182
  538. data/dist/ice/cpp/include/Ice/Incoming.h +0 -225
  539. data/dist/ice/cpp/include/Ice/IncomingAsync.h +0 -186
  540. data/dist/ice/cpp/include/Ice/IncomingAsyncF.h +0 -36
  541. data/dist/ice/cpp/include/Ice/InterfaceByValue.h +0 -57
  542. data/dist/ice/cpp/include/Ice/LocalObject.h +0 -35
  543. data/dist/ice/cpp/include/Ice/LocalObjectF.h +0 -21
  544. data/dist/ice/cpp/include/Ice/MetricsAdminI.h +0 -715
  545. data/dist/ice/cpp/include/Ice/MetricsFunctional.h +0 -159
  546. data/dist/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  547. data/dist/ice/cpp/include/Ice/Optional.h +0 -1114
  548. data/dist/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -39
  549. data/dist/ice/cpp/include/Ice/Protocol.h +0 -274
  550. data/dist/ice/cpp/include/Ice/ProxyFactoryF.h +0 -21
  551. data/dist/ice/cpp/include/Ice/ProxyHandle.h +0 -318
  552. data/dist/ice/cpp/include/Ice/RegisterPlugins.h +0 -127
  553. data/dist/ice/cpp/include/Ice/ResponseHandlerF.h +0 -25
  554. data/dist/ice/cpp/include/Ice/SHA1.h +0 -40
  555. data/dist/ice/cpp/include/Ice/ServantManagerF.h +0 -21
  556. data/dist/ice/cpp/include/Ice/SliceChecksums.h +0 -33
  557. data/dist/ice/cpp/include/Ice/ThreadPoolF.h +0 -23
  558. data/dist/ice/cpp/include/Ice/UniquePtr.h +0 -95
  559. data/dist/ice/cpp/include/Ice/UniqueRef.h +0 -97
  560. data/dist/ice/cpp/include/IceSSL/Config.h +0 -21
  561. data/dist/ice/cpp/include/IceSSL/IceSSL.h +0 -24
  562. data/dist/ice/cpp/include/IceSSL/OpenSSL.h +0 -147
  563. data/dist/ice/cpp/include/IceSSL/Plugin.h +0 -712
  564. data/dist/ice/cpp/include/IceSSL/SChannel.h +0 -72
  565. data/dist/ice/cpp/include/IceSSL/SecureTransport.h +0 -72
  566. data/dist/ice/cpp/include/IceUtil/Atomic.h +0 -179
  567. data/dist/ice/cpp/include/IceUtil/Cond.h +0 -317
  568. data/dist/ice/cpp/include/IceUtil/Config.h +0 -392
  569. data/dist/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -92
  570. data/dist/ice/cpp/include/IceUtil/CountDownLatch.h +0 -45
  571. data/dist/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -96
  572. data/dist/ice/cpp/include/IceUtil/DisableWarnings.h +0 -44
  573. data/dist/ice/cpp/include/IceUtil/Exception.h +0 -394
  574. data/dist/ice/cpp/include/IceUtil/FileUtil.h +0 -140
  575. data/dist/ice/cpp/include/IceUtil/Functional.h +0 -389
  576. data/dist/ice/cpp/include/IceUtil/Handle.h +0 -261
  577. data/dist/ice/cpp/include/IceUtil/IceUtil.h +0 -40
  578. data/dist/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  579. data/dist/ice/cpp/include/IceUtil/Iterator.h +0 -31
  580. data/dist/ice/cpp/include/IceUtil/Lock.h +0 -128
  581. data/dist/ice/cpp/include/IceUtil/Monitor.h +0 -243
  582. data/dist/ice/cpp/include/IceUtil/Mutex.h +0 -349
  583. data/dist/ice/cpp/include/IceUtil/MutexProtocol.h +0 -23
  584. data/dist/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -78
  585. data/dist/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -77
  586. data/dist/ice/cpp/include/IceUtil/Optional.h +0 -433
  587. data/dist/ice/cpp/include/IceUtil/Options.h +0 -135
  588. data/dist/ice/cpp/include/IceUtil/OutputUtil.h +0 -383
  589. data/dist/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -33
  590. data/dist/ice/cpp/include/IceUtil/Random.h +0 -55
  591. data/dist/ice/cpp/include/IceUtil/RecMutex.h +0 -107
  592. data/dist/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
  593. data/dist/ice/cpp/include/IceUtil/ScannerConfig.h +0 -40
  594. data/dist/ice/cpp/include/IceUtil/ScopedArray.h +0 -98
  595. data/dist/ice/cpp/include/IceUtil/Shared.h +0 -127
  596. data/dist/ice/cpp/include/IceUtil/StopWatch.h +0 -49
  597. data/dist/ice/cpp/include/IceUtil/StringConverter.h +0 -195
  598. data/dist/ice/cpp/include/IceUtil/StringUtil.h +0 -97
  599. data/dist/ice/cpp/include/IceUtil/Thread.h +0 -160
  600. data/dist/ice/cpp/include/IceUtil/ThreadException.h +0 -94
  601. data/dist/ice/cpp/include/IceUtil/Time.h +0 -205
  602. data/dist/ice/cpp/include/IceUtil/Timer.h +0 -153
  603. data/dist/ice/cpp/include/IceUtil/UUID.h +0 -21
  604. data/dist/ice/cpp/include/generated/Glacier2/Metrics.h +0 -475
  605. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifier.h +0 -1430
  606. data/dist/ice/cpp/include/generated/Glacier2/PermissionsVerifierF.h +0 -147
  607. data/dist/ice/cpp/include/generated/Glacier2/Router.h +0 -3260
  608. data/dist/ice/cpp/include/generated/Glacier2/RouterF.h +0 -125
  609. data/dist/ice/cpp/include/generated/Glacier2/SSLInfo.h +0 -223
  610. data/dist/ice/cpp/include/generated/Glacier2/Session.h +0 -5894
  611. data/dist/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  612. data/dist/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  613. data/dist/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  614. data/dist/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  615. data/dist/ice/cpp/include/generated/Ice/Current.h +0 -322
  616. data/dist/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  617. data/dist/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  618. data/dist/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  619. data/dist/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  620. data/dist/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  621. data/dist/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  622. data/dist/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  623. data/dist/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  624. data/dist/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  625. data/dist/ice/cpp/include/generated/Ice/Logger.h +0 -237
  626. data/dist/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  627. data/dist/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  628. data/dist/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  629. data/dist/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  630. data/dist/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  631. data/dist/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  632. data/dist/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  633. data/dist/ice/cpp/include/generated/Ice/Properties.h +0 -452
  634. data/dist/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  635. data/dist/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  636. data/dist/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  637. data/dist/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  638. data/dist/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  639. data/dist/ice/cpp/include/generated/IceBox/IceBox.h +0 -3269
  640. data/dist/ice/cpp/include/generated/IceGrid/Admin.h +0 -33773
  641. data/dist/ice/cpp/include/generated/IceGrid/Descriptor.h +0 -5254
  642. data/dist/ice/cpp/include/generated/IceGrid/Exception.h +0 -2834
  643. data/dist/ice/cpp/include/generated/IceGrid/FileParser.h +0 -824
  644. data/dist/ice/cpp/include/generated/IceGrid/PluginFacade.h +0 -635
  645. data/dist/ice/cpp/include/generated/IceGrid/Registry.h +0 -5089
  646. data/dist/ice/cpp/include/generated/IceGrid/Session.h +0 -2240
  647. data/dist/ice/cpp/include/generated/IceGrid/UserAccountMapper.h +0 -800
  648. data/dist/ice/cpp/include/generated/IcePatch2/FileInfo.h +0 -325
  649. data/dist/ice/cpp/include/generated/IcePatch2/FileServer.h +0 -2891
  650. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  651. data/dist/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  652. data/dist/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  653. data/dist/ice/cpp/include/generated/IceStorm/IceStorm.h +0 -6627
  654. data/dist/ice/cpp/include/generated/IceStorm/Metrics.h +0 -665
  655. data/dist/ice/cpp/src/Ice/ACM.cpp +0 -380
  656. data/dist/ice/cpp/src/Ice/ACM.h +0 -119
  657. data/dist/ice/cpp/src/Ice/ACMF.h +0 -30
  658. data/dist/ice/cpp/src/Ice/Acceptor.cpp +0 -16
  659. data/dist/ice/cpp/src/Ice/Application.cpp +0 -661
  660. data/dist/ice/cpp/src/Ice/AsyncResult.cpp +0 -70
  661. data/dist/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  662. data/dist/ice/cpp/src/Ice/CommunicatorI.h +0 -167
  663. data/dist/ice/cpp/src/Ice/Cond.cpp +0 -381
  664. data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -73
  665. data/dist/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -41
  666. data/dist/ice/cpp/src/Ice/Connector.cpp +0 -16
  667. data/dist/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
  668. data/dist/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -37
  669. data/dist/ice/cpp/src/Ice/FactoryTable.cpp +0 -162
  670. data/dist/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -88
  671. data/dist/ice/cpp/src/Ice/GCObject.cpp +0 -442
  672. data/dist/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -51
  673. data/dist/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -655
  674. data/dist/ice/cpp/src/Ice/ImplicitContextI.h +0 -48
  675. data/dist/ice/cpp/src/Ice/Incoming.cpp +0 -795
  676. data/dist/ice/cpp/src/Ice/IncomingAsync.cpp +0 -230
  677. data/dist/ice/cpp/src/Ice/IncomingRequest.h +0 -33
  678. data/dist/ice/cpp/src/Ice/LocalObject.cpp +0 -23
  679. data/dist/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -8
  680. data/dist/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -265
  681. data/dist/ice/cpp/src/Ice/PropertiesAdminI.h +0 -64
  682. data/dist/ice/cpp/src/Ice/PropertiesI.cpp +0 -739
  683. data/dist/ice/cpp/src/Ice/PropertiesI.h +0 -70
  684. data/dist/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -21
  685. data/dist/ice/cpp/src/Ice/ProxyFactory.cpp +0 -300
  686. data/dist/ice/cpp/src/Ice/ProxyFactory.h +0 -57
  687. data/dist/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -38
  688. data/dist/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -20
  689. data/dist/ice/cpp/src/Ice/ReplyStatus.h +0 -24
  690. data/dist/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -77
  691. data/dist/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -37
  692. data/dist/ice/cpp/src/Ice/ResponseHandler.cpp +0 -12
  693. data/dist/ice/cpp/src/Ice/ResponseHandler.h +0 -43
  694. data/dist/ice/cpp/src/Ice/SliceChecksums.cpp +0 -75
  695. data/dist/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -192
  696. data/dist/ice/cpp/src/Ice/StringUtil.h +0 -30
  697. data/dist/ice/cpp/src/Ice/Thread.cpp +0 -569
  698. data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -61
  699. data/dist/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -37
  700. data/dist/ice/cpp/src/Ice/VirtualShared.h +0 -38
  701. data/dist/ice/cpp/src/Ice/generated/Communicator.cpp +0 -79
  702. data/dist/ice/cpp/src/Ice/generated/CommunicatorF.cpp +0 -61
  703. data/dist/ice/cpp/src/Ice/generated/Connection.cpp +0 -155
  704. data/dist/ice/cpp/src/Ice/generated/ConnectionF.cpp +0 -61
  705. data/dist/ice/cpp/src/Ice/generated/Current.cpp +0 -62
  706. data/dist/ice/cpp/src/Ice/generated/Endpoint.cpp +0 -147
  707. data/dist/ice/cpp/src/Ice/generated/EndpointF.cpp +0 -61
  708. data/dist/ice/cpp/src/Ice/generated/FacetMap.cpp +0 -49
  709. data/dist/ice/cpp/src/Ice/generated/ImplicitContext.cpp +0 -75
  710. data/dist/ice/cpp/src/Ice/generated/ImplicitContextF.cpp +0 -61
  711. data/dist/ice/cpp/src/Ice/generated/Instrumentation.cpp +0 -188
  712. data/dist/ice/cpp/src/Ice/generated/InstrumentationF.cpp +0 -66
  713. data/dist/ice/cpp/src/Ice/generated/LocalException.cpp +0 -3262
  714. data/dist/ice/cpp/src/Ice/generated/LocatorF.cpp +0 -63
  715. data/dist/ice/cpp/src/Ice/generated/Logger.cpp +0 -73
  716. data/dist/ice/cpp/src/Ice/generated/LoggerF.cpp +0 -61
  717. data/dist/ice/cpp/src/Ice/generated/ObjectAdapter.cpp +0 -79
  718. data/dist/ice/cpp/src/Ice/generated/ObjectAdapterF.cpp +0 -61
  719. data/dist/ice/cpp/src/Ice/generated/ObjectFactory.cpp +0 -75
  720. data/dist/ice/cpp/src/Ice/generated/Plugin.cpp +0 -87
  721. data/dist/ice/cpp/src/Ice/generated/PluginF.cpp +0 -61
  722. data/dist/ice/cpp/src/Ice/generated/ProcessF.cpp +0 -63
  723. data/dist/ice/cpp/src/Ice/generated/Properties.cpp +0 -78
  724. data/dist/ice/cpp/src/Ice/generated/PropertiesF.cpp +0 -63
  725. data/dist/ice/cpp/src/Ice/generated/RouterF.cpp +0 -63
  726. data/dist/ice/cpp/src/Ice/generated/ServantLocator.cpp +0 -75
  727. data/dist/ice/cpp/src/Ice/generated/ServantLocatorF.cpp +0 -61
  728. data/dist/ice/cpp/src/Ice/generated/ValueFactory.cpp +0 -83
  729. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.cpp +0 -154
  730. data/dist/ice/cpp/src/Ice/ios/StreamAcceptor.h +0 -49
  731. data/dist/ice/cpp/src/Ice/ios/StreamConnector.cpp +0 -146
  732. data/dist/ice/cpp/src/Ice/ios/StreamConnector.h +0 -52
  733. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.cpp +0 -477
  734. data/dist/ice/cpp/src/Ice/ios/StreamEndpointI.h +0 -156
  735. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.cpp +0 -570
  736. data/dist/ice/cpp/src/Ice/ios/StreamTransceiver.h +0 -93
  737. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery/IceDiscovery.h +0 -1889
  738. data/dist/ice/cpp/src/IceDiscovery/generated/IceDiscovery.cpp +0 -915
  739. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  740. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/IceLocatorDiscovery.cpp +0 -730
  741. data/dist/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -105
  742. data/dist/ice/cpp/src/IceSSL/AcceptorI.h +0 -52
  743. data/dist/ice/cpp/src/IceSSL/CertificateI.cpp +0 -301
  744. data/dist/ice/cpp/src/IceSSL/CertificateI.h +0 -64
  745. data/dist/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -102
  746. data/dist/ice/cpp/src/IceSSL/ConnectorI.h +0 -44
  747. data/dist/ice/cpp/src/IceSSL/EndpointI.cpp +0 -372
  748. data/dist/ice/cpp/src/IceSSL/EndpointI.h +0 -100
  749. data/dist/ice/cpp/src/IceSSL/Instance.cpp +0 -28
  750. data/dist/ice/cpp/src/IceSSL/Instance.h +0 -37
  751. data/dist/ice/cpp/src/IceSSL/InstanceF.h +0 -33
  752. data/dist/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -688
  753. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  754. data/dist/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -59
  755. data/dist/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -27
  756. data/dist/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -127
  757. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  758. data/dist/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -90
  759. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  760. data/dist/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -58
  761. data/dist/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  762. data/dist/ice/cpp/src/IceSSL/PluginI.h +0 -67
  763. data/dist/ice/cpp/src/IceSSL/RFC2253.h +0 -62
  764. data/dist/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -721
  765. data/dist/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  766. data/dist/ice/cpp/src/IceSSL/SChannelEngine.h +0 -123
  767. data/dist/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -31
  768. data/dist/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -73
  769. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  770. data/dist/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -133
  771. data/dist/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  772. data/dist/ice/cpp/src/IceSSL/SSLEngine.h +0 -100
  773. data/dist/ice/cpp/src/IceSSL/SSLEngineF.h +0 -21
  774. data/dist/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -999
  775. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  776. data/dist/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  777. data/dist/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -29
  778. data/dist/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -75
  779. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  780. data/dist/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -92
  781. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  782. data/dist/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -45
  783. data/dist/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  784. data/dist/ice/cpp/src/IceSSL/TrustManager.h +0 -46
  785. data/dist/ice/cpp/src/IceSSL/TrustManagerF.h +0 -21
  786. data/dist/ice/cpp/src/IceSSL/Util.cpp +0 -192
  787. data/dist/ice/cpp/src/IceSSL/Util.h +0 -99
  788. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfo.cpp +0 -75
  789. data/dist/ice/cpp/src/IceSSL/generated/ConnectionInfoF.cpp +0 -61
  790. data/dist/ice/cpp/src/IceSSL/generated/EndpointInfo.cpp +0 -75
  791. data/dist/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  792. data/dist/ice/cpp/src/IceUtil/ConvertUTF.h +0 -147
  793. data/dist/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -259
  794. data/dist/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
  795. data/dist/ice/cpp/src/IceUtil/InputUtil.cpp +0 -36
  796. data/dist/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -19
  797. data/dist/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -609
  798. data/dist/ice/cpp/src/IceUtil/Random.cpp +0 -180
  799. data/dist/ice/cpp/src/IceUtil/RecMutex.cpp +0 -238
  800. data/dist/ice/cpp/src/IceUtil/Shared.cpp +0 -71
  801. data/dist/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  802. data/dist/ice/cpp/src/IceUtil/StringUtil.cpp +0 -1135
  803. data/dist/ice/cpp/src/IceUtil/ThreadException.cpp +0 -130
  804. data/dist/ice/cpp/src/IceUtil/Time.cpp +0 -307
  805. data/dist/ice/cpp/src/IceUtil/UUID.cpp +0 -165
  806. data/dist/ice/cpp/src/IceUtil/Unicode.cpp +0 -183
  807. data/dist/ice/cpp/src/IceUtil/Unicode.h +0 -43
  808. data/dist/ice/cpp/src/IceUtil/UtilException.cpp +0 -839
  809. data/dist/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -1810
  810. data/dist/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -72
  811. data/dist/ice/cpp/src/Slice/Checksum.cpp +0 -447
  812. data/dist/ice/cpp/src/Slice/Checksum.h +0 -21
  813. data/dist/ice/cpp/src/Slice/JavaUtil.cpp +0 -5183
  814. data/dist/ice/cpp/src/Slice/JavaUtil.h +0 -407
  815. data/dist/ice/cpp/src/Slice/MD5.cpp +0 -52
  816. data/dist/ice/cpp/src/Slice/MD5.h +0 -39
  817. data/dist/ice/cpp/src/Slice/MD5I.cpp +0 -393
  818. data/dist/ice/cpp/src/Slice/MD5I.h +0 -91
  819. data/dist/ice/cpp/src/Slice/PHPUtil.cpp +0 -157
  820. data/dist/ice/cpp/src/Slice/PHPUtil.h +0 -36
  821. data/dist/ice/cpp/src/Slice/Python.cpp +0 -830
  822. data/dist/ice/cpp/src/Slice/PythonUtil.cpp +0 -3439
  823. data/dist/ice/cpp/src/Slice/PythonUtil.h +0 -70
  824. data/dist/ice/cpp/src/Slice/Ruby.cpp +0 -350
  825. data/dist/ice/cpp/src/Slice/RubyUtil.cpp +0 -1571
  826. data/dist/ice/cpp/src/Slice/RubyUtil.h +0 -49
  827. data/dist/ice/slice/Glacier2/PermissionsVerifierF.ice +0 -30
  828. data/dist/ice/slice/Glacier2/RouterF.ice +0 -29
  829. data/dist/ice/slice/Ice/Communicator.ice +0 -676
  830. data/dist/ice/slice/Ice/CommunicatorF.ice +0 -31
  831. data/dist/ice/slice/Ice/Connection.ice +0 -516
  832. data/dist/ice/slice/Ice/ConnectionF.ice +0 -33
  833. data/dist/ice/slice/Ice/Current.ice +0 -170
  834. data/dist/ice/slice/Ice/Endpoint.ice +0 -291
  835. data/dist/ice/slice/Ice/EndpointF.ice +0 -43
  836. data/dist/ice/slice/Ice/FacetMap.ice +0 -36
  837. data/dist/ice/slice/Ice/ImplicitContext.ice +0 -119
  838. data/dist/ice/slice/Ice/ImplicitContextF.ice +0 -30
  839. data/dist/ice/slice/Ice/Instrumentation.ice +0 -509
  840. data/dist/ice/slice/Ice/InstrumentationF.ice +0 -38
  841. data/dist/ice/slice/Ice/LocalException.ice +0 -1040
  842. data/dist/ice/slice/Ice/LocatorF.ice +0 -32
  843. data/dist/ice/slice/Ice/Logger.ice +0 -99
  844. data/dist/ice/slice/Ice/LoggerF.ice +0 -31
  845. data/dist/ice/slice/Ice/ObjectAdapter.ice +0 -710
  846. data/dist/ice/slice/Ice/ObjectAdapterF.ice +0 -31
  847. data/dist/ice/slice/Ice/ObjectFactory.ice +0 -71
  848. data/dist/ice/slice/Ice/Plugin.ice +0 -131
  849. data/dist/ice/slice/Ice/PluginF.ice +0 -36
  850. data/dist/ice/slice/Ice/ProcessF.ice +0 -31
  851. data/dist/ice/slice/Ice/Properties.ice +0 -244
  852. data/dist/ice/slice/Ice/PropertiesF.ice +0 -32
  853. data/dist/ice/slice/Ice/RouterF.ice +0 -31
  854. data/dist/ice/slice/Ice/ServantLocator.ice +0 -136
  855. data/dist/ice/slice/Ice/ServantLocatorF.ice +0 -31
  856. data/dist/ice/slice/Ice/ValueFactory.ice +0 -133
  857. data/dist/ice/slice/IceBox/IceBox.ice +0 -216
  858. data/dist/ice/slice/IceGrid/PluginFacade.ice +0 -329
  859. data/dist/ice/slice/IcePatch2/FileInfo.ice +0 -85
  860. data/dist/ice/slice/IcePatch2/FileServer.ice +0 -191
  861. data/dist/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  862. data/dist/lib/Glacier2/RouterF.rb +0 -25
  863. data/dist/lib/Ice/Communicator.rb +0 -87
  864. data/dist/lib/Ice/CommunicatorF.rb +0 -24
  865. data/dist/lib/Ice/Connection.rb +0 -413
  866. data/dist/lib/Ice/ConnectionF.rb +0 -32
  867. data/dist/lib/Ice/Current.rb +0 -141
  868. data/dist/lib/Ice/Endpoint.rb +0 -187
  869. data/dist/lib/Ice/EndpointF.rb +0 -48
  870. data/dist/lib/Ice/FacetMap.rb +0 -24
  871. data/dist/lib/Ice/ImplicitContext.rb +0 -26
  872. data/dist/lib/Ice/ImplicitContextF.rb +0 -24
  873. data/dist/lib/Ice/Instrumentation.rb +0 -169
  874. data/dist/lib/Ice/InstrumentationF.rb +0 -31
  875. data/dist/lib/Ice/LocalException.rb +0 -1031
  876. data/dist/lib/Ice/LocatorF.rb +0 -30
  877. data/dist/lib/Ice/Logger.rb +0 -24
  878. data/dist/lib/Ice/LoggerF.rb +0 -24
  879. data/dist/lib/Ice/ObjectAdapter.rb +0 -29
  880. data/dist/lib/Ice/ObjectAdapterF.rb +0 -24
  881. data/dist/lib/Ice/ObjectFactory.rb +0 -24
  882. data/dist/lib/Ice/Plugin.rb +0 -30
  883. data/dist/lib/Ice/PluginF.rb +0 -28
  884. data/dist/lib/Ice/ProcessF.rb +0 -25
  885. data/dist/lib/Ice/Properties.rb +0 -25
  886. data/dist/lib/Ice/PropertiesF.rb +0 -29
  887. data/dist/lib/Ice/RouterF.rb +0 -25
  888. data/dist/lib/Ice/ServantLocator.rb +0 -26
  889. data/dist/lib/Ice/ServantLocatorF.rb +0 -24
  890. data/dist/lib/Ice/ValueFactory.rb +0 -28
  891. data/dist/lib/IceBox/IceBox.rb +0 -164
  892. data/dist/lib/IceGrid/PluginFacade.rb +0 -35
  893. data/dist/lib/IcePatch2/FileInfo.rb +0 -115
  894. data/dist/lib/IcePatch2/FileServer.rb +0 -123
  895. data/dist/lib/IcePatch2.rb +0 -5
@@ -1,2042 +1,752 @@
1
- //
2
- // Copyright (c) ZeroC, Inc. All rights reserved.
3
- //
4
- //
5
- // Ice version 3.7.11
6
- //
7
- // <auto-generated>
8
- //
9
- // Generated from file `Locator.ice'
10
- //
11
- // Warning: do not edit this file.
12
- //
13
- // </auto-generated>
14
- //
1
+ // Copyright (c) ZeroC, Inc.
2
+
3
+ // slice2cpp version 3.8.1
4
+ // <auto-generated>Generated from Slice file 'Locator.ice'.</auto-generated>
15
5
 
16
6
  #ifndef ICE_API_EXPORTS
17
7
  # define ICE_API_EXPORTS
18
8
  #endif
19
- #include <Ice/Locator.h>
20
- #include <IceUtil/PushDisableWarnings.h>
21
- #include <Ice/LocalException.h>
22
- #include <Ice/ValueFactory.h>
9
+ #define ICE_BUILDING_GENERATED_CODE
10
+
11
+ #include "Ice/Locator.h"
12
+ #include <Ice/LocatorRegistry.h>
13
+ #include <Ice/AsyncResponseHandler.h>
14
+ #include <Ice/DefaultSliceLoader.h>
23
15
  #include <Ice/OutgoingAsync.h>
24
- #include <Ice/InputStream.h>
25
- #include <Ice/OutputStream.h>
26
- #include <Ice/LocalException.h>
27
- #include <IceUtil/PopDisableWarnings.h>
16
+ #include <algorithm>
17
+ #include <array>
28
18
 
29
19
  #if defined(_MSC_VER)
30
- # pragma warning(disable:4458) // declaration of ... hides class member
20
+ # pragma warning(disable : 4458) // declaration of ... hides class member
21
+ # pragma warning(disable : 4996) // ... was declared deprecated
31
22
  #elif defined(__clang__)
32
23
  # pragma clang diagnostic ignored "-Wshadow"
24
+ # pragma clang diagnostic ignored "-Wdeprecated-declarations"
33
25
  #elif defined(__GNUC__)
34
26
  # pragma GCC diagnostic ignored "-Wshadow"
27
+ # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35
28
  #endif
36
29
 
37
- #ifndef ICE_IGNORE_VERSION
38
- # if ICE_INT_VERSION / 100 != 307
30
+ #ifndef ICE_DISABLE_VERSION
31
+ # if ICE_INT_VERSION / 100 != 308
39
32
  # error Ice version mismatch!
40
33
  # endif
41
34
  # if ICE_INT_VERSION % 100 >= 50
42
35
  # error Beta header file detected
43
36
  # endif
44
- # if ICE_INT_VERSION % 100 < 11
37
+ # if ICE_INT_VERSION % 100 < 1
45
38
  # error Ice patch level mismatch!
46
39
  # endif
47
40
  #endif
48
41
 
49
- #ifdef ICE_CPP11_MAPPING // C++11 mapping
50
-
51
42
  namespace
52
43
  {
53
-
54
- const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::AdapterNotFoundException> iceC_Ice_AdapterNotFoundException_init("::Ice::AdapterNotFoundException");
55
-
56
- const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::InvalidReplicaGroupIdException> iceC_Ice_InvalidReplicaGroupIdException_init("::Ice::InvalidReplicaGroupIdException");
57
-
58
- const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::AdapterAlreadyActiveException> iceC_Ice_AdapterAlreadyActiveException_init("::Ice::AdapterAlreadyActiveException");
59
-
60
- const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::ObjectNotFoundException> iceC_Ice_ObjectNotFoundException_init("::Ice::ObjectNotFoundException");
61
-
62
- const ::IceInternal::DefaultUserExceptionFactoryInit<::Ice::ServerNotFoundException> iceC_Ice_ServerNotFoundException_init("::Ice::ServerNotFoundException");
63
-
64
- const ::std::string iceC_Ice_Locator_ids[2] =
65
- {
66
- "::Ice::Locator",
67
- "::Ice::Object"
68
- };
69
- const ::std::string iceC_Ice_Locator_ops[] =
70
- {
71
- "findAdapterById",
72
- "findObjectById",
73
- "getRegistry",
74
- "ice_id",
75
- "ice_ids",
76
- "ice_isA",
77
- "ice_ping"
78
- };
79
- const ::std::string iceC_Ice_Locator_findObjectById_name = "findObjectById";
80
- const ::std::string iceC_Ice_Locator_findAdapterById_name = "findAdapterById";
81
- const ::std::string iceC_Ice_Locator_getRegistry_name = "getRegistry";
82
-
83
- const ::std::string iceC_Ice_LocatorRegistry_ids[2] =
84
- {
85
- "::Ice::LocatorRegistry",
86
- "::Ice::Object"
87
- };
88
- const ::std::string iceC_Ice_LocatorRegistry_ops[] =
89
- {
90
- "ice_id",
91
- "ice_ids",
92
- "ice_isA",
93
- "ice_ping",
94
- "setAdapterDirectProxy",
95
- "setReplicatedAdapterDirectProxy",
96
- "setServerProcessProxy"
97
- };
98
- const ::std::string iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name = "setAdapterDirectProxy";
99
- const ::std::string iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name = "setReplicatedAdapterDirectProxy";
100
- const ::std::string iceC_Ice_LocatorRegistry_setServerProcessProxy_name = "setServerProcessProxy";
101
-
102
- const ::std::string iceC_Ice_LocatorFinder_ids[2] =
103
- {
104
- "::Ice::LocatorFinder",
105
- "::Ice::Object"
106
- };
107
- const ::std::string iceC_Ice_LocatorFinder_ops[] =
108
- {
109
- "getLocator",
110
- "ice_id",
111
- "ice_ids",
112
- "ice_isA",
113
- "ice_ping"
114
- };
115
- const ::std::string iceC_Ice_LocatorFinder_getLocator_name = "getLocator";
116
-
117
- }
118
-
119
- Ice::AdapterNotFoundException::~AdapterNotFoundException()
120
- {
121
- }
122
-
123
- const ::std::string&
124
- Ice::AdapterNotFoundException::ice_staticId()
125
- {
126
- static const ::std::string typeId = "::Ice::AdapterNotFoundException";
127
- return typeId;
128
- }
129
-
130
- Ice::InvalidReplicaGroupIdException::~InvalidReplicaGroupIdException()
131
- {
132
- }
133
-
134
- const ::std::string&
135
- Ice::InvalidReplicaGroupIdException::ice_staticId()
136
- {
137
- static const ::std::string typeId = "::Ice::InvalidReplicaGroupIdException";
138
- return typeId;
139
- }
140
-
141
- Ice::AdapterAlreadyActiveException::~AdapterAlreadyActiveException()
142
- {
143
- }
144
-
145
- const ::std::string&
146
- Ice::AdapterAlreadyActiveException::ice_staticId()
147
- {
148
- static const ::std::string typeId = "::Ice::AdapterAlreadyActiveException";
149
- return typeId;
150
- }
151
-
152
- Ice::ObjectNotFoundException::~ObjectNotFoundException()
153
- {
154
- }
155
-
156
- const ::std::string&
157
- Ice::ObjectNotFoundException::ice_staticId()
158
- {
159
- static const ::std::string typeId = "::Ice::ObjectNotFoundException";
160
- return typeId;
161
- }
162
-
163
- Ice::ServerNotFoundException::~ServerNotFoundException()
164
- {
165
- }
166
-
167
- const ::std::string&
168
- Ice::ServerNotFoundException::ice_staticId()
169
- {
170
- static const ::std::string typeId = "::Ice::ServerNotFoundException";
171
- return typeId;
172
- }
173
-
174
- bool
175
- Ice::Locator::ice_isA(::std::string s, const Current&) const
176
- {
177
- return ::std::binary_search(iceC_Ice_Locator_ids, iceC_Ice_Locator_ids + 2, s);
178
- }
179
-
180
- ::std::vector<::std::string>
181
- Ice::Locator::ice_ids(const Current&) const
182
- {
183
- return ::std::vector<::std::string>(&iceC_Ice_Locator_ids[0], &iceC_Ice_Locator_ids[2]);
184
- }
185
-
186
- ::std::string
187
- Ice::Locator::ice_id(const Current&) const
188
- {
189
- return ice_staticId();
190
- }
191
-
192
- const ::std::string&
193
- Ice::Locator::ice_staticId()
194
- {
195
- static const ::std::string typeId = "::Ice::Locator";
196
- return typeId;
197
- }
198
-
199
- /// \cond INTERNAL
200
- bool
201
- Ice::Locator::_iceD_findObjectById(::IceInternal::Incoming& inS, const Current& current) const
202
- {
203
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
204
- auto istr = inS.startReadParams();
205
- Identity iceP_id;
206
- istr->readAll(iceP_id);
207
- inS.endReadParams();
208
- auto inA = ::IceInternal::IncomingAsync::create(inS);
209
- auto responseCB = [inA](const ::std::shared_ptr<ObjectPrx>& ret)
210
- {
211
- auto ostr = inA->startWriteParams();
212
- ostr->writeAll(ret);
213
- inA->endWriteParams();
214
- inA->completed();
215
- };
216
- this->findObjectByIdAsync(::std::move(iceP_id), responseCB, inA->exception(), current);
217
- return false;
218
- }
219
- /// \endcond
220
-
221
- /// \cond INTERNAL
222
- bool
223
- Ice::Locator::_iceD_findAdapterById(::IceInternal::Incoming& inS, const Current& current) const
224
- {
225
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
226
- auto istr = inS.startReadParams();
227
- ::std::string iceP_id;
228
- istr->readAll(iceP_id);
229
- inS.endReadParams();
230
- auto inA = ::IceInternal::IncomingAsync::create(inS);
231
- auto responseCB = [inA](const ::std::shared_ptr<ObjectPrx>& ret)
232
- {
233
- auto ostr = inA->startWriteParams();
234
- ostr->writeAll(ret);
235
- inA->endWriteParams();
236
- inA->completed();
237
- };
238
- this->findAdapterByIdAsync(::std::move(iceP_id), responseCB, inA->exception(), current);
239
- return false;
240
- }
241
- /// \endcond
242
-
243
- /// \cond INTERNAL
244
- bool
245
- Ice::Locator::_iceD_getRegistry(::IceInternal::Incoming& inS, const Current& current) const
246
- {
247
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
248
- inS.readEmptyParams();
249
- ::std::shared_ptr<LocatorRegistryPrx> ret = this->getRegistry(current);
250
- auto ostr = inS.startWriteParams();
251
- ostr->writeAll(ret);
252
- inS.endWriteParams();
253
- return true;
254
- }
255
- /// \endcond
256
-
257
- /// \cond INTERNAL
258
- bool
259
- Ice::Locator::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
260
- {
261
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_Locator_ops, iceC_Ice_Locator_ops + 7, current.operation);
262
- if(r.first == r.second)
263
- {
264
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
265
- }
266
-
267
- switch(r.first - iceC_Ice_Locator_ops)
268
- {
269
- case 0:
270
- {
271
- return _iceD_findAdapterById(in, current);
272
- }
273
- case 1:
274
- {
275
- return _iceD_findObjectById(in, current);
276
- }
277
- case 2:
278
- {
279
- return _iceD_getRegistry(in, current);
280
- }
281
- case 3:
282
- {
283
- return _iceD_ice_id(in, current);
284
- }
285
- case 4:
286
- {
287
- return _iceD_ice_ids(in, current);
288
- }
289
- case 5:
290
- {
291
- return _iceD_ice_isA(in, current);
292
- }
293
- case 6:
294
- {
295
- return _iceD_ice_ping(in, current);
296
- }
297
- default:
298
- {
299
- assert(false);
300
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
301
- }
302
- }
303
- }
304
- /// \endcond
305
-
306
- bool
307
- Ice::LocatorRegistry::ice_isA(::std::string s, const Current&) const
308
- {
309
- return ::std::binary_search(iceC_Ice_LocatorRegistry_ids, iceC_Ice_LocatorRegistry_ids + 2, s);
310
- }
311
-
312
- ::std::vector<::std::string>
313
- Ice::LocatorRegistry::ice_ids(const Current&) const
314
- {
315
- return ::std::vector<::std::string>(&iceC_Ice_LocatorRegistry_ids[0], &iceC_Ice_LocatorRegistry_ids[2]);
316
- }
317
-
318
- ::std::string
319
- Ice::LocatorRegistry::ice_id(const Current&) const
320
- {
321
- return ice_staticId();
322
- }
323
-
324
- const ::std::string&
325
- Ice::LocatorRegistry::ice_staticId()
326
- {
327
- static const ::std::string typeId = "::Ice::LocatorRegistry";
328
- return typeId;
329
- }
330
-
331
- /// \cond INTERNAL
332
- bool
333
- Ice::LocatorRegistry::_iceD_setAdapterDirectProxy(::IceInternal::Incoming& inS, const Current& current)
334
- {
335
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
336
- auto istr = inS.startReadParams();
337
- ::std::string iceP_id;
338
- ::std::shared_ptr<ObjectPrx> iceP_proxy;
339
- istr->readAll(iceP_id, iceP_proxy);
340
- inS.endReadParams();
341
- auto inA = ::IceInternal::IncomingAsync::create(inS);
342
- this->setAdapterDirectProxyAsync(::std::move(iceP_id), ::std::move(iceP_proxy), inA->response(), inA->exception(), current);
343
- return false;
344
- }
345
- /// \endcond
346
-
347
- /// \cond INTERNAL
348
- bool
349
- Ice::LocatorRegistry::_iceD_setReplicatedAdapterDirectProxy(::IceInternal::Incoming& inS, const Current& current)
350
- {
351
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
352
- auto istr = inS.startReadParams();
353
- ::std::string iceP_adapterId;
354
- ::std::string iceP_replicaGroupId;
355
- ::std::shared_ptr<ObjectPrx> iceP_p;
356
- istr->readAll(iceP_adapterId, iceP_replicaGroupId, iceP_p);
357
- inS.endReadParams();
358
- auto inA = ::IceInternal::IncomingAsync::create(inS);
359
- this->setReplicatedAdapterDirectProxyAsync(::std::move(iceP_adapterId), ::std::move(iceP_replicaGroupId), ::std::move(iceP_p), inA->response(), inA->exception(), current);
360
- return false;
361
- }
362
- /// \endcond
363
-
364
- /// \cond INTERNAL
365
- bool
366
- Ice::LocatorRegistry::_iceD_setServerProcessProxy(::IceInternal::Incoming& inS, const Current& current)
367
- {
368
- _iceCheckMode(::Ice::OperationMode::Idempotent, current.mode);
369
- auto istr = inS.startReadParams();
370
- ::std::string iceP_id;
371
- ::std::shared_ptr<ProcessPrx> iceP_proxy;
372
- istr->readAll(iceP_id, iceP_proxy);
373
- inS.endReadParams();
374
- auto inA = ::IceInternal::IncomingAsync::create(inS);
375
- this->setServerProcessProxyAsync(::std::move(iceP_id), ::std::move(iceP_proxy), inA->response(), inA->exception(), current);
376
- return false;
377
- }
378
- /// \endcond
379
-
380
- /// \cond INTERNAL
381
- bool
382
- Ice::LocatorRegistry::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
383
- {
384
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LocatorRegistry_ops, iceC_Ice_LocatorRegistry_ops + 7, current.operation);
385
- if(r.first == r.second)
386
- {
387
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
388
- }
389
-
390
- switch(r.first - iceC_Ice_LocatorRegistry_ops)
391
- {
392
- case 0:
393
- {
394
- return _iceD_ice_id(in, current);
395
- }
396
- case 1:
397
- {
398
- return _iceD_ice_ids(in, current);
399
- }
400
- case 2:
401
- {
402
- return _iceD_ice_isA(in, current);
403
- }
404
- case 3:
405
- {
406
- return _iceD_ice_ping(in, current);
407
- }
408
- case 4:
409
- {
410
- return _iceD_setAdapterDirectProxy(in, current);
411
- }
412
- case 5:
413
- {
414
- return _iceD_setReplicatedAdapterDirectProxy(in, current);
415
- }
416
- case 6:
417
- {
418
- return _iceD_setServerProcessProxy(in, current);
419
- }
420
- default:
421
- {
422
- assert(false);
423
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
424
- }
425
- }
426
- }
427
- /// \endcond
428
-
429
- bool
430
- Ice::LocatorFinder::ice_isA(::std::string s, const Current&) const
431
- {
432
- return ::std::binary_search(iceC_Ice_LocatorFinder_ids, iceC_Ice_LocatorFinder_ids + 2, s);
433
- }
434
-
435
- ::std::vector<::std::string>
436
- Ice::LocatorFinder::ice_ids(const Current&) const
437
- {
438
- return ::std::vector<::std::string>(&iceC_Ice_LocatorFinder_ids[0], &iceC_Ice_LocatorFinder_ids[2]);
44
+ const IceInternal::ExceptionInit<::Ice::AdapterNotFoundException> iceC_Ice_AdapterNotFoundException_init;
45
+ const IceInternal::ExceptionInit<::Ice::ObjectNotFoundException> iceC_Ice_ObjectNotFoundException_init;
439
46
  }
440
47
 
441
- ::std::string
442
- Ice::LocatorFinder::ice_id(const Current&) const
443
- {
444
- return ice_staticId();
445
- }
48
+ Ice::LocatorPrx::~LocatorPrx() = default;
446
49
 
447
- const ::std::string&
448
- Ice::LocatorFinder::ice_staticId()
50
+ std::optional<Ice::ObjectPrx>
51
+ Ice::LocatorPrx::findObjectById(const Identity& iceP_id, const Ice::Context& context) const
449
52
  {
450
- static const ::std::string typeId = "::Ice::LocatorFinder";
451
- return typeId;
53
+ return IceInternal::makePromiseOutgoing<std::optional<Ice::ObjectPrx>>(true, this, &LocatorPrx::_iceI_findObjectById, iceP_id, context).get();
452
54
  }
453
55
 
454
- /// \cond INTERNAL
455
- bool
456
- Ice::LocatorFinder::_iceD_getLocator(::IceInternal::Incoming& inS, const Current& current)
56
+ std::future<std::optional<Ice::ObjectPrx>>
57
+ Ice::LocatorPrx::findObjectByIdAsync(const Identity& iceP_id, const Ice::Context& context) const
457
58
  {
458
- _iceCheckMode(::Ice::OperationMode::Normal, current.mode);
459
- inS.readEmptyParams();
460
- ::std::shared_ptr<LocatorPrx> ret = this->getLocator(current);
461
- auto ostr = inS.startWriteParams();
462
- ostr->writeAll(ret);
463
- inS.endWriteParams();
464
- return true;
59
+ return IceInternal::makePromiseOutgoing<std::optional<Ice::ObjectPrx>>(false, this, &LocatorPrx::_iceI_findObjectById, iceP_id, context);
465
60
  }
466
- /// \endcond
467
61
 
468
- /// \cond INTERNAL
469
- bool
470
- Ice::LocatorFinder::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
62
+ std::function<void()>
63
+ Ice::LocatorPrx::findObjectByIdAsync(const Identity& iceP_id, std::function<void(std::optional<Ice::ObjectPrx>)> response, std::function<void(std::exception_ptr)> exception, std::function<void(bool)> sent, const Ice::Context& context) const
471
64
  {
472
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LocatorFinder_ops, iceC_Ice_LocatorFinder_ops + 5, current.operation);
473
- if(r.first == r.second)
474
- {
475
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
476
- }
477
-
478
- switch(r.first - iceC_Ice_LocatorFinder_ops)
479
- {
480
- case 0:
481
- {
482
- return _iceD_getLocator(in, current);
483
- }
484
- case 1:
485
- {
486
- return _iceD_ice_id(in, current);
487
- }
488
- case 2:
489
- {
490
- return _iceD_ice_ids(in, current);
491
- }
492
- case 3:
493
- {
494
- return _iceD_ice_isA(in, current);
495
- }
496
- case 4:
497
- {
498
- return _iceD_ice_ping(in, current);
499
- }
500
- default:
501
- {
502
- assert(false);
503
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
504
- }
505
- }
65
+ return IceInternal::makeLambdaOutgoing<std::optional<Ice::ObjectPrx>>(std::move(response), std::move(exception), std::move(sent), this, &Ice::LocatorPrx::_iceI_findObjectById, iceP_id, context);
506
66
  }
507
- /// \endcond
508
67
 
509
- /// \cond INTERNAL
510
68
  void
511
- Ice::LocatorPrx::_iceI_findObjectById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>& outAsync, const Identity& iceP_id, const Context& context)
69
+ Ice::LocatorPrx::_iceI_findObjectById(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<Ice::ObjectPrx>>>& outAsync, const Identity& iceP_id, const Ice::Context& context) const
512
70
  {
513
- _checkTwowayOnly(iceC_Ice_Locator_findObjectById_name);
514
- outAsync->invoke(iceC_Ice_Locator_findObjectById_name, ::Ice::OperationMode::Nonmutating, ::Ice::FormatType::DefaultFormat, context,
515
- [&](OutputStream* ostr)
516
- {
517
- ostr->writeAll(iceP_id);
518
- },
519
- [](const UserException& ex)
520
- {
521
- try
522
- {
523
- ex.ice_throw();
524
- }
525
- catch(const ObjectNotFoundException&)
526
- {
527
- throw;
528
- }
529
- catch(const UserException&)
530
- {
531
- }
532
- });
533
- }
534
- /// \endcond
71
+ static constexpr std::string_view operationName = "findObjectById";
535
72
 
536
- /// \cond INTERNAL
537
- void
538
- Ice::LocatorPrx::_iceI_findAdapterById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>& outAsync, const ::std::string& iceP_id, const Context& context)
539
- {
540
- _checkTwowayOnly(iceC_Ice_Locator_findAdapterById_name);
541
- outAsync->invoke(iceC_Ice_Locator_findAdapterById_name, ::Ice::OperationMode::Nonmutating, ::Ice::FormatType::DefaultFormat, context,
542
- [&](OutputStream* ostr)
73
+ _checkTwowayOnly(operationName);
74
+ outAsync->invoke(
75
+ operationName,
76
+ Ice::OperationMode::Idempotent,
77
+ std::nullopt,
78
+ context,
79
+ [&](Ice::OutputStream* ostr)
543
80
  {
544
81
  ostr->writeAll(iceP_id);
545
82
  },
546
- [](const UserException& ex)
547
- {
548
- try
549
- {
550
- ex.ice_throw();
551
- }
552
- catch(const AdapterNotFoundException&)
553
- {
554
- throw;
555
- }
556
- catch(const UserException&)
557
- {
558
- }
559
- });
560
- }
561
- /// \endcond
562
-
563
- /// \cond INTERNAL
564
- void
565
- Ice::LocatorPrx::_iceI_getRegistry(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::LocatorRegistryPrx>>>& outAsync, const Context& context)
566
- {
567
- _checkTwowayOnly(iceC_Ice_Locator_getRegistry_name);
568
- outAsync->invoke(iceC_Ice_Locator_getRegistry_name, ::Ice::OperationMode::Nonmutating, ::Ice::FormatType::DefaultFormat, context,
569
- nullptr,
570
- nullptr);
571
- }
572
- /// \endcond
573
-
574
- /// \cond INTERNAL
575
- ::std::shared_ptr<::Ice::ObjectPrx>
576
- Ice::LocatorPrx::_newInstance() const
577
- {
578
- return ::IceInternal::createProxy<LocatorPrx>();
579
- }
580
- /// \endcond
581
-
582
- const ::std::string&
583
- Ice::LocatorPrx::ice_staticId()
584
- {
585
- return Locator::ice_staticId();
586
- }
587
-
588
- /// \cond INTERNAL
589
- void
590
- Ice::LocatorRegistryPrx::_iceI_setAdapterDirectProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::std::string& iceP_id, const ::std::shared_ptr<ObjectPrx>& iceP_proxy, const Context& context)
591
- {
592
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name);
593
- outAsync->invoke(iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
594
- [&](OutputStream* ostr)
595
- {
596
- ostr->writeAll(iceP_id, iceP_proxy);
597
- },
598
- [](const UserException& ex)
83
+ [](const Ice::UserException& ex)
599
84
  {
600
85
  try
601
86
  {
602
87
  ex.ice_throw();
603
88
  }
604
- catch(const AdapterAlreadyActiveException&)
605
- {
606
- throw;
607
- }
608
- catch(const AdapterNotFoundException&)
89
+ catch (const ObjectNotFoundException&)
609
90
  {
610
91
  throw;
611
92
  }
612
- catch(const UserException&)
93
+ catch (const Ice::UserException&)
613
94
  {
614
95
  }
615
96
  });
616
97
  }
617
- /// \endcond
618
-
619
- /// \cond INTERNAL
620
- void
621
- Ice::LocatorRegistryPrx::_iceI_setReplicatedAdapterDirectProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::std::string& iceP_adapterId, const ::std::string& iceP_replicaGroupId, const ::std::shared_ptr<ObjectPrx>& iceP_p, const Context& context)
622
- {
623
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name);
624
- outAsync->invoke(iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
625
- [&](OutputStream* ostr)
626
- {
627
- ostr->writeAll(iceP_adapterId, iceP_replicaGroupId, iceP_p);
628
- },
629
- [](const UserException& ex)
630
- {
631
- try
632
- {
633
- ex.ice_throw();
634
- }
635
- catch(const AdapterAlreadyActiveException&)
636
- {
637
- throw;
638
- }
639
- catch(const AdapterNotFoundException&)
640
- {
641
- throw;
642
- }
643
- catch(const InvalidReplicaGroupIdException&)
644
- {
645
- throw;
646
- }
647
- catch(const UserException&)
648
- {
649
- }
650
- });
651
- }
652
- /// \endcond
653
-
654
- /// \cond INTERNAL
655
- void
656
- Ice::LocatorRegistryPrx::_iceI_setServerProcessProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>& outAsync, const ::std::string& iceP_id, const ::std::shared_ptr<ProcessPrx>& iceP_proxy, const Context& context)
657
- {
658
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setServerProcessProxy_name);
659
- outAsync->invoke(iceC_Ice_LocatorRegistry_setServerProcessProxy_name, ::Ice::OperationMode::Idempotent, ::Ice::FormatType::DefaultFormat, context,
660
- [&](OutputStream* ostr)
661
- {
662
- ostr->writeAll(iceP_id, iceP_proxy);
663
- },
664
- [](const UserException& ex)
665
- {
666
- try
667
- {
668
- ex.ice_throw();
669
- }
670
- catch(const ServerNotFoundException&)
671
- {
672
- throw;
673
- }
674
- catch(const UserException&)
675
- {
676
- }
677
- });
678
- }
679
- /// \endcond
680
-
681
- /// \cond INTERNAL
682
- ::std::shared_ptr<::Ice::ObjectPrx>
683
- Ice::LocatorRegistryPrx::_newInstance() const
684
- {
685
- return ::IceInternal::createProxy<LocatorRegistryPrx>();
686
- }
687
- /// \endcond
688
-
689
- const ::std::string&
690
- Ice::LocatorRegistryPrx::ice_staticId()
691
- {
692
- return LocatorRegistry::ice_staticId();
693
- }
694
-
695
- /// \cond INTERNAL
696
- void
697
- Ice::LocatorFinderPrx::_iceI_getLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::LocatorPrx>>>& outAsync, const Context& context)
698
- {
699
- _checkTwowayOnly(iceC_Ice_LocatorFinder_getLocator_name);
700
- outAsync->invoke(iceC_Ice_LocatorFinder_getLocator_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
701
- nullptr,
702
- nullptr);
703
- }
704
- /// \endcond
705
-
706
- /// \cond INTERNAL
707
- ::std::shared_ptr<::Ice::ObjectPrx>
708
- Ice::LocatorFinderPrx::_newInstance() const
709
- {
710
- return ::IceInternal::createProxy<LocatorFinderPrx>();
711
- }
712
- /// \endcond
713
-
714
- const ::std::string&
715
- Ice::LocatorFinderPrx::ice_staticId()
716
- {
717
- return LocatorFinder::ice_staticId();
718
- }
719
-
720
- #else // C++98 mapping
721
-
722
- namespace
723
- {
724
-
725
- const ::std::string iceC_Ice_Locator_findObjectById_name = "findObjectById";
726
-
727
- const ::std::string iceC_Ice_Locator_findAdapterById_name = "findAdapterById";
728
-
729
- const ::std::string iceC_Ice_Locator_getRegistry_name = "getRegistry";
730
-
731
- const ::std::string iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name = "setAdapterDirectProxy";
732
-
733
- const ::std::string iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name = "setReplicatedAdapterDirectProxy";
734
-
735
- const ::std::string iceC_Ice_LocatorRegistry_setServerProcessProxy_name = "setServerProcessProxy";
736
-
737
- const ::std::string iceC_Ice_LocatorFinder_getLocator_name = "getLocator";
738
-
739
- }
740
-
741
- namespace
742
- {
743
-
744
- const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::AdapterNotFoundException> iceC_Ice_AdapterNotFoundException_init("::Ice::AdapterNotFoundException");
745
-
746
- }
747
-
748
- #ifdef ICE_CPP11_COMPILER
749
- Ice::AdapterNotFoundException::~AdapterNotFoundException()
750
- {
751
- }
752
- #else
753
- Ice::AdapterNotFoundException::~AdapterNotFoundException() throw()
754
- {
755
- }
756
- #endif
757
-
758
- ::std::string
759
- Ice::AdapterNotFoundException::ice_id() const
760
- {
761
- return "::Ice::AdapterNotFoundException";
762
- }
763
-
764
- Ice::AdapterNotFoundException*
765
- Ice::AdapterNotFoundException::ice_clone() const
766
- {
767
- return new AdapterNotFoundException(*this);
768
- }
769
-
770
- void
771
- Ice::AdapterNotFoundException::ice_throw() const
772
- {
773
- throw *this;
774
- }
775
-
776
- /// \cond STREAM
777
- void
778
- Ice::AdapterNotFoundException::_writeImpl(OutputStream* ostr) const
779
- {
780
- ostr->startSlice("::Ice::AdapterNotFoundException", -1, true);
781
- StreamWriter< AdapterNotFoundException, OutputStream>::write(ostr, *this);
782
- ostr->endSlice();
783
- }
784
-
785
- void
786
- Ice::AdapterNotFoundException::_readImpl(InputStream* istr)
787
- {
788
- istr->startSlice();
789
- StreamReader< AdapterNotFoundException, InputStream>::read(istr, *this);
790
- istr->endSlice();
791
- }
792
- /// \endcond
793
-
794
- namespace
795
- {
796
-
797
- const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::InvalidReplicaGroupIdException> iceC_Ice_InvalidReplicaGroupIdException_init("::Ice::InvalidReplicaGroupIdException");
798
-
799
- }
800
-
801
- #ifdef ICE_CPP11_COMPILER
802
- Ice::InvalidReplicaGroupIdException::~InvalidReplicaGroupIdException()
803
- {
804
- }
805
- #else
806
- Ice::InvalidReplicaGroupIdException::~InvalidReplicaGroupIdException() throw()
807
- {
808
- }
809
- #endif
810
-
811
- ::std::string
812
- Ice::InvalidReplicaGroupIdException::ice_id() const
813
- {
814
- return "::Ice::InvalidReplicaGroupIdException";
815
- }
816
-
817
- Ice::InvalidReplicaGroupIdException*
818
- Ice::InvalidReplicaGroupIdException::ice_clone() const
819
- {
820
- return new InvalidReplicaGroupIdException(*this);
821
- }
822
-
823
- void
824
- Ice::InvalidReplicaGroupIdException::ice_throw() const
825
- {
826
- throw *this;
827
- }
828
-
829
- /// \cond STREAM
830
- void
831
- Ice::InvalidReplicaGroupIdException::_writeImpl(OutputStream* ostr) const
832
- {
833
- ostr->startSlice("::Ice::InvalidReplicaGroupIdException", -1, true);
834
- StreamWriter< InvalidReplicaGroupIdException, OutputStream>::write(ostr, *this);
835
- ostr->endSlice();
836
- }
837
-
838
- void
839
- Ice::InvalidReplicaGroupIdException::_readImpl(InputStream* istr)
840
- {
841
- istr->startSlice();
842
- StreamReader< InvalidReplicaGroupIdException, InputStream>::read(istr, *this);
843
- istr->endSlice();
844
- }
845
- /// \endcond
846
-
847
- namespace
848
- {
849
-
850
- const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::AdapterAlreadyActiveException> iceC_Ice_AdapterAlreadyActiveException_init("::Ice::AdapterAlreadyActiveException");
851
-
852
- }
853
-
854
- #ifdef ICE_CPP11_COMPILER
855
- Ice::AdapterAlreadyActiveException::~AdapterAlreadyActiveException()
856
- {
857
- }
858
- #else
859
- Ice::AdapterAlreadyActiveException::~AdapterAlreadyActiveException() throw()
860
- {
861
- }
862
- #endif
863
-
864
- ::std::string
865
- Ice::AdapterAlreadyActiveException::ice_id() const
866
- {
867
- return "::Ice::AdapterAlreadyActiveException";
868
- }
869
-
870
- Ice::AdapterAlreadyActiveException*
871
- Ice::AdapterAlreadyActiveException::ice_clone() const
872
- {
873
- return new AdapterAlreadyActiveException(*this);
874
- }
875
-
876
- void
877
- Ice::AdapterAlreadyActiveException::ice_throw() const
878
- {
879
- throw *this;
880
- }
881
-
882
- /// \cond STREAM
883
- void
884
- Ice::AdapterAlreadyActiveException::_writeImpl(OutputStream* ostr) const
885
- {
886
- ostr->startSlice("::Ice::AdapterAlreadyActiveException", -1, true);
887
- StreamWriter< AdapterAlreadyActiveException, OutputStream>::write(ostr, *this);
888
- ostr->endSlice();
889
- }
890
-
891
- void
892
- Ice::AdapterAlreadyActiveException::_readImpl(InputStream* istr)
893
- {
894
- istr->startSlice();
895
- StreamReader< AdapterAlreadyActiveException, InputStream>::read(istr, *this);
896
- istr->endSlice();
897
- }
898
- /// \endcond
899
-
900
- namespace
901
- {
902
-
903
- const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::ObjectNotFoundException> iceC_Ice_ObjectNotFoundException_init("::Ice::ObjectNotFoundException");
904
-
905
- }
906
-
907
- #ifdef ICE_CPP11_COMPILER
908
- Ice::ObjectNotFoundException::~ObjectNotFoundException()
909
- {
910
- }
911
- #else
912
- Ice::ObjectNotFoundException::~ObjectNotFoundException() throw()
913
- {
914
- }
915
- #endif
916
-
917
- ::std::string
918
- Ice::ObjectNotFoundException::ice_id() const
919
- {
920
- return "::Ice::ObjectNotFoundException";
921
- }
922
-
923
- Ice::ObjectNotFoundException*
924
- Ice::ObjectNotFoundException::ice_clone() const
925
- {
926
- return new ObjectNotFoundException(*this);
927
- }
928
-
929
- void
930
- Ice::ObjectNotFoundException::ice_throw() const
931
- {
932
- throw *this;
933
- }
934
-
935
- /// \cond STREAM
936
- void
937
- Ice::ObjectNotFoundException::_writeImpl(OutputStream* ostr) const
938
- {
939
- ostr->startSlice("::Ice::ObjectNotFoundException", -1, true);
940
- StreamWriter< ObjectNotFoundException, OutputStream>::write(ostr, *this);
941
- ostr->endSlice();
942
- }
943
-
944
- void
945
- Ice::ObjectNotFoundException::_readImpl(InputStream* istr)
946
- {
947
- istr->startSlice();
948
- StreamReader< ObjectNotFoundException, InputStream>::read(istr, *this);
949
- istr->endSlice();
950
- }
951
- /// \endcond
952
-
953
- namespace
954
- {
955
-
956
- const ::IceInternal::DefaultUserExceptionFactoryInit< ::Ice::ServerNotFoundException> iceC_Ice_ServerNotFoundException_init("::Ice::ServerNotFoundException");
957
-
958
- }
959
-
960
- #ifdef ICE_CPP11_COMPILER
961
- Ice::ServerNotFoundException::~ServerNotFoundException()
962
- {
963
- }
964
- #else
965
- Ice::ServerNotFoundException::~ServerNotFoundException() throw()
966
- {
967
- }
968
- #endif
969
-
970
- ::std::string
971
- Ice::ServerNotFoundException::ice_id() const
972
- {
973
- return "::Ice::ServerNotFoundException";
974
- }
975
-
976
- Ice::ServerNotFoundException*
977
- Ice::ServerNotFoundException::ice_clone() const
978
- {
979
- return new ServerNotFoundException(*this);
980
- }
981
-
982
- void
983
- Ice::ServerNotFoundException::ice_throw() const
984
- {
985
- throw *this;
986
- }
987
-
988
- /// \cond STREAM
989
- void
990
- Ice::ServerNotFoundException::_writeImpl(OutputStream* ostr) const
991
- {
992
- ostr->startSlice("::Ice::ServerNotFoundException", -1, true);
993
- StreamWriter< ServerNotFoundException, OutputStream>::write(ostr, *this);
994
- ostr->endSlice();
995
- }
996
-
997
- void
998
- Ice::ServerNotFoundException::_readImpl(InputStream* istr)
999
- {
1000
- istr->startSlice();
1001
- StreamReader< ServerNotFoundException, InputStream>::read(istr, *this);
1002
- istr->endSlice();
1003
- }
1004
- /// \endcond
1005
-
1006
- Ice::AMD_Locator_findObjectById::~AMD_Locator_findObjectById()
1007
- {
1008
- }
1009
-
1010
- Ice::AMD_Locator_findAdapterById::~AMD_Locator_findAdapterById()
1011
- {
1012
- }
1013
-
1014
- Ice::AMD_LocatorRegistry_setAdapterDirectProxy::~AMD_LocatorRegistry_setAdapterDirectProxy()
1015
- {
1016
- }
1017
-
1018
- Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy::~AMD_LocatorRegistry_setReplicatedAdapterDirectProxy()
1019
- {
1020
- }
1021
-
1022
- Ice::AMD_LocatorRegistry_setServerProcessProxy::~AMD_LocatorRegistry_setServerProcessProxy()
1023
- {
1024
- }
1025
-
1026
- /// \cond INTERNAL
1027
- IceAsync::Ice::AMD_Locator_findObjectById::AMD_Locator_findObjectById(::IceInternal::Incoming& in) :
1028
- ::IceInternal::IncomingAsync(in)
1029
- {
1030
- }
1031
-
1032
- void
1033
- IceAsync::Ice::AMD_Locator_findObjectById::ice_response(const ::Ice::ObjectPrx& ret)
1034
- {
1035
- ::Ice::OutputStream* ostr = startWriteParams();
1036
- ostr->write(ret);
1037
- endWriteParams();
1038
- completed();
1039
- }
1040
- /// \endcond
1041
-
1042
- /// \cond INTERNAL
1043
- IceAsync::Ice::AMD_Locator_findAdapterById::AMD_Locator_findAdapterById(::IceInternal::Incoming& in) :
1044
- ::IceInternal::IncomingAsync(in)
1045
- {
1046
- }
1047
-
1048
- void
1049
- IceAsync::Ice::AMD_Locator_findAdapterById::ice_response(const ::Ice::ObjectPrx& ret)
1050
- {
1051
- ::Ice::OutputStream* ostr = startWriteParams();
1052
- ostr->write(ret);
1053
- endWriteParams();
1054
- completed();
1055
- }
1056
- /// \endcond
1057
-
1058
- /// \cond INTERNAL
1059
- IceAsync::Ice::AMD_LocatorRegistry_setAdapterDirectProxy::AMD_LocatorRegistry_setAdapterDirectProxy(::IceInternal::Incoming& in) :
1060
- ::IceInternal::IncomingAsync(in)
1061
- {
1062
- }
1063
-
1064
- void
1065
- IceAsync::Ice::AMD_LocatorRegistry_setAdapterDirectProxy::ice_response()
1066
- {
1067
- writeEmptyParams();
1068
- completed();
1069
- }
1070
- /// \endcond
1071
-
1072
- /// \cond INTERNAL
1073
- IceAsync::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy(::IceInternal::Incoming& in) :
1074
- ::IceInternal::IncomingAsync(in)
1075
- {
1076
- }
1077
-
1078
- void
1079
- IceAsync::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy::ice_response()
1080
- {
1081
- writeEmptyParams();
1082
- completed();
1083
- }
1084
- /// \endcond
1085
-
1086
- /// \cond INTERNAL
1087
- IceAsync::Ice::AMD_LocatorRegistry_setServerProcessProxy::AMD_LocatorRegistry_setServerProcessProxy(::IceInternal::Incoming& in) :
1088
- ::IceInternal::IncomingAsync(in)
1089
- {
1090
- }
1091
-
1092
- void
1093
- IceAsync::Ice::AMD_LocatorRegistry_setServerProcessProxy::ice_response()
1094
- {
1095
- writeEmptyParams();
1096
- completed();
1097
- }
1098
- /// \endcond
1099
-
1100
- /// \cond INTERNAL
1101
- ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(Locator* p) { return p; }
1102
-
1103
- void
1104
- ::IceProxy::Ice::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< Locator>& v)
1105
- {
1106
- ::Ice::ObjectPrx proxy;
1107
- istr->read(proxy);
1108
- if(!proxy)
1109
- {
1110
- v = 0;
1111
- }
1112
- else
1113
- {
1114
- v = new Locator;
1115
- v->_copyFrom(proxy);
1116
- }
1117
- }
1118
- /// \endcond
1119
-
1120
- ::Ice::AsyncResultPtr
1121
- IceProxy::Ice::Locator::_iceI_begin_findObjectById(const ::Ice::Identity& iceP_id, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
1122
- {
1123
- _checkTwowayOnly(iceC_Ice_Locator_findObjectById_name, sync);
1124
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_Locator_findObjectById_name, del, cookie, sync);
1125
- try
1126
- {
1127
- result->prepare(iceC_Ice_Locator_findObjectById_name, ::Ice::Nonmutating, context);
1128
- ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1129
- ostr->write(iceP_id);
1130
- result->endWriteParams();
1131
- result->invoke(iceC_Ice_Locator_findObjectById_name);
1132
- }
1133
- catch(const ::Ice::Exception& ex)
1134
- {
1135
- result->abort(ex);
1136
- }
1137
- return result;
1138
- }
1139
-
1140
- ::Ice::ObjectPrx
1141
- IceProxy::Ice::Locator::end_findObjectById(const ::Ice::AsyncResultPtr& result)
1142
- {
1143
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_Locator_findObjectById_name);
1144
- ::Ice::ObjectPrx ret;
1145
- if(!result->_waitForResponse())
1146
- {
1147
- try
1148
- {
1149
- result->_throwUserException();
1150
- }
1151
- catch(const ::Ice::ObjectNotFoundException&)
1152
- {
1153
- throw;
1154
- }
1155
- catch(const ::Ice::UserException& ex)
1156
- {
1157
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1158
- }
1159
- }
1160
- ::Ice::InputStream* istr = result->_startReadParams();
1161
- istr->read(ret);
1162
- result->_endReadParams();
1163
- return ret;
1164
- }
1165
-
1166
- ::Ice::AsyncResultPtr
1167
- IceProxy::Ice::Locator::_iceI_begin_findAdapterById(const ::std::string& iceP_id, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
1168
- {
1169
- _checkTwowayOnly(iceC_Ice_Locator_findAdapterById_name, sync);
1170
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_Locator_findAdapterById_name, del, cookie, sync);
1171
- try
1172
- {
1173
- result->prepare(iceC_Ice_Locator_findAdapterById_name, ::Ice::Nonmutating, context);
1174
- ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1175
- ostr->write(iceP_id);
1176
- result->endWriteParams();
1177
- result->invoke(iceC_Ice_Locator_findAdapterById_name);
1178
- }
1179
- catch(const ::Ice::Exception& ex)
1180
- {
1181
- result->abort(ex);
1182
- }
1183
- return result;
1184
- }
1185
-
1186
- ::Ice::ObjectPrx
1187
- IceProxy::Ice::Locator::end_findAdapterById(const ::Ice::AsyncResultPtr& result)
1188
- {
1189
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_Locator_findAdapterById_name);
1190
- ::Ice::ObjectPrx ret;
1191
- if(!result->_waitForResponse())
1192
- {
1193
- try
1194
- {
1195
- result->_throwUserException();
1196
- }
1197
- catch(const ::Ice::AdapterNotFoundException&)
1198
- {
1199
- throw;
1200
- }
1201
- catch(const ::Ice::UserException& ex)
1202
- {
1203
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1204
- }
1205
- }
1206
- ::Ice::InputStream* istr = result->_startReadParams();
1207
- istr->read(ret);
1208
- result->_endReadParams();
1209
- return ret;
1210
- }
1211
-
1212
- ::Ice::AsyncResultPtr
1213
- IceProxy::Ice::Locator::_iceI_begin_getRegistry(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
1214
- {
1215
- _checkTwowayOnly(iceC_Ice_Locator_getRegistry_name, sync);
1216
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_Locator_getRegistry_name, del, cookie, sync);
1217
- try
1218
- {
1219
- result->prepare(iceC_Ice_Locator_getRegistry_name, ::Ice::Nonmutating, context);
1220
- result->writeEmptyParams();
1221
- result->invoke(iceC_Ice_Locator_getRegistry_name);
1222
- }
1223
- catch(const ::Ice::Exception& ex)
1224
- {
1225
- result->abort(ex);
1226
- }
1227
- return result;
1228
- }
1229
-
1230
- ::Ice::LocatorRegistryPrx
1231
- IceProxy::Ice::Locator::end_getRegistry(const ::Ice::AsyncResultPtr& result)
1232
- {
1233
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_Locator_getRegistry_name);
1234
- ::Ice::LocatorRegistryPrx ret;
1235
- if(!result->_waitForResponse())
1236
- {
1237
- try
1238
- {
1239
- result->_throwUserException();
1240
- }
1241
- catch(const ::Ice::UserException& ex)
1242
- {
1243
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1244
- }
1245
- }
1246
- ::Ice::InputStream* istr = result->_startReadParams();
1247
- istr->read(ret);
1248
- result->_endReadParams();
1249
- return ret;
1250
- }
1251
-
1252
- /// \cond INTERNAL
1253
- ::IceProxy::Ice::Object*
1254
- IceProxy::Ice::Locator::_newInstance() const
1255
- {
1256
- return new Locator;
1257
- }
1258
- /// \endcond
1259
98
 
1260
- const ::std::string&
1261
- IceProxy::Ice::Locator::ice_staticId()
99
+ std::optional<Ice::ObjectPrx>
100
+ Ice::LocatorPrx::findAdapterById(std::string_view iceP_id, const Ice::Context& context) const
1262
101
  {
1263
- return ::Ice::Locator::ice_staticId();
102
+ return IceInternal::makePromiseOutgoing<std::optional<Ice::ObjectPrx>>(true, this, &LocatorPrx::_iceI_findAdapterById, iceP_id, context).get();
1264
103
  }
1265
104
 
1266
- /// \cond INTERNAL
1267
- ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(LocatorRegistry* p) { return p; }
1268
-
1269
- void
1270
- ::IceProxy::Ice::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< LocatorRegistry>& v)
105
+ std::future<std::optional<Ice::ObjectPrx>>
106
+ Ice::LocatorPrx::findAdapterByIdAsync(std::string_view iceP_id, const Ice::Context& context) const
1271
107
  {
1272
- ::Ice::ObjectPrx proxy;
1273
- istr->read(proxy);
1274
- if(!proxy)
1275
- {
1276
- v = 0;
1277
- }
1278
- else
1279
- {
1280
- v = new LocatorRegistry;
1281
- v->_copyFrom(proxy);
1282
- }
108
+ return IceInternal::makePromiseOutgoing<std::optional<Ice::ObjectPrx>>(false, this, &LocatorPrx::_iceI_findAdapterById, iceP_id, context);
1283
109
  }
1284
- /// \endcond
1285
110
 
1286
- ::Ice::AsyncResultPtr
1287
- IceProxy::Ice::LocatorRegistry::_iceI_begin_setAdapterDirectProxy(const ::std::string& iceP_id, const ::Ice::ObjectPrx& iceP_proxy, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
111
+ std::function<void()>
112
+ Ice::LocatorPrx::findAdapterByIdAsync(std::string_view iceP_id, std::function<void(std::optional<Ice::ObjectPrx>)> response, std::function<void(std::exception_ptr)> exception, std::function<void(bool)> sent, const Ice::Context& context) const
1288
113
  {
1289
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name, sync);
1290
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name, del, cookie, sync);
1291
- try
1292
- {
1293
- result->prepare(iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name, ::Ice::Idempotent, context);
1294
- ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1295
- ostr->write(iceP_id);
1296
- ostr->write(iceP_proxy);
1297
- result->endWriteParams();
1298
- result->invoke(iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name);
1299
- }
1300
- catch(const ::Ice::Exception& ex)
1301
- {
1302
- result->abort(ex);
1303
- }
1304
- return result;
114
+ return IceInternal::makeLambdaOutgoing<std::optional<Ice::ObjectPrx>>(std::move(response), std::move(exception), std::move(sent), this, &Ice::LocatorPrx::_iceI_findAdapterById, iceP_id, context);
1305
115
  }
1306
116
 
1307
117
  void
1308
- IceProxy::Ice::LocatorRegistry::end_setAdapterDirectProxy(const ::Ice::AsyncResultPtr& result)
118
+ Ice::LocatorPrx::_iceI_findAdapterById(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<Ice::ObjectPrx>>>& outAsync, std::string_view iceP_id, const Ice::Context& context) const
1309
119
  {
1310
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_LocatorRegistry_setAdapterDirectProxy_name);
1311
- if(!result->_waitForResponse())
1312
- {
1313
- try
1314
- {
1315
- result->_throwUserException();
1316
- }
1317
- catch(const ::Ice::AdapterAlreadyActiveException&)
1318
- {
1319
- throw;
1320
- }
1321
- catch(const ::Ice::AdapterNotFoundException&)
120
+ static constexpr std::string_view operationName = "findAdapterById";
121
+
122
+ _checkTwowayOnly(operationName);
123
+ outAsync->invoke(
124
+ operationName,
125
+ Ice::OperationMode::Idempotent,
126
+ std::nullopt,
127
+ context,
128
+ [&](Ice::OutputStream* ostr)
1322
129
  {
1323
- throw;
1324
- }
1325
- catch(const ::Ice::UserException& ex)
130
+ ostr->writeAll(iceP_id);
131
+ },
132
+ [](const Ice::UserException& ex)
1326
133
  {
1327
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1328
- }
1329
- }
1330
- result->_readEmptyParams();
134
+ try
135
+ {
136
+ ex.ice_throw();
137
+ }
138
+ catch (const AdapterNotFoundException&)
139
+ {
140
+ throw;
141
+ }
142
+ catch (const Ice::UserException&)
143
+ {
144
+ }
145
+ });
1331
146
  }
1332
147
 
1333
- ::Ice::AsyncResultPtr
1334
- IceProxy::Ice::LocatorRegistry::_iceI_begin_setReplicatedAdapterDirectProxy(const ::std::string& iceP_adapterId, const ::std::string& iceP_replicaGroupId, const ::Ice::ObjectPrx& iceP_p, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
148
+ std::optional<::Ice::LocatorRegistryPrx>
149
+ Ice::LocatorPrx::getRegistry(const Ice::Context& context) const
1335
150
  {
1336
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name, sync);
1337
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name, del, cookie, sync);
1338
- try
1339
- {
1340
- result->prepare(iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name, ::Ice::Idempotent, context);
1341
- ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1342
- ostr->write(iceP_adapterId);
1343
- ostr->write(iceP_replicaGroupId);
1344
- ostr->write(iceP_p);
1345
- result->endWriteParams();
1346
- result->invoke(iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name);
1347
- }
1348
- catch(const ::Ice::Exception& ex)
1349
- {
1350
- result->abort(ex);
1351
- }
1352
- return result;
151
+ return IceInternal::makePromiseOutgoing<std::optional<LocatorRegistryPrx>>(true, this, &LocatorPrx::_iceI_getRegistry, context).get();
1353
152
  }
1354
153
 
1355
- void
1356
- IceProxy::Ice::LocatorRegistry::end_setReplicatedAdapterDirectProxy(const ::Ice::AsyncResultPtr& result)
154
+ std::future<std::optional<::Ice::LocatorRegistryPrx>>
155
+ Ice::LocatorPrx::getRegistryAsync(const Ice::Context& context) const
1357
156
  {
1358
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_LocatorRegistry_setReplicatedAdapterDirectProxy_name);
1359
- if(!result->_waitForResponse())
1360
- {
1361
- try
1362
- {
1363
- result->_throwUserException();
1364
- }
1365
- catch(const ::Ice::AdapterAlreadyActiveException&)
1366
- {
1367
- throw;
1368
- }
1369
- catch(const ::Ice::AdapterNotFoundException&)
1370
- {
1371
- throw;
1372
- }
1373
- catch(const ::Ice::InvalidReplicaGroupIdException&)
1374
- {
1375
- throw;
1376
- }
1377
- catch(const ::Ice::UserException& ex)
1378
- {
1379
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1380
- }
1381
- }
1382
- result->_readEmptyParams();
157
+ return IceInternal::makePromiseOutgoing<std::optional<LocatorRegistryPrx>>(false, this, &LocatorPrx::_iceI_getRegistry, context);
1383
158
  }
1384
159
 
1385
- ::Ice::AsyncResultPtr
1386
- IceProxy::Ice::LocatorRegistry::_iceI_begin_setServerProcessProxy(const ::std::string& iceP_id, const ::Ice::ProcessPrx& iceP_proxy, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
160
+ std::function<void()>
161
+ Ice::LocatorPrx::getRegistryAsync(std::function<void(std::optional<::Ice::LocatorRegistryPrx>)> response, std::function<void(std::exception_ptr)> exception, std::function<void(bool)> sent, const Ice::Context& context) const
1387
162
  {
1388
- _checkTwowayOnly(iceC_Ice_LocatorRegistry_setServerProcessProxy_name, sync);
1389
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LocatorRegistry_setServerProcessProxy_name, del, cookie, sync);
1390
- try
1391
- {
1392
- result->prepare(iceC_Ice_LocatorRegistry_setServerProcessProxy_name, ::Ice::Idempotent, context);
1393
- ::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
1394
- ostr->write(iceP_id);
1395
- ostr->write(iceP_proxy);
1396
- result->endWriteParams();
1397
- result->invoke(iceC_Ice_LocatorRegistry_setServerProcessProxy_name);
1398
- }
1399
- catch(const ::Ice::Exception& ex)
1400
- {
1401
- result->abort(ex);
1402
- }
1403
- return result;
163
+ return IceInternal::makeLambdaOutgoing<std::optional<LocatorRegistryPrx>>(std::move(response), std::move(exception), std::move(sent), this, &Ice::LocatorPrx::_iceI_getRegistry, context);
1404
164
  }
1405
165
 
1406
166
  void
1407
- IceProxy::Ice::LocatorRegistry::end_setServerProcessProxy(const ::Ice::AsyncResultPtr& result)
167
+ Ice::LocatorPrx::_iceI_getRegistry(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<LocatorRegistryPrx>>>& outAsync, const Ice::Context& context) const
1408
168
  {
1409
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_LocatorRegistry_setServerProcessProxy_name);
1410
- if(!result->_waitForResponse())
1411
- {
1412
- try
1413
- {
1414
- result->_throwUserException();
1415
- }
1416
- catch(const ::Ice::ServerNotFoundException&)
1417
- {
1418
- throw;
1419
- }
1420
- catch(const ::Ice::UserException& ex)
1421
- {
1422
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1423
- }
1424
- }
1425
- result->_readEmptyParams();
1426
- }
169
+ static constexpr std::string_view operationName = "getRegistry";
1427
170
 
1428
- /// \cond INTERNAL
1429
- ::IceProxy::Ice::Object*
1430
- IceProxy::Ice::LocatorRegistry::_newInstance() const
1431
- {
1432
- return new LocatorRegistry;
171
+ _checkTwowayOnly(operationName);
172
+ outAsync->invoke(
173
+ operationName,
174
+ Ice::OperationMode::Idempotent,
175
+ std::nullopt,
176
+ context,
177
+ nullptr,
178
+ nullptr);
1433
179
  }
1434
- /// \endcond
1435
180
 
1436
- const ::std::string&
1437
- IceProxy::Ice::LocatorRegistry::ice_staticId()
181
+ const char*
182
+ Ice::LocatorPrx::ice_staticId() noexcept
1438
183
  {
1439
- return ::Ice::LocatorRegistry::ice_staticId();
184
+ return "::Ice::Locator";
1440
185
  }
1441
186
 
1442
- /// \cond INTERNAL
1443
- ICE_API ::IceProxy::Ice::Object* ::IceProxy::Ice::upCast(LocatorFinder* p) { return p; }
187
+ Ice::LocatorFinderPrx::~LocatorFinderPrx() = default;
1444
188
 
1445
- void
1446
- ::IceProxy::Ice::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< LocatorFinder>& v)
189
+ std::optional<::Ice::LocatorPrx>
190
+ Ice::LocatorFinderPrx::getLocator(const Ice::Context& context) const
1447
191
  {
1448
- ::Ice::ObjectPrx proxy;
1449
- istr->read(proxy);
1450
- if(!proxy)
1451
- {
1452
- v = 0;
1453
- }
1454
- else
1455
- {
1456
- v = new LocatorFinder;
1457
- v->_copyFrom(proxy);
1458
- }
192
+ return IceInternal::makePromiseOutgoing<std::optional<LocatorPrx>>(true, this, &LocatorFinderPrx::_iceI_getLocator, context).get();
1459
193
  }
1460
- /// \endcond
1461
194
 
1462
- ::Ice::AsyncResultPtr
1463
- IceProxy::Ice::LocatorFinder::_iceI_begin_getLocator(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
195
+ std::future<std::optional<::Ice::LocatorPrx>>
196
+ Ice::LocatorFinderPrx::getLocatorAsync(const Ice::Context& context) const
1464
197
  {
1465
- _checkTwowayOnly(iceC_Ice_LocatorFinder_getLocator_name, sync);
1466
- ::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Ice_LocatorFinder_getLocator_name, del, cookie, sync);
1467
- try
1468
- {
1469
- result->prepare(iceC_Ice_LocatorFinder_getLocator_name, ::Ice::Normal, context);
1470
- result->writeEmptyParams();
1471
- result->invoke(iceC_Ice_LocatorFinder_getLocator_name);
1472
- }
1473
- catch(const ::Ice::Exception& ex)
1474
- {
1475
- result->abort(ex);
1476
- }
1477
- return result;
198
+ return IceInternal::makePromiseOutgoing<std::optional<LocatorPrx>>(false, this, &LocatorFinderPrx::_iceI_getLocator, context);
1478
199
  }
1479
200
 
1480
- ::Ice::LocatorPrx
1481
- IceProxy::Ice::LocatorFinder::end_getLocator(const ::Ice::AsyncResultPtr& result)
201
+ std::function<void()>
202
+ Ice::LocatorFinderPrx::getLocatorAsync(std::function<void(std::optional<::Ice::LocatorPrx>)> response, std::function<void(std::exception_ptr)> exception, std::function<void(bool)> sent, const Ice::Context& context) const
1482
203
  {
1483
- ::Ice::AsyncResult::_check(result, this, iceC_Ice_LocatorFinder_getLocator_name);
1484
- ::Ice::LocatorPrx ret;
1485
- if(!result->_waitForResponse())
1486
- {
1487
- try
1488
- {
1489
- result->_throwUserException();
1490
- }
1491
- catch(const ::Ice::UserException& ex)
1492
- {
1493
- throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
1494
- }
1495
- }
1496
- ::Ice::InputStream* istr = result->_startReadParams();
1497
- istr->read(ret);
1498
- result->_endReadParams();
1499
- return ret;
204
+ return IceInternal::makeLambdaOutgoing<std::optional<LocatorPrx>>(std::move(response), std::move(exception), std::move(sent), this, &Ice::LocatorFinderPrx::_iceI_getLocator, context);
1500
205
  }
1501
206
 
1502
- /// \cond INTERNAL
1503
- ::IceProxy::Ice::Object*
1504
- IceProxy::Ice::LocatorFinder::_newInstance() const
207
+ void
208
+ Ice::LocatorFinderPrx::_iceI_getLocator(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::optional<LocatorPrx>>>& outAsync, const Ice::Context& context) const
1505
209
  {
1506
- return new LocatorFinder;
210
+ static constexpr std::string_view operationName = "getLocator";
211
+
212
+ _checkTwowayOnly(operationName);
213
+ outAsync->invoke(
214
+ operationName,
215
+ Ice::OperationMode::Normal,
216
+ std::nullopt,
217
+ context,
218
+ nullptr,
219
+ nullptr);
1507
220
  }
1508
- /// \endcond
1509
221
 
1510
- const ::std::string&
1511
- IceProxy::Ice::LocatorFinder::ice_staticId()
222
+ const char*
223
+ Ice::LocatorFinderPrx::ice_staticId() noexcept
1512
224
  {
1513
- return ::Ice::LocatorFinder::ice_staticId();
225
+ return "::Ice::LocatorFinder";
1514
226
  }
1515
227
 
1516
- Ice::Locator::~Locator()
228
+ const char*
229
+ Ice::AdapterNotFoundException::ice_staticId() noexcept
1517
230
  {
231
+ return "::Ice::AdapterNotFoundException";
1518
232
  }
1519
233
 
1520
- /// \cond INTERNAL
1521
- ICE_API ::Ice::Object* Ice::upCast(Locator* p) { return p; }
1522
-
1523
- /// \endcond
1524
-
1525
- namespace
1526
- {
1527
- const ::std::string iceC_Ice_Locator_ids[2] =
234
+ const char*
235
+ Ice::AdapterNotFoundException::ice_id() const noexcept
1528
236
  {
1529
- "::Ice::Locator",
1530
- "::Ice::Object"
1531
- };
1532
-
237
+ return ice_staticId();
1533
238
  }
1534
239
 
1535
- bool
1536
- Ice::Locator::ice_isA(const ::std::string& s, const Current&) const
240
+ void
241
+ Ice::AdapterNotFoundException::ice_throw() const
1537
242
  {
1538
- return ::std::binary_search(iceC_Ice_Locator_ids, iceC_Ice_Locator_ids + 2, s);
243
+ throw *this;
1539
244
  }
1540
245
 
1541
- ::std::vector< ::std::string>
1542
- Ice::Locator::ice_ids(const Current&) const
246
+ void
247
+ Ice::AdapterNotFoundException::_writeImpl(Ice::OutputStream* ostr) const
1543
248
  {
1544
- return ::std::vector< ::std::string>(&iceC_Ice_Locator_ids[0], &iceC_Ice_Locator_ids[2]);
249
+ ostr->startSlice(ice_staticId(), -1, true);
250
+ ostr->endSlice();
1545
251
  }
1546
252
 
1547
- const ::std::string&
1548
- Ice::Locator::ice_id(const Current&) const
253
+ void
254
+ Ice::AdapterNotFoundException::_readImpl(Ice::InputStream* istr)
1549
255
  {
1550
- return ice_staticId();
256
+ istr->startSlice();
257
+ istr->endSlice();
1551
258
  }
1552
259
 
1553
- const ::std::string&
1554
- Ice::Locator::ice_staticId()
260
+ const char*
261
+ Ice::ObjectNotFoundException::ice_staticId() noexcept
1555
262
  {
1556
- #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1557
- static const ::std::string typeId = "::Ice::Locator";
1558
- return typeId;
1559
- #else
1560
- return iceC_Ice_Locator_ids[0];
1561
- #endif
263
+ return "::Ice::ObjectNotFoundException";
1562
264
  }
1563
265
 
1564
- /// \cond INTERNAL
1565
- bool
1566
- Ice::Locator::_iceD_findObjectById(::IceInternal::Incoming& inS, const Current& current) const
266
+ const char*
267
+ Ice::ObjectNotFoundException::ice_id() const noexcept
1567
268
  {
1568
- _iceCheckMode(::Ice::Idempotent, current.mode);
1569
- InputStream* istr = inS.startReadParams();
1570
- Identity iceP_id;
1571
- istr->read(iceP_id);
1572
- inS.endReadParams();
1573
- this->findObjectById_async(new IceAsync::Ice::AMD_Locator_findObjectById(inS), iceP_id, current);
1574
- return false;
269
+ return ice_staticId();
1575
270
  }
1576
- /// \endcond
1577
271
 
1578
- /// \cond INTERNAL
1579
- bool
1580
- Ice::Locator::_iceD_findAdapterById(::IceInternal::Incoming& inS, const Current& current) const
272
+ void
273
+ Ice::ObjectNotFoundException::ice_throw() const
1581
274
  {
1582
- _iceCheckMode(::Ice::Idempotent, current.mode);
1583
- InputStream* istr = inS.startReadParams();
1584
- ::std::string iceP_id;
1585
- istr->read(iceP_id);
1586
- inS.endReadParams();
1587
- this->findAdapterById_async(new IceAsync::Ice::AMD_Locator_findAdapterById(inS), iceP_id, current);
1588
- return false;
275
+ throw *this;
1589
276
  }
1590
- /// \endcond
1591
277
 
1592
- /// \cond INTERNAL
1593
- bool
1594
- Ice::Locator::_iceD_getRegistry(::IceInternal::Incoming& inS, const Current& current) const
278
+ void
279
+ Ice::ObjectNotFoundException::_writeImpl(Ice::OutputStream* ostr) const
1595
280
  {
1596
- _iceCheckMode(::Ice::Idempotent, current.mode);
1597
- inS.readEmptyParams();
1598
- LocatorRegistryPrx ret = this->getRegistry(current);
1599
- OutputStream* ostr = inS.startWriteParams();
1600
- ostr->write(ret);
1601
- inS.endWriteParams();
1602
- return true;
281
+ ostr->startSlice(ice_staticId(), -1, true);
282
+ ostr->endSlice();
1603
283
  }
1604
- /// \endcond
1605
284
 
1606
- namespace
1607
- {
1608
- const ::std::string iceC_Ice_Locator_all[] =
285
+ void
286
+ Ice::ObjectNotFoundException::_readImpl(Ice::InputStream* istr)
1609
287
  {
1610
- "findAdapterById",
1611
- "findObjectById",
1612
- "getRegistry",
1613
- "ice_id",
1614
- "ice_ids",
1615
- "ice_isA",
1616
- "ice_ping"
1617
- };
1618
-
288
+ istr->startSlice();
289
+ istr->endSlice();
1619
290
  }
1620
291
 
1621
- /// \cond INTERNAL
1622
- bool
1623
- Ice::Locator::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
292
+ void
293
+ Ice::Locator::dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse)
1624
294
  {
1625
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_Locator_all, iceC_Ice_Locator_all + 7, current.operation);
1626
- if(r.first == r.second)
295
+ static constexpr std::array<std::string_view, 7> allOperations{"findAdapterById", "findObjectById", "getRegistry", "ice_id", "ice_ids", "ice_isA", "ice_ping"};
296
+
297
+ const Ice::Current& current = request.current();
298
+ auto r = std::equal_range(allOperations.begin(), allOperations.end(), current.operation); // NOLINT(modernize-use-ranges)
299
+ if (r.first == r.second)
1627
300
  {
1628
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
301
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
302
+ return;
1629
303
  }
1630
304
 
1631
- switch(r.first - iceC_Ice_Locator_all)
305
+ switch (r.first - allOperations.begin())
1632
306
  {
1633
307
  case 0:
1634
308
  {
1635
- return _iceD_findAdapterById(in, current);
309
+ _iceD_findAdapterById(request, std::move(sendResponse));
310
+ break;
1636
311
  }
1637
312
  case 1:
1638
313
  {
1639
- return _iceD_findObjectById(in, current);
314
+ _iceD_findObjectById(request, std::move(sendResponse));
315
+ break;
1640
316
  }
1641
317
  case 2:
1642
318
  {
1643
- return _iceD_getRegistry(in, current);
319
+ _iceD_getRegistry(request, std::move(sendResponse));
320
+ break;
1644
321
  }
1645
322
  case 3:
1646
323
  {
1647
- return _iceD_ice_id(in, current);
324
+ _iceD_ice_id(request, std::move(sendResponse));
325
+ break;
1648
326
  }
1649
327
  case 4:
1650
328
  {
1651
- return _iceD_ice_ids(in, current);
329
+ _iceD_ice_ids(request, std::move(sendResponse));
330
+ break;
1652
331
  }
1653
332
  case 5:
1654
333
  {
1655
- return _iceD_ice_isA(in, current);
334
+ _iceD_ice_isA(request, std::move(sendResponse));
335
+ break;
1656
336
  }
1657
337
  case 6:
1658
338
  {
1659
- return _iceD_ice_ping(in, current);
339
+ _iceD_ice_ping(request, std::move(sendResponse));
340
+ break;
1660
341
  }
1661
342
  default:
1662
343
  {
1663
344
  assert(false);
1664
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
345
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
1665
346
  }
1666
347
  }
1667
348
  }
1668
- /// \endcond
1669
349
 
1670
- /// \cond STREAM
1671
- void
1672
- Ice::Locator::_iceWriteImpl(OutputStream* ostr) const
350
+ std::vector<std::string>
351
+ Ice::Locator::ice_ids(const Ice::Current&) const
1673
352
  {
1674
- ostr->startSlice(ice_staticId(), -1, true);
1675
- StreamWriter< Locator, OutputStream>::write(ostr, *this);
1676
- ostr->endSlice();
353
+ static const std::vector<std::string> allTypeIds = {"::Ice::Locator", "::Ice::Object"};
354
+ return allTypeIds;
1677
355
  }
1678
356
 
1679
- void
1680
- Ice::Locator::_iceReadImpl(InputStream* istr)
357
+ std::string
358
+ Ice::Locator::ice_id(const Ice::Current&) const
1681
359
  {
1682
- istr->startSlice();
1683
- StreamReader< Locator, InputStream>::read(istr, *this);
1684
- istr->endSlice();
360
+ return std::string{ice_staticId()};
1685
361
  }
1686
- /// \endcond
1687
362
 
1688
- /// \cond INTERNAL
1689
363
  void
1690
- Ice::_icePatchObjectPtr(LocatorPtr& handle, const ObjectPtr& v)
364
+ Ice::Locator::_iceD_findObjectById(
365
+ Ice::IncomingRequest& request,
366
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const // NOLINT(performance-unnecessary-value-param)
1691
367
  {
1692
- handle = LocatorPtr::dynamicCast(v);
1693
- if(v && !handle)
1694
- {
1695
- IceInternal::Ex::throwUOE(Locator::ice_staticId(), v);
1696
- }
368
+ auto istr = &request.inputStream();
369
+ istr->startEncapsulation();
370
+ Identity iceP_id;
371
+ istr->readAll(iceP_id);
372
+ istr->endEncapsulation();
373
+ const std::optional<Ice::ObjectPrx> ret = this->findObjectById(std::move(iceP_id), request.current());
374
+ sendResponse(Ice::makeOutgoingResponse([&](Ice::OutputStream* ostr)
375
+ {
376
+ ostr->writeAll(ret);
377
+ },
378
+ request.current()));
1697
379
  }
1698
- /// \endcond
1699
380
 
1700
- Ice::LocatorRegistry::~LocatorRegistry()
381
+ void
382
+ Ice::Locator::_iceD_findAdapterById(
383
+ Ice::IncomingRequest& request,
384
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const // NOLINT(performance-unnecessary-value-param)
1701
385
  {
386
+ auto istr = &request.inputStream();
387
+ istr->startEncapsulation();
388
+ std::string iceP_id;
389
+ istr->readAll(iceP_id);
390
+ istr->endEncapsulation();
391
+ const std::optional<Ice::ObjectPrx> ret = this->findAdapterById(std::move(iceP_id), request.current());
392
+ sendResponse(Ice::makeOutgoingResponse([&](Ice::OutputStream* ostr)
393
+ {
394
+ ostr->writeAll(ret);
395
+ },
396
+ request.current()));
1702
397
  }
1703
398
 
1704
- /// \cond INTERNAL
1705
- ICE_API ::Ice::Object* Ice::upCast(LocatorRegistry* p) { return p; }
1706
-
1707
- /// \endcond
1708
-
1709
- namespace
1710
- {
1711
- const ::std::string iceC_Ice_LocatorRegistry_ids[2] =
399
+ void
400
+ Ice::Locator::_iceD_getRegistry(
401
+ Ice::IncomingRequest& request,
402
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const // NOLINT(performance-unnecessary-value-param)
1712
403
  {
1713
- "::Ice::LocatorRegistry",
1714
- "::Ice::Object"
1715
- };
1716
-
404
+ request.inputStream().skipEmptyEncapsulation();
405
+ const std::optional<LocatorRegistryPrx> ret = this->getRegistry(request.current());
406
+ sendResponse(Ice::makeOutgoingResponse([&](Ice::OutputStream* ostr)
407
+ {
408
+ ostr->writeAll(ret);
409
+ },
410
+ request.current()));
1717
411
  }
1718
412
 
1719
- bool
1720
- Ice::LocatorRegistry::ice_isA(const ::std::string& s, const Current&) const
413
+ const char*
414
+ Ice::Locator::ice_staticId() noexcept
1721
415
  {
1722
- return ::std::binary_search(iceC_Ice_LocatorRegistry_ids, iceC_Ice_LocatorRegistry_ids + 2, s);
416
+ return "::Ice::Locator";
1723
417
  }
1724
418
 
1725
- ::std::vector< ::std::string>
1726
- Ice::LocatorRegistry::ice_ids(const Current&) const
419
+ void
420
+ Ice::LocatorFinder::dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse)
1727
421
  {
1728
- return ::std::vector< ::std::string>(&iceC_Ice_LocatorRegistry_ids[0], &iceC_Ice_LocatorRegistry_ids[2]);
1729
- }
422
+ static constexpr std::array<std::string_view, 5> allOperations{"getLocator", "ice_id", "ice_ids", "ice_isA", "ice_ping"};
1730
423
 
1731
- const ::std::string&
1732
- Ice::LocatorRegistry::ice_id(const Current&) const
1733
- {
1734
- return ice_staticId();
1735
- }
424
+ const Ice::Current& current = request.current();
425
+ auto r = std::equal_range(allOperations.begin(), allOperations.end(), current.operation); // NOLINT(modernize-use-ranges)
426
+ if (r.first == r.second)
427
+ {
428
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
429
+ return;
430
+ }
1736
431
 
1737
- const ::std::string&
1738
- Ice::LocatorRegistry::ice_staticId()
1739
- {
1740
- #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1741
- static const ::std::string typeId = "::Ice::LocatorRegistry";
1742
- return typeId;
1743
- #else
1744
- return iceC_Ice_LocatorRegistry_ids[0];
1745
- #endif
432
+ switch (r.first - allOperations.begin())
433
+ {
434
+ case 0:
435
+ {
436
+ _iceD_getLocator(request, std::move(sendResponse));
437
+ break;
438
+ }
439
+ case 1:
440
+ {
441
+ _iceD_ice_id(request, std::move(sendResponse));
442
+ break;
443
+ }
444
+ case 2:
445
+ {
446
+ _iceD_ice_ids(request, std::move(sendResponse));
447
+ break;
448
+ }
449
+ case 3:
450
+ {
451
+ _iceD_ice_isA(request, std::move(sendResponse));
452
+ break;
453
+ }
454
+ case 4:
455
+ {
456
+ _iceD_ice_ping(request, std::move(sendResponse));
457
+ break;
458
+ }
459
+ default:
460
+ {
461
+ assert(false);
462
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
463
+ }
464
+ }
1746
465
  }
1747
466
 
1748
- /// \cond INTERNAL
1749
- bool
1750
- Ice::LocatorRegistry::_iceD_setAdapterDirectProxy(::IceInternal::Incoming& inS, const Current& current)
467
+ std::vector<std::string>
468
+ Ice::LocatorFinder::ice_ids(const Ice::Current&) const
1751
469
  {
1752
- _iceCheckMode(::Ice::Idempotent, current.mode);
1753
- InputStream* istr = inS.startReadParams();
1754
- ::std::string iceP_id;
1755
- ObjectPrx iceP_proxy;
1756
- istr->read(iceP_id);
1757
- istr->read(iceP_proxy);
1758
- inS.endReadParams();
1759
- this->setAdapterDirectProxy_async(new IceAsync::Ice::AMD_LocatorRegistry_setAdapterDirectProxy(inS), iceP_id, iceP_proxy, current);
1760
- return false;
470
+ static const std::vector<std::string> allTypeIds = {"::Ice::LocatorFinder", "::Ice::Object"};
471
+ return allTypeIds;
1761
472
  }
1762
- /// \endcond
1763
473
 
1764
- /// \cond INTERNAL
1765
- bool
1766
- Ice::LocatorRegistry::_iceD_setReplicatedAdapterDirectProxy(::IceInternal::Incoming& inS, const Current& current)
474
+ std::string
475
+ Ice::LocatorFinder::ice_id(const Ice::Current&) const
1767
476
  {
1768
- _iceCheckMode(::Ice::Idempotent, current.mode);
1769
- InputStream* istr = inS.startReadParams();
1770
- ::std::string iceP_adapterId;
1771
- ::std::string iceP_replicaGroupId;
1772
- ObjectPrx iceP_p;
1773
- istr->read(iceP_adapterId);
1774
- istr->read(iceP_replicaGroupId);
1775
- istr->read(iceP_p);
1776
- inS.endReadParams();
1777
- this->setReplicatedAdapterDirectProxy_async(new IceAsync::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy(inS), iceP_adapterId, iceP_replicaGroupId, iceP_p, current);
1778
- return false;
477
+ return std::string{ice_staticId()};
1779
478
  }
1780
- /// \endcond
1781
479
 
1782
- /// \cond INTERNAL
1783
- bool
1784
- Ice::LocatorRegistry::_iceD_setServerProcessProxy(::IceInternal::Incoming& inS, const Current& current)
480
+ void
481
+ Ice::LocatorFinder::_iceD_getLocator(
482
+ Ice::IncomingRequest& request,
483
+ std::function<void(Ice::OutgoingResponse)> sendResponse) // NOLINT(performance-unnecessary-value-param)
1785
484
  {
1786
- _iceCheckMode(::Ice::Idempotent, current.mode);
1787
- InputStream* istr = inS.startReadParams();
1788
- ::std::string iceP_id;
1789
- ProcessPrx iceP_proxy;
1790
- istr->read(iceP_id);
1791
- istr->read(iceP_proxy);
1792
- inS.endReadParams();
1793
- this->setServerProcessProxy_async(new IceAsync::Ice::AMD_LocatorRegistry_setServerProcessProxy(inS), iceP_id, iceP_proxy, current);
1794
- return false;
485
+ checkNonIdempotent(request.current());
486
+ request.inputStream().skipEmptyEncapsulation();
487
+ const std::optional<LocatorPrx> ret = this->getLocator(request.current());
488
+ sendResponse(Ice::makeOutgoingResponse([&](Ice::OutputStream* ostr)
489
+ {
490
+ ostr->writeAll(ret);
491
+ },
492
+ request.current()));
1795
493
  }
1796
- /// \endcond
1797
494
 
1798
- namespace
495
+ const char*
496
+ Ice::LocatorFinder::ice_staticId() noexcept
1799
497
  {
1800
- const ::std::string iceC_Ice_LocatorRegistry_all[] =
1801
- {
1802
- "ice_id",
1803
- "ice_ids",
1804
- "ice_isA",
1805
- "ice_ping",
1806
- "setAdapterDirectProxy",
1807
- "setReplicatedAdapterDirectProxy",
1808
- "setServerProcessProxy"
1809
- };
1810
-
498
+ return "::Ice::LocatorFinder";
1811
499
  }
1812
500
 
1813
- /// \cond INTERNAL
1814
- bool
1815
- Ice::LocatorRegistry::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
501
+ void
502
+ Ice::AsyncLocator::dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse)
1816
503
  {
1817
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LocatorRegistry_all, iceC_Ice_LocatorRegistry_all + 7, current.operation);
1818
- if(r.first == r.second)
504
+ static constexpr std::array<std::string_view, 7> allOperations{"findAdapterById", "findObjectById", "getRegistry", "ice_id", "ice_ids", "ice_isA", "ice_ping"};
505
+
506
+ const Ice::Current& current = request.current();
507
+ auto r = std::equal_range(allOperations.begin(), allOperations.end(), current.operation); // NOLINT(modernize-use-ranges)
508
+ if (r.first == r.second)
1819
509
  {
1820
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
510
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
511
+ return;
1821
512
  }
1822
513
 
1823
- switch(r.first - iceC_Ice_LocatorRegistry_all)
514
+ switch (r.first - allOperations.begin())
1824
515
  {
1825
516
  case 0:
1826
517
  {
1827
- return _iceD_ice_id(in, current);
518
+ _iceD_findAdapterById(request, std::move(sendResponse));
519
+ break;
1828
520
  }
1829
521
  case 1:
1830
522
  {
1831
- return _iceD_ice_ids(in, current);
523
+ _iceD_findObjectById(request, std::move(sendResponse));
524
+ break;
1832
525
  }
1833
526
  case 2:
1834
527
  {
1835
- return _iceD_ice_isA(in, current);
528
+ _iceD_getRegistry(request, std::move(sendResponse));
529
+ break;
1836
530
  }
1837
531
  case 3:
1838
532
  {
1839
- return _iceD_ice_ping(in, current);
533
+ _iceD_ice_id(request, std::move(sendResponse));
534
+ break;
1840
535
  }
1841
536
  case 4:
1842
537
  {
1843
- return _iceD_setAdapterDirectProxy(in, current);
538
+ _iceD_ice_ids(request, std::move(sendResponse));
539
+ break;
1844
540
  }
1845
541
  case 5:
1846
542
  {
1847
- return _iceD_setReplicatedAdapterDirectProxy(in, current);
543
+ _iceD_ice_isA(request, std::move(sendResponse));
544
+ break;
1848
545
  }
1849
546
  case 6:
1850
547
  {
1851
- return _iceD_setServerProcessProxy(in, current);
548
+ _iceD_ice_ping(request, std::move(sendResponse));
549
+ break;
1852
550
  }
1853
551
  default:
1854
552
  {
1855
553
  assert(false);
1856
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
554
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
1857
555
  }
1858
556
  }
1859
557
  }
1860
- /// \endcond
1861
558
 
1862
- /// \cond STREAM
1863
- void
1864
- Ice::LocatorRegistry::_iceWriteImpl(OutputStream* ostr) const
559
+ std::vector<std::string>
560
+ Ice::AsyncLocator::ice_ids(const Ice::Current&) const
1865
561
  {
1866
- ostr->startSlice(ice_staticId(), -1, true);
1867
- StreamWriter< LocatorRegistry, OutputStream>::write(ostr, *this);
1868
- ostr->endSlice();
562
+ static const std::vector<std::string> allTypeIds = {"::Ice::Locator", "::Ice::Object"};
563
+ return allTypeIds;
1869
564
  }
1870
565
 
1871
- void
1872
- Ice::LocatorRegistry::_iceReadImpl(InputStream* istr)
566
+ std::string
567
+ Ice::AsyncLocator::ice_id(const Ice::Current&) const
1873
568
  {
1874
- istr->startSlice();
1875
- StreamReader< LocatorRegistry, InputStream>::read(istr, *this);
1876
- istr->endSlice();
569
+ return std::string{ice_staticId()};
1877
570
  }
1878
- /// \endcond
1879
571
 
1880
- /// \cond INTERNAL
1881
572
  void
1882
- Ice::_icePatchObjectPtr(LocatorRegistryPtr& handle, const ObjectPtr& v)
573
+ Ice::AsyncLocator::_iceD_findObjectById(
574
+ Ice::IncomingRequest& request,
575
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const
1883
576
  {
1884
- handle = LocatorRegistryPtr::dynamicCast(v);
1885
- if(v && !handle)
577
+ auto istr = &request.inputStream();
578
+ istr->startEncapsulation();
579
+ Identity iceP_id;
580
+ istr->readAll(iceP_id);
581
+ istr->endEncapsulation();
582
+ auto responseHandler = std::make_shared<IceInternal::AsyncResponseHandler>(std::move(sendResponse), request.current());
583
+ auto responseCb = [responseHandler](const std::optional<Ice::ObjectPrx>& ret)
1886
584
  {
1887
- IceInternal::Ex::throwUOE(LocatorRegistry::ice_staticId(), v);
585
+ responseHandler->sendResponse(
586
+ [&](Ice::OutputStream* ostr)
587
+ {
588
+ ostr->writeAll(ret);
589
+ });
590
+ };
591
+ try
592
+ {
593
+ this->findObjectByIdAsync(std::move(iceP_id), std::move(responseCb), [responseHandler](std::exception_ptr ex) { responseHandler->sendException(ex); }, responseHandler->current());
594
+ }
595
+ catch (...)
596
+ {
597
+ responseHandler->sendException(std::current_exception());
1888
598
  }
1889
- }
1890
- /// \endcond
1891
-
1892
- Ice::LocatorFinder::~LocatorFinder()
1893
- {
1894
- }
1895
-
1896
- /// \cond INTERNAL
1897
- ICE_API ::Ice::Object* Ice::upCast(LocatorFinder* p) { return p; }
1898
-
1899
- /// \endcond
1900
-
1901
- namespace
1902
- {
1903
- const ::std::string iceC_Ice_LocatorFinder_ids[2] =
1904
- {
1905
- "::Ice::LocatorFinder",
1906
- "::Ice::Object"
1907
- };
1908
-
1909
- }
1910
-
1911
- bool
1912
- Ice::LocatorFinder::ice_isA(const ::std::string& s, const Current&) const
1913
- {
1914
- return ::std::binary_search(iceC_Ice_LocatorFinder_ids, iceC_Ice_LocatorFinder_ids + 2, s);
1915
- }
1916
-
1917
- ::std::vector< ::std::string>
1918
- Ice::LocatorFinder::ice_ids(const Current&) const
1919
- {
1920
- return ::std::vector< ::std::string>(&iceC_Ice_LocatorFinder_ids[0], &iceC_Ice_LocatorFinder_ids[2]);
1921
599
  }
1922
600
 
1923
- const ::std::string&
1924
- Ice::LocatorFinder::ice_id(const Current&) const
601
+ void
602
+ Ice::AsyncLocator::_iceD_findAdapterById(
603
+ Ice::IncomingRequest& request,
604
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const
1925
605
  {
1926
- return ice_staticId();
606
+ auto istr = &request.inputStream();
607
+ istr->startEncapsulation();
608
+ std::string iceP_id;
609
+ istr->readAll(iceP_id);
610
+ istr->endEncapsulation();
611
+ auto responseHandler = std::make_shared<IceInternal::AsyncResponseHandler>(std::move(sendResponse), request.current());
612
+ auto responseCb = [responseHandler](const std::optional<Ice::ObjectPrx>& ret)
613
+ {
614
+ responseHandler->sendResponse(
615
+ [&](Ice::OutputStream* ostr)
616
+ {
617
+ ostr->writeAll(ret);
618
+ });
619
+ };
620
+ try
621
+ {
622
+ this->findAdapterByIdAsync(std::move(iceP_id), std::move(responseCb), [responseHandler](std::exception_ptr ex) { responseHandler->sendException(ex); }, responseHandler->current());
623
+ }
624
+ catch (...)
625
+ {
626
+ responseHandler->sendException(std::current_exception());
627
+ }
1927
628
  }
1928
629
 
1929
- const ::std::string&
1930
- Ice::LocatorFinder::ice_staticId()
630
+ void
631
+ Ice::AsyncLocator::_iceD_getRegistry(
632
+ Ice::IncomingRequest& request,
633
+ std::function<void(Ice::OutgoingResponse)> sendResponse) const
1931
634
  {
1932
- #ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
1933
- static const ::std::string typeId = "::Ice::LocatorFinder";
1934
- return typeId;
1935
- #else
1936
- return iceC_Ice_LocatorFinder_ids[0];
1937
- #endif
635
+ request.inputStream().skipEmptyEncapsulation();
636
+ auto responseHandler = std::make_shared<IceInternal::AsyncResponseHandler>(std::move(sendResponse), request.current());
637
+ auto responseCb = [responseHandler](const std::optional<LocatorRegistryPrx>& ret)
638
+ {
639
+ responseHandler->sendResponse(
640
+ [&](Ice::OutputStream* ostr)
641
+ {
642
+ ostr->writeAll(ret);
643
+ });
644
+ };
645
+ try
646
+ {
647
+ this->getRegistryAsync(std::move(responseCb), [responseHandler](std::exception_ptr ex) { responseHandler->sendException(ex); }, responseHandler->current());
648
+ }
649
+ catch (...)
650
+ {
651
+ responseHandler->sendException(std::current_exception());
652
+ }
1938
653
  }
1939
654
 
1940
- /// \cond INTERNAL
1941
- bool
1942
- Ice::LocatorFinder::_iceD_getLocator(::IceInternal::Incoming& inS, const Current& current)
655
+ const char*
656
+ Ice::AsyncLocator::ice_staticId() noexcept
1943
657
  {
1944
- _iceCheckMode(::Ice::Normal, current.mode);
1945
- inS.readEmptyParams();
1946
- LocatorPrx ret = this->getLocator(current);
1947
- OutputStream* ostr = inS.startWriteParams();
1948
- ostr->write(ret);
1949
- inS.endWriteParams();
1950
- return true;
658
+ return "::Ice::Locator";
1951
659
  }
1952
- /// \endcond
1953
660
 
1954
- namespace
1955
- {
1956
- const ::std::string iceC_Ice_LocatorFinder_all[] =
661
+ void
662
+ Ice::AsyncLocatorFinder::dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse)
1957
663
  {
1958
- "getLocator",
1959
- "ice_id",
1960
- "ice_ids",
1961
- "ice_isA",
1962
- "ice_ping"
1963
- };
1964
-
1965
- }
664
+ static constexpr std::array<std::string_view, 5> allOperations{"getLocator", "ice_id", "ice_ids", "ice_isA", "ice_ping"};
1966
665
 
1967
- /// \cond INTERNAL
1968
- bool
1969
- Ice::LocatorFinder::_iceDispatch(::IceInternal::Incoming& in, const Current& current)
1970
- {
1971
- ::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Ice_LocatorFinder_all, iceC_Ice_LocatorFinder_all + 5, current.operation);
1972
- if(r.first == r.second)
666
+ const Ice::Current& current = request.current();
667
+ auto r = std::equal_range(allOperations.begin(), allOperations.end(), current.operation); // NOLINT(modernize-use-ranges)
668
+ if (r.first == r.second)
1973
669
  {
1974
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
670
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
671
+ return;
1975
672
  }
1976
673
 
1977
- switch(r.first - iceC_Ice_LocatorFinder_all)
674
+ switch (r.first - allOperations.begin())
1978
675
  {
1979
676
  case 0:
1980
677
  {
1981
- return _iceD_getLocator(in, current);
678
+ _iceD_getLocator(request, std::move(sendResponse));
679
+ break;
1982
680
  }
1983
681
  case 1:
1984
682
  {
1985
- return _iceD_ice_id(in, current);
683
+ _iceD_ice_id(request, std::move(sendResponse));
684
+ break;
1986
685
  }
1987
686
  case 2:
1988
687
  {
1989
- return _iceD_ice_ids(in, current);
688
+ _iceD_ice_ids(request, std::move(sendResponse));
689
+ break;
1990
690
  }
1991
691
  case 3:
1992
692
  {
1993
- return _iceD_ice_isA(in, current);
693
+ _iceD_ice_isA(request, std::move(sendResponse));
694
+ break;
1994
695
  }
1995
696
  case 4:
1996
697
  {
1997
- return _iceD_ice_ping(in, current);
698
+ _iceD_ice_ping(request, std::move(sendResponse));
699
+ break;
1998
700
  }
1999
701
  default:
2000
702
  {
2001
703
  assert(false);
2002
- throw OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
704
+ sendResponse(Ice::makeOutgoingResponse(std::make_exception_ptr(Ice::OperationNotExistException{__FILE__, __LINE__}), current));
2003
705
  }
2004
706
  }
2005
707
  }
2006
- /// \endcond
2007
708
 
2008
- /// \cond STREAM
2009
- void
2010
- Ice::LocatorFinder::_iceWriteImpl(OutputStream* ostr) const
709
+ std::vector<std::string>
710
+ Ice::AsyncLocatorFinder::ice_ids(const Ice::Current&) const
2011
711
  {
2012
- ostr->startSlice(ice_staticId(), -1, true);
2013
- StreamWriter< LocatorFinder, OutputStream>::write(ostr, *this);
2014
- ostr->endSlice();
712
+ static const std::vector<std::string> allTypeIds = {"::Ice::LocatorFinder", "::Ice::Object"};
713
+ return allTypeIds;
2015
714
  }
2016
715
 
2017
- void
2018
- Ice::LocatorFinder::_iceReadImpl(InputStream* istr)
716
+ std::string
717
+ Ice::AsyncLocatorFinder::ice_id(const Ice::Current&) const
2019
718
  {
2020
- istr->startSlice();
2021
- StreamReader< LocatorFinder, InputStream>::read(istr, *this);
2022
- istr->endSlice();
719
+ return std::string{ice_staticId()};
2023
720
  }
2024
- /// \endcond
2025
721
 
2026
- /// \cond INTERNAL
2027
722
  void
2028
- Ice::_icePatchObjectPtr(LocatorFinderPtr& handle, const ObjectPtr& v)
723
+ Ice::AsyncLocatorFinder::_iceD_getLocator(
724
+ Ice::IncomingRequest& request,
725
+ std::function<void(Ice::OutgoingResponse)> sendResponse)
2029
726
  {
2030
- handle = LocatorFinderPtr::dynamicCast(v);
2031
- if(v && !handle)
727
+ checkNonIdempotent(request.current());
728
+ request.inputStream().skipEmptyEncapsulation();
729
+ auto responseHandler = std::make_shared<IceInternal::AsyncResponseHandler>(std::move(sendResponse), request.current());
730
+ auto responseCb = [responseHandler](const std::optional<LocatorPrx>& ret)
2032
731
  {
2033
- IceInternal::Ex::throwUOE(LocatorFinder::ice_staticId(), v);
732
+ responseHandler->sendResponse(
733
+ [&](Ice::OutputStream* ostr)
734
+ {
735
+ ostr->writeAll(ret);
736
+ });
737
+ };
738
+ try
739
+ {
740
+ this->getLocatorAsync(std::move(responseCb), [responseHandler](std::exception_ptr ex) { responseHandler->sendException(ex); }, responseHandler->current());
741
+ }
742
+ catch (...)
743
+ {
744
+ responseHandler->sendException(std::current_exception());
2034
745
  }
2035
746
  }
2036
- /// \endcond
2037
747
 
2038
- namespace Ice
748
+ const char*
749
+ Ice::AsyncLocatorFinder::ice_staticId() noexcept
2039
750
  {
751
+ return "::Ice::LocatorFinder";
2040
752
  }
2041
-
2042
- #endif