zeroc-ice 3.6.5 → 3.7.0

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 (752) hide show
  1. checksums.yaml +4 -4
  2. data/BZIP2_LICENSE +42 -0
  3. data/ICE_LICENSE +17 -17
  4. data/LICENSE +12 -12
  5. data/bin/slice2rb +1 -1
  6. data/ext/Communicator.cpp +150 -53
  7. data/ext/Communicator.h +1 -1
  8. data/ext/Config.h +2 -12
  9. data/ext/Connection.cpp +89 -68
  10. data/ext/Connection.h +1 -1
  11. data/ext/Endpoint.cpp +16 -45
  12. data/ext/Endpoint.h +1 -1
  13. data/ext/ImplicitContext.cpp +1 -5
  14. data/ext/ImplicitContext.h +1 -1
  15. data/ext/Init.cpp +4 -1
  16. data/ext/Logger.cpp +1 -1
  17. data/ext/Logger.h +1 -1
  18. data/ext/Operation.cpp +33 -44
  19. data/ext/Operation.h +1 -1
  20. data/ext/Properties.cpp +1 -1
  21. data/ext/Properties.h +1 -1
  22. data/ext/Proxy.cpp +22 -57
  23. data/ext/Proxy.h +1 -1
  24. data/ext/Slice.cpp +5 -5
  25. data/ext/Slice.h +1 -1
  26. data/ext/Types.cpp +244 -171
  27. data/ext/Types.h +118 -66
  28. data/ext/Util.cpp +13 -9
  29. data/ext/Util.h +10 -10
  30. data/ext/ValueFactoryManager.cpp +445 -0
  31. data/ext/ValueFactoryManager.h +100 -0
  32. data/ext/extconf.rb +47 -45
  33. data/ext/ice/bzip2/blocksort.c +1094 -0
  34. data/ext/ice/bzip2/bzlib.c +1572 -0
  35. data/ext/ice/bzip2/bzlib.h +282 -0
  36. data/ext/ice/bzip2/bzlib_private.h +509 -0
  37. data/ext/ice/bzip2/compress.c +672 -0
  38. data/ext/ice/bzip2/crctable.c +104 -0
  39. data/ext/ice/bzip2/decompress.c +646 -0
  40. data/ext/ice/bzip2/huffman.c +205 -0
  41. data/ext/ice/bzip2/randtable.c +84 -0
  42. data/ext/ice/cpp/include/Ice/Application.h +77 -60
  43. data/ext/ice/cpp/include/Ice/AsyncResult.h +34 -318
  44. data/ext/ice/cpp/include/Ice/AsyncResultF.h +4 -2
  45. data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +5 -10
  46. data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +1 -1
  47. data/ext/ice/cpp/include/Ice/Buffer.h +10 -10
  48. data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +14 -12
  49. data/ext/ice/cpp/include/Ice/Comparable.h +130 -0
  50. data/ext/ice/cpp/include/Ice/Config.h +7 -36
  51. data/ext/ice/cpp/include/Ice/ConnectionAsync.h +107 -11
  52. data/ext/ice/cpp/include/Ice/ConnectionIF.h +5 -1
  53. data/ext/ice/cpp/include/Ice/ConsoleUtil.h +28 -0
  54. data/ext/ice/cpp/include/Ice/{DefaultObjectFactory.h → DefaultValueFactory.h} +28 -14
  55. data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +4 -6
  56. data/ext/ice/cpp/include/Ice/Dispatcher.h +14 -13
  57. data/ext/ice/cpp/include/Ice/DynamicLibrary.h +7 -5
  58. data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +1 -1
  59. data/ext/ice/cpp/include/Ice/Exception.h +66 -56
  60. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +69 -0
  61. data/ext/ice/cpp/include/Ice/FactoryTable.h +11 -12
  62. data/ext/ice/cpp/include/Ice/FactoryTableInit.h +27 -25
  63. data/ext/ice/cpp/include/Ice/Format.h +6 -1
  64. data/ext/ice/cpp/include/Ice/Functional.h +33 -33
  65. data/ext/ice/cpp/include/Ice/GCObject.h +9 -5
  66. data/ext/ice/cpp/include/Ice/Handle.h +6 -11
  67. data/ext/ice/cpp/include/Ice/Ice.h +9 -5
  68. data/ext/ice/cpp/include/{IceUtil → Ice}/IconvStringConverter.h +108 -62
  69. data/ext/ice/cpp/include/Ice/Incoming.h +109 -33
  70. data/ext/ice/cpp/include/Ice/IncomingAsync.h +63 -23
  71. data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +7 -1
  72. data/ext/ice/cpp/include/Ice/Initialize.h +178 -38
  73. data/ext/ice/cpp/include/Ice/InputStream.h +994 -0
  74. data/ext/ice/cpp/include/Ice/InstanceF.h +1 -2
  75. data/ext/ice/cpp/include/Ice/InterfaceByValue.h +46 -0
  76. data/ext/ice/cpp/include/Ice/LocalObject.h +9 -9
  77. data/ext/ice/cpp/include/Ice/LocalObjectF.h +1 -1
  78. data/ext/ice/cpp/include/Ice/LoggerUtil.h +20 -14
  79. data/ext/ice/cpp/include/Ice/MetricsAdminI.h +114 -65
  80. data/ext/ice/cpp/include/Ice/MetricsFunctional.h +23 -5
  81. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +99 -26
  82. data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +17 -4
  83. data/ext/ice/cpp/include/Ice/Object.h +105 -56
  84. data/ext/ice/cpp/include/Ice/ObjectF.h +8 -3
  85. data/ext/ice/cpp/include/Ice/ObserverHelper.h +18 -8
  86. data/ext/ice/cpp/include/Ice/Optional.h +1084 -0
  87. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +655 -84
  88. data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +12 -6
  89. data/ext/ice/cpp/include/Ice/OutputStream.h +753 -0
  90. data/ext/ice/cpp/include/Ice/Protocol.h +19 -12
  91. data/ext/ice/cpp/include/Ice/Proxy.h +1329 -717
  92. data/ext/ice/cpp/include/Ice/ProxyF.h +11 -33
  93. data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +1 -1
  94. data/ext/ice/cpp/include/Ice/ProxyHandle.h +34 -50
  95. data/ext/ice/cpp/include/Ice/ReferenceF.h +1 -1
  96. data/ext/ice/cpp/include/Ice/RegisterPlugins.h +22 -3
  97. data/ext/ice/cpp/include/Ice/RequestHandlerF.h +10 -4
  98. data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +6 -1
  99. data/ext/ice/cpp/include/{IceUtil → Ice}/SHA1.h +16 -16
  100. data/ext/ice/cpp/include/Ice/ServantManagerF.h +1 -1
  101. data/ext/ice/cpp/include/Ice/Service.h +13 -18
  102. data/ext/ice/cpp/include/Ice/SliceChecksums.h +1 -1
  103. data/ext/ice/cpp/include/Ice/SlicedData.h +46 -20
  104. data/ext/ice/cpp/include/Ice/SlicedDataF.h +14 -6
  105. data/ext/ice/cpp/include/Ice/StreamHelpers.h +159 -49
  106. data/ext/ice/cpp/include/Ice/StringConverter.h +52 -0
  107. data/ext/ice/cpp/include/Ice/ThreadPoolF.h +1 -1
  108. data/{slice/Ice/ObjectFactoryF.ice → ext/ice/cpp/include/Ice/UUID.h} +9 -7
  109. data/ext/ice/cpp/include/{IceUtil → Ice}/UniquePtr.h +21 -22
  110. data/ext/ice/cpp/include/Ice/UniqueRef.h +98 -0
  111. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +40 -8
  112. data/ext/ice/cpp/include/Ice/Value.h +104 -0
  113. data/{slice/Freeze/ConnectionF.ice → ext/ice/cpp/include/Ice/ValueF.h} +11 -7
  114. data/ext/ice/cpp/include/IceSSL/Config.h +8 -23
  115. data/ext/ice/cpp/include/IceSSL/IceSSL.h +17 -6
  116. data/ext/ice/cpp/include/IceSSL/OpenSSL.h +130 -0
  117. data/ext/ice/cpp/include/IceSSL/Plugin.h +172 -259
  118. data/ext/ice/cpp/include/IceSSL/SChannel.h +66 -0
  119. data/ext/ice/cpp/include/IceSSL/SecureTransport.h +66 -0
  120. data/ext/ice/cpp/include/IceSSL/UWP.h +58 -0
  121. data/ext/ice/cpp/include/IceUtil/Atomic.h +8 -10
  122. data/ext/ice/cpp/include/IceUtil/Cond.h +17 -18
  123. data/ext/ice/cpp/include/IceUtil/Config.h +138 -39
  124. data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +97 -0
  125. data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +5 -5
  126. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +23 -17
  127. data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +1 -3
  128. data/ext/ice/cpp/include/IceUtil/Exception.h +157 -67
  129. data/ext/ice/cpp/include/IceUtil/FileUtil.h +148 -0
  130. data/ext/ice/cpp/include/IceUtil/Functional.h +1 -2
  131. data/ext/ice/cpp/include/IceUtil/Handle.h +11 -11
  132. data/ext/ice/cpp/include/IceUtil/IceUtil.h +4 -10
  133. data/ext/ice/cpp/include/IceUtil/InputUtil.h +3 -3
  134. data/ext/ice/cpp/include/IceUtil/Iterator.h +2 -2
  135. data/ext/ice/cpp/include/IceUtil/Lock.h +8 -10
  136. data/ext/ice/cpp/include/IceUtil/Monitor.h +1 -2
  137. data/ext/ice/cpp/include/IceUtil/Mutex.h +17 -11
  138. data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +2 -2
  139. data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +4 -4
  140. data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +4 -4
  141. data/ext/ice/cpp/include/IceUtil/Optional.h +32 -18
  142. data/ext/ice/cpp/include/IceUtil/Options.h +17 -18
  143. data/ext/ice/cpp/include/IceUtil/OutputUtil.h +55 -29
  144. data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +6 -6
  145. data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +11 -10
  146. data/ext/ice/cpp/include/IceUtil/Random.h +3 -3
  147. data/ext/ice/cpp/include/IceUtil/RecMutex.h +7 -8
  148. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +58 -0
  149. data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +1 -9
  150. data/ext/ice/cpp/include/IceUtil/ScopedArray.h +8 -2
  151. data/ext/ice/cpp/include/IceUtil/Shared.h +5 -7
  152. data/ext/ice/cpp/{src → include}/IceUtil/StopWatch.h +2 -2
  153. data/ext/ice/cpp/include/IceUtil/StringConverter.h +77 -72
  154. data/ext/ice/cpp/include/IceUtil/StringUtil.h +32 -21
  155. data/ext/ice/cpp/include/IceUtil/Thread.h +10 -12
  156. data/ext/ice/cpp/include/IceUtil/ThreadException.h +33 -42
  157. data/ext/ice/cpp/include/IceUtil/Time.h +3 -3
  158. data/ext/ice/cpp/include/IceUtil/Timer.h +14 -13
  159. data/ext/ice/cpp/include/IceUtil/UUID.h +2 -2
  160. data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +1 -1
  161. data/ext/ice/cpp/include/{Ice → generated/Ice}/BuiltinSequences.h +41 -8
  162. data/ext/ice/cpp/include/generated/Ice/Communicator.h +364 -0
  163. data/ext/ice/cpp/include/{Ice → generated/Ice}/CommunicatorF.h +40 -8
  164. data/ext/ice/cpp/include/generated/Ice/Connection.h +872 -0
  165. data/ext/ice/cpp/include/{Ice → generated/Ice}/ConnectionF.h +46 -8
  166. data/ext/ice/cpp/include/{Ice → generated/Ice}/Current.h +71 -8
  167. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +582 -0
  168. data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointF.h +62 -8
  169. data/ext/ice/cpp/include/{Ice → generated/Ice}/EndpointTypes.h +31 -16
  170. data/ext/ice/cpp/include/{Ice → generated/Ice}/FacetMap.h +23 -8
  171. data/ext/ice/cpp/include/generated/Ice/Identity.h +221 -0
  172. data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContext.h +72 -13
  173. data/ext/ice/cpp/include/{Ice → generated/Ice}/ImplicitContextF.h +40 -8
  174. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +602 -0
  175. data/ext/ice/cpp/include/{Ice → generated/Ice}/InstrumentationF.h +54 -8
  176. data/ext/ice/cpp/include/generated/Ice/LocalException.h +2802 -0
  177. data/ext/ice/cpp/include/generated/Ice/Locator.h +2036 -0
  178. data/ext/ice/cpp/include/{Ice → generated/Ice}/LocatorF.h +53 -12
  179. data/ext/ice/cpp/include/{Ice → generated/Ice}/Logger.h +71 -13
  180. data/ext/ice/cpp/include/{Ice → generated/Ice}/LoggerF.h +40 -8
  181. data/ext/ice/cpp/include/generated/Ice/Metrics.h +2649 -0
  182. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +302 -0
  183. data/ext/ice/cpp/include/{Ice → generated/Ice}/ObjectAdapterF.h +40 -8
  184. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +142 -0
  185. data/ext/ice/cpp/include/generated/Ice/Plugin.h +197 -0
  186. data/ext/ice/cpp/include/{Ice → generated/Ice}/PluginF.h +43 -8
  187. data/ext/ice/cpp/include/generated/Ice/Process.h +536 -0
  188. data/ext/ice/cpp/include/{Ice → generated/Ice}/ProcessF.h +45 -10
  189. data/ext/ice/cpp/include/{Ice → generated/Ice}/Properties.h +88 -21
  190. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +749 -0
  191. data/ext/ice/cpp/include/{Ice → generated/Ice}/PropertiesF.h +48 -10
  192. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +1449 -0
  193. data/ext/ice/cpp/include/generated/Ice/Router.h +1032 -0
  194. data/ext/ice/cpp/include/{Ice → generated/Ice}/RouterF.h +45 -10
  195. data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocator.h +65 -13
  196. data/ext/ice/cpp/include/{Ice → generated/Ice}/ServantLocatorF.h +40 -8
  197. data/ext/ice/cpp/include/{Ice → generated/Ice}/SliceChecksumDict.h +23 -8
  198. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +169 -0
  199. data/ext/ice/cpp/include/generated/Ice/Version.h +334 -0
  200. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +172 -0
  201. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +98 -0
  202. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +156 -0
  203. data/ext/ice/cpp/src/Ice/ACM.cpp +18 -14
  204. data/ext/ice/cpp/src/Ice/ACM.h +9 -2
  205. data/ext/ice/cpp/{include → src}/Ice/ACMF.h +10 -5
  206. data/ext/ice/cpp/src/Ice/Acceptor.cpp +6 -1
  207. data/ext/ice/cpp/src/Ice/Acceptor.h +4 -3
  208. data/ext/ice/cpp/src/Ice/AcceptorF.h +1 -1
  209. data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.cpp +9 -9
  210. data/ext/ice/cpp/src/{IceUtil → Ice}/ArgVector.h +7 -7
  211. data/ext/ice/cpp/src/Ice/AsyncResult.cpp +15 -538
  212. data/ext/ice/cpp/src/Ice/Base64.cpp +11 -11
  213. data/ext/ice/cpp/src/Ice/Base64.h +1 -1
  214. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +40 -12
  215. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +15 -10
  216. data/ext/ice/cpp/src/Ice/Buffer.cpp +74 -12
  217. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +20 -6
  218. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +85 -190
  219. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +17 -18
  220. data/ext/ice/cpp/src/Ice/Communicator.cpp +39 -8
  221. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +27 -5
  222. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +271 -104
  223. data/ext/ice/cpp/src/Ice/CommunicatorI.h +84 -28
  224. data/ext/ice/cpp/src/{IceUtil → Ice}/Cond.cpp +3 -3
  225. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +58 -125
  226. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +11 -22
  227. data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +6 -2
  228. data/ext/ice/cpp/src/Ice/Connection.cpp +88 -8
  229. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +27 -5
  230. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +158 -80
  231. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +41 -23
  232. data/ext/ice/cpp/{include → src}/Ice/ConnectionFactoryF.h +8 -3
  233. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +707 -653
  234. data/ext/ice/cpp/src/Ice/ConnectionI.h +97 -69
  235. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +2 -15
  236. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +4 -3
  237. data/ext/ice/cpp/src/Ice/Connector.cpp +6 -1
  238. data/ext/ice/cpp/src/Ice/Connector.h +4 -3
  239. data/ext/ice/cpp/src/Ice/ConnectorF.h +1 -1
  240. data/ext/ice/cpp/src/{IceUtil → Ice}/CountDownLatch.cpp +4 -4
  241. data/ext/ice/cpp/src/Ice/Current.cpp +29 -6
  242. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +6 -5
  243. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +1 -1
  244. data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +1 -1
  245. data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +5 -25
  246. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +29 -19
  247. data/ext/ice/cpp/src/Ice/Endpoint.cpp +85 -6
  248. data/ext/ice/cpp/src/Ice/EndpointF.cpp +27 -5
  249. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +152 -1
  250. data/ext/ice/cpp/src/Ice/EndpointFactory.h +72 -6
  251. data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +1 -1
  252. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +35 -19
  253. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +10 -4
  254. data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +1 -1
  255. data/ext/ice/cpp/src/Ice/EndpointI.cpp +17 -1
  256. data/ext/ice/cpp/src/Ice/EndpointI.h +35 -9
  257. data/ext/ice/cpp/src/Ice/EndpointIF.h +18 -5
  258. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +18 -6
  259. data/ext/ice/cpp/src/Ice/EventHandler.cpp +6 -4
  260. data/ext/ice/cpp/src/Ice/EventHandler.h +13 -8
  261. data/ext/ice/cpp/src/Ice/EventHandlerF.h +5 -2
  262. data/ext/ice/cpp/src/Ice/Exception.cpp +95 -86
  263. data/ext/ice/cpp/src/Ice/FacetMap.cpp +20 -6
  264. data/ext/ice/cpp/src/Ice/FactoryTable.cpp +37 -28
  265. data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +2 -4
  266. data/ext/ice/cpp/src/Ice/GCObject.cpp +28 -25
  267. data/ext/ice/cpp/src/Ice/HashUtil.h +2 -3
  268. data/ext/ice/cpp/src/Ice/HttpParser.cpp +1 -2
  269. data/ext/ice/cpp/src/Ice/HttpParser.h +1 -1
  270. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +92 -53
  271. data/ext/ice/cpp/src/Ice/IPEndpointI.h +19 -10
  272. data/ext/ice/cpp/src/Ice/IPEndpointIF.h +6 -2
  273. data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +56 -0
  274. data/ext/ice/cpp/src/Ice/Identity.cpp +24 -10
  275. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +37 -6
  276. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +27 -5
  277. data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +14 -14
  278. data/ext/ice/cpp/src/Ice/ImplicitContextI.h +7 -5
  279. data/ext/ice/cpp/src/Ice/Incoming.cpp +276 -245
  280. data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +104 -209
  281. data/ext/ice/cpp/src/Ice/IncomingRequest.h +5 -4
  282. data/ext/ice/cpp/src/Ice/Initialize.cpp +299 -172
  283. data/ext/ice/cpp/src/Ice/InputStream.cpp +2773 -0
  284. data/ext/ice/cpp/src/Ice/Instance.cpp +191 -231
  285. data/ext/ice/cpp/src/Ice/Instance.h +30 -18
  286. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +106 -7
  287. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +27 -5
  288. data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +117 -99
  289. data/ext/ice/cpp/src/Ice/InstrumentationI.h +30 -31
  290. data/ext/ice/cpp/src/Ice/LocalException.cpp +1190 -416
  291. data/ext/ice/cpp/src/Ice/LocalObject.cpp +1 -2
  292. data/ext/ice/cpp/src/Ice/Locator.cpp +1167 -1215
  293. data/ext/ice/cpp/src/Ice/LocatorF.cpp +29 -6
  294. data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +129 -163
  295. data/ext/ice/cpp/src/Ice/LocatorInfo.h +29 -29
  296. data/ext/ice/cpp/src/Ice/LocatorInfoF.h +1 -1
  297. data/ext/ice/cpp/src/Ice/Logger.cpp +35 -5
  298. data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +178 -73
  299. data/ext/ice/cpp/src/Ice/LoggerAdminI.h +4 -4
  300. data/ext/ice/cpp/src/Ice/LoggerF.cpp +27 -5
  301. data/ext/ice/cpp/src/Ice/LoggerI.cpp +14 -44
  302. data/ext/ice/cpp/src/Ice/LoggerI.h +7 -13
  303. data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +10 -12
  304. data/ext/ice/cpp/src/Ice/Metrics.cpp +1059 -1069
  305. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +49 -19
  306. data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +1 -2
  307. data/ext/ice/cpp/src/Ice/Network.cpp +534 -170
  308. data/ext/ice/cpp/src/Ice/Network.h +100 -23
  309. data/ext/ice/cpp/src/Ice/NetworkF.h +2 -2
  310. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +21 -14
  311. data/ext/ice/cpp/src/Ice/NetworkProxy.h +5 -2
  312. data/ext/ice/cpp/src/Ice/NetworkProxyF.h +1 -1
  313. data/ext/ice/cpp/src/Ice/Object.cpp +217 -221
  314. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -6
  315. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +27 -5
  316. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +35 -14
  317. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +13 -7
  318. data/ext/ice/cpp/{include → src}/Ice/ObjectAdapterFactoryF.h +5 -1
  319. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +184 -58
  320. data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +32 -26
  321. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +37 -6
  322. data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +9 -32
  323. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +40 -18
  324. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +14 -5
  325. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +803 -365
  326. data/ext/ice/cpp/src/Ice/OutputStream.cpp +1399 -0
  327. data/ext/ice/cpp/src/Ice/Plugin.cpp +45 -6
  328. data/ext/ice/cpp/src/Ice/PluginF.cpp +27 -5
  329. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +13 -13
  330. data/ext/ice/cpp/src/Ice/PluginManagerI.h +5 -6
  331. data/ext/ice/cpp/src/Ice/Process.cpp +256 -114
  332. data/ext/ice/cpp/src/Ice/ProcessF.cpp +29 -6
  333. data/ext/ice/cpp/src/Ice/Properties.cpp +38 -8
  334. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +340 -328
  335. data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +81 -17
  336. data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +29 -5
  337. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +29 -6
  338. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +25 -26
  339. data/ext/ice/cpp/src/Ice/PropertiesI.h +8 -11
  340. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +107 -50
  341. data/ext/ice/cpp/src/Ice/PropertyNames.h +4 -2
  342. data/ext/ice/cpp/src/Ice/Protocol.cpp +2 -2
  343. data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +37 -2
  344. data/ext/ice/cpp/src/Ice/ProtocolInstance.h +9 -20
  345. data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +1 -1
  346. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +6 -1
  347. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +3 -1
  348. data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +1 -1
  349. data/ext/ice/cpp/src/Ice/Proxy.cpp +690 -964
  350. data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +23 -32
  351. data/ext/ice/cpp/src/Ice/ProxyFactory.h +16 -11
  352. data/ext/ice/cpp/src/Ice/Reference.cpp +75 -69
  353. data/ext/ice/cpp/src/Ice/Reference.h +27 -22
  354. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +18 -21
  355. data/ext/ice/cpp/src/Ice/ReferenceFactory.h +12 -12
  356. data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +1 -1
  357. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +18 -4
  358. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +1 -1
  359. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +672 -552
  360. data/ext/ice/cpp/src/Ice/ReplyStatus.h +1 -1
  361. data/ext/ice/cpp/src/Ice/RequestHandler.cpp +5 -3
  362. data/ext/ice/cpp/src/Ice/RequestHandler.h +10 -13
  363. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +10 -6
  364. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +2 -2
  365. data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +3 -6
  366. data/ext/ice/cpp/src/Ice/ResponseHandler.h +16 -7
  367. data/ext/ice/cpp/src/Ice/RetryQueue.cpp +6 -12
  368. data/ext/ice/cpp/src/Ice/RetryQueue.h +7 -6
  369. data/ext/ice/cpp/src/Ice/RetryQueueF.h +1 -1
  370. data/ext/ice/cpp/src/Ice/Router.cpp +523 -474
  371. data/ext/ice/cpp/src/Ice/RouterF.cpp +29 -6
  372. data/ext/ice/cpp/src/Ice/RouterInfo.cpp +91 -70
  373. data/ext/ice/cpp/src/Ice/RouterInfo.h +43 -32
  374. data/ext/ice/cpp/src/Ice/RouterInfoF.h +1 -1
  375. data/ext/ice/cpp/src/{IceUtil → Ice}/SHA1.cpp +21 -21
  376. data/ext/ice/cpp/src/Ice/Selector.cpp +989 -923
  377. data/ext/ice/cpp/src/Ice/Selector.h +100 -147
  378. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +37 -6
  379. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +27 -5
  380. data/ext/ice/cpp/src/Ice/ServantManager.cpp +9 -9
  381. data/ext/ice/cpp/src/Ice/ServantManager.h +1 -1
  382. data/ext/ice/cpp/src/Ice/SharedContext.h +2 -2
  383. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +20 -6
  384. data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +2 -2
  385. data/ext/ice/cpp/src/Ice/SlicedData.cpp +72 -20
  386. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +173 -18
  387. data/ext/ice/cpp/src/Ice/StreamSocket.h +13 -4
  388. data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +48 -17
  389. data/ext/ice/cpp/src/Ice/StringUtil.h +35 -0
  390. data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +8 -4
  391. data/ext/ice/cpp/src/Ice/SysLoggerI.h +2 -3
  392. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +158 -32
  393. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +12 -5
  394. data/ext/ice/cpp/src/Ice/TcpConnector.cpp +1 -7
  395. data/ext/ice/cpp/src/Ice/TcpConnector.h +1 -2
  396. data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +40 -32
  397. data/ext/ice/cpp/src/Ice/TcpEndpointI.h +11 -8
  398. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +12 -27
  399. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +7 -10
  400. data/ext/ice/cpp/src/{IceUtil → Ice}/Thread.cpp +24 -41
  401. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +175 -267
  402. data/ext/ice/cpp/src/Ice/ThreadPool.h +38 -43
  403. data/ext/ice/cpp/src/{IceUtil → Ice}/Timer.cpp +28 -21
  404. data/ext/ice/cpp/src/Ice/TraceLevels.cpp +2 -2
  405. data/ext/ice/cpp/src/Ice/TraceLevels.h +1 -1
  406. data/ext/ice/cpp/src/Ice/TraceLevelsF.h +2 -2
  407. data/ext/ice/cpp/src/Ice/TraceUtil.cpp +53 -31
  408. data/ext/ice/cpp/src/Ice/TraceUtil.h +13 -6
  409. data/ext/ice/cpp/src/Ice/Transceiver.cpp +1 -2
  410. data/ext/ice/cpp/src/Ice/Transceiver.h +8 -7
  411. data/ext/ice/cpp/src/Ice/TransceiverF.h +1 -1
  412. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +2 -8
  413. data/ext/ice/cpp/src/Ice/UdpConnector.h +1 -2
  414. data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +92 -31
  415. data/ext/ice/cpp/src/Ice/UdpEndpointI.h +12 -4
  416. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +150 -179
  417. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +15 -17
  418. data/ext/ice/cpp/src/Ice/Value.cpp +81 -0
  419. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +84 -0
  420. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +70 -0
  421. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +42 -0
  422. data/ext/ice/cpp/src/Ice/Version.cpp +24 -14
  423. data/ext/ice/cpp/src/Ice/VirtualShared.h +43 -0
  424. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +3 -9
  425. data/ext/ice/cpp/src/Ice/WSAcceptor.h +3 -7
  426. data/ext/ice/cpp/src/Ice/WSConnector.cpp +5 -11
  427. data/ext/ice/cpp/src/Ice/WSConnector.h +3 -6
  428. data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +185 -80
  429. data/ext/ice/cpp/src/Ice/WSEndpoint.h +21 -31
  430. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +41 -37
  431. data/ext/ice/cpp/src/Ice/WSTransceiver.h +7 -21
  432. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +526 -264
  433. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +341 -455
  434. data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +86 -26
  435. data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +59 -23
  436. data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +315 -61
  437. data/ext/ice/cpp/src/IceDiscovery/LookupI.h +83 -36
  438. data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +57 -59
  439. data/ext/ice/cpp/src/IceDiscovery/PluginI.h +3 -3
  440. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +396 -159
  441. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +251 -355
  442. data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +52 -0
  443. data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +526 -131
  444. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +19 -165
  445. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +8 -17
  446. data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +284 -0
  447. data/ext/ice/cpp/src/IceSSL/CertificateI.h +69 -0
  448. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +39 -11
  449. data/ext/ice/cpp/src/{Ice/ObjectFactoryF.cpp → IceSSL/ConnectionInfoF.cpp} +31 -9
  450. data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +14 -56
  451. data/ext/ice/cpp/src/IceSSL/ConnectorI.h +6 -13
  452. data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +205 -197
  453. data/ext/ice/cpp/src/IceSSL/EndpointI.h +41 -33
  454. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +39 -10
  455. data/ext/ice/cpp/src/IceSSL/Instance.cpp +1 -6
  456. data/ext/ice/cpp/src/IceSSL/Instance.h +7 -7
  457. data/ext/ice/cpp/src/IceSSL/InstanceF.h +11 -7
  458. data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +588 -0
  459. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +117 -152
  460. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +64 -0
  461. data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +32 -0
  462. data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +132 -0
  463. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +400 -89
  464. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +36 -21
  465. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +291 -0
  466. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +63 -0
  467. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +71 -41
  468. data/ext/ice/cpp/src/IceSSL/PluginI.h +13 -18
  469. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +9 -54
  470. data/ext/ice/cpp/src/IceSSL/RFC2253.h +7 -7
  471. data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +585 -0
  472. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +491 -75
  473. data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +126 -0
  474. data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +32 -0
  475. data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +78 -0
  476. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +126 -169
  477. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +19 -22
  478. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +79 -74
  479. data/ext/ice/cpp/src/IceSSL/SSLEngine.h +24 -187
  480. data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +4 -19
  481. data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +862 -0
  482. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +56 -214
  483. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +60 -0
  484. data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +31 -0
  485. data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +80 -0
  486. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +137 -144
  487. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +25 -28
  488. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +857 -0
  489. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +46 -0
  490. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +9 -13
  491. data/ext/ice/cpp/src/IceSSL/TrustManager.h +4 -4
  492. data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +3 -3
  493. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +271 -0
  494. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +343 -0
  495. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +46 -0
  496. data/ext/ice/cpp/{include/Ice/ObjectFactoryManagerF.h → src/IceSSL/UWPEngineF.h} +13 -8
  497. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +94 -0
  498. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +388 -0
  499. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +76 -0
  500. data/ext/ice/cpp/src/IceSSL/Util.cpp +66 -1256
  501. data/ext/ice/cpp/src/IceSSL/Util.h +48 -137
  502. data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +162 -0
  503. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +22 -22
  504. data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +34 -26
  505. data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +20 -31
  506. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +25 -116
  507. data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +1 -1
  508. data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +1 -1
  509. data/ext/ice/cpp/src/IceUtil/Options.cpp +23 -46
  510. data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +7 -6
  511. data/ext/ice/cpp/src/IceUtil/Random.cpp +13 -13
  512. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +3 -9
  513. data/ext/ice/cpp/src/IceUtil/Shared.cpp +8 -3
  514. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +501 -264
  515. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +540 -235
  516. data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +37 -74
  517. data/ext/ice/cpp/src/IceUtil/Time.cpp +1 -1
  518. data/ext/ice/cpp/src/IceUtil/UUID.cpp +10 -10
  519. data/ext/ice/cpp/src/IceUtil/Unicode.cpp +98 -97
  520. data/ext/ice/cpp/src/IceUtil/Unicode.h +21 -35
  521. data/ext/ice/cpp/src/IceUtil/UtilException.cpp +838 -0
  522. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +815 -163
  523. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +76 -0
  524. data/ext/ice/cpp/src/Slice/Checksum.cpp +2 -2
  525. data/ext/ice/cpp/{include → src}/Slice/Checksum.h +2 -2
  526. data/ext/ice/cpp/src/Slice/FileTracker.cpp +25 -78
  527. data/ext/ice/cpp/{include → src}/Slice/FileTracker.h +9 -9
  528. data/ext/ice/cpp/src/Slice/Grammar.cpp +1994 -1943
  529. data/ext/ice/cpp/src/Slice/Grammar.h +44 -24
  530. data/ext/ice/cpp/src/Slice/GrammarUtil.h +14 -14
  531. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +2658 -1927
  532. data/ext/ice/cpp/{include → src}/Slice/JavaUtil.h +178 -59
  533. data/ext/ice/cpp/src/Slice/MD5.cpp +1 -1
  534. data/ext/ice/cpp/src/Slice/MD5.h +1 -1
  535. data/ext/ice/cpp/src/Slice/MD5I.cpp +0 -1
  536. data/ext/ice/cpp/src/Slice/MD5I.h +1 -1
  537. data/ext/ice/cpp/src/Slice/PHPUtil.cpp +12 -15
  538. data/ext/ice/cpp/{include → src}/Slice/PHPUtil.h +6 -15
  539. data/ext/ice/cpp/src/Slice/Parser.cpp +802 -307
  540. data/ext/ice/cpp/{include → src}/Slice/Parser.h +76 -84
  541. data/ext/ice/cpp/src/Slice/Preprocessor.cpp +43 -21
  542. data/ext/ice/cpp/{include → src}/Slice/Preprocessor.h +7 -12
  543. data/ext/ice/cpp/src/Slice/Python.cpp +207 -86
  544. data/ext/ice/cpp/src/Slice/PythonUtil.cpp +683 -679
  545. data/ext/ice/cpp/{include → src}/Slice/PythonUtil.h +19 -8
  546. data/ext/ice/cpp/src/Slice/Ruby.cpp +38 -34
  547. data/ext/ice/cpp/src/Slice/RubyUtil.cpp +177 -445
  548. data/ext/ice/cpp/{include → src}/Slice/RubyUtil.h +6 -6
  549. data/ext/ice/cpp/src/Slice/Scanner.cpp +218 -306
  550. data/ext/ice/cpp/src/Slice/{Util.cpp → SliceUtil.cpp} +37 -64
  551. data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +374 -0
  552. data/ext/ice/cpp/src/Slice/Util.h +54 -0
  553. data/ext/ice/mcpp/Makefile +5 -2
  554. data/ice.gemspec +2 -7
  555. data/lib/Glacier2.rb +1 -1
  556. data/lib/Glacier2/Metrics.rb +7 -46
  557. data/lib/Glacier2/PermissionsVerifier.rb +24 -95
  558. data/lib/Glacier2/PermissionsVerifierF.rb +3 -3
  559. data/lib/Glacier2/Router.rb +32 -74
  560. data/lib/Glacier2/RouterF.rb +3 -3
  561. data/lib/Glacier2/SSLInfo.rb +4 -7
  562. data/lib/Glacier2/Session.rb +88 -307
  563. data/lib/Ice.rb +83 -52
  564. data/lib/Ice/BuiltinSequences.rb +4 -4
  565. data/lib/Ice/Communicator.rb +56 -58
  566. data/lib/Ice/CommunicatorF.rb +3 -3
  567. data/lib/Ice/Connection.rb +153 -162
  568. data/lib/Ice/ConnectionF.rb +3 -3
  569. data/lib/Ice/Current.rb +4 -11
  570. data/lib/Ice/Endpoint.rb +57 -133
  571. data/lib/Ice/EndpointF.rb +3 -3
  572. data/lib/Ice/EndpointTypes.rb +3 -7
  573. data/lib/Ice/FacetMap.rb +4 -4
  574. data/lib/Ice/Identity.rb +5 -8
  575. data/lib/Ice/ImplicitContext.rb +5 -34
  576. data/lib/Ice/ImplicitContextF.rb +3 -3
  577. data/lib/Ice/Instrumentation.rb +23 -275
  578. data/lib/Ice/InstrumentationF.rb +3 -3
  579. data/lib/Ice/LocalException.rb +95 -141
  580. data/lib/Ice/Locator.rb +51 -165
  581. data/lib/Ice/LocatorF.rb +3 -3
  582. data/lib/Ice/Logger.rb +5 -34
  583. data/lib/Ice/LoggerF.rb +3 -3
  584. data/lib/Ice/Metrics.rb +61 -416
  585. data/lib/Ice/ObjectAdapter.rb +34 -0
  586. data/lib/Ice/ObjectAdapterF.rb +3 -3
  587. data/lib/Ice/ObjectFactory.rb +5 -30
  588. data/lib/Ice/Plugin.rb +7 -60
  589. data/lib/Ice/PluginF.rb +3 -3
  590. data/lib/Ice/Process.rb +16 -52
  591. data/lib/Ice/ProcessF.rb +3 -3
  592. data/lib/Ice/Properties.rb +5 -41
  593. data/lib/Ice/PropertiesAdmin.rb +19 -56
  594. data/lib/Ice/PropertiesF.rb +3 -3
  595. data/lib/Ice/RemoteLogger.rb +34 -115
  596. data/lib/Ice/Router.rb +29 -101
  597. data/lib/Ice/RouterF.rb +3 -3
  598. data/lib/Ice/ServantLocator.rb +31 -0
  599. data/lib/Ice/{ObjectFactoryF.rb → ServantLocatorF.rb} +6 -6
  600. data/lib/Ice/SliceChecksumDict.rb +3 -3
  601. data/lib/Ice/ValueFactory.rb +33 -0
  602. data/lib/Ice/Version.rb +5 -11
  603. data/lib/IceBox.rb +1 -1
  604. data/lib/IceBox/IceBox.rb +44 -148
  605. data/lib/IceGrid.rb +1 -4
  606. data/lib/IceGrid/Admin.rb +551 -427
  607. data/lib/IceGrid/Descriptor.rb +62 -529
  608. data/lib/IceGrid/Exception.rb +24 -45
  609. data/lib/IceGrid/FileParser.rb +14 -50
  610. data/lib/IceGrid/PluginFacade.rb +40 -0
  611. data/lib/IceGrid/Registry.rb +151 -58
  612. data/lib/IceGrid/Session.rb +25 -64
  613. data/lib/IceGrid/UserAccountMapper.rb +14 -50
  614. data/lib/IcePatch2.rb +1 -1
  615. data/lib/IcePatch2/FileInfo.rb +5 -11
  616. data/lib/IcePatch2/FileServer.rb +33 -76
  617. data/lib/IceStorm.rb +1 -1
  618. data/lib/IceStorm/IceStorm.rb +79 -206
  619. data/lib/IceStorm/Metrics.rb +11 -89
  620. data/slice/Glacier2/Metrics.ice +8 -4
  621. data/slice/Glacier2/PermissionsVerifier.ice +10 -7
  622. data/slice/Glacier2/PermissionsVerifierF.ice +7 -4
  623. data/slice/Glacier2/Router.ice +10 -8
  624. data/slice/Glacier2/RouterF.ice +7 -4
  625. data/slice/Glacier2/SSLInfo.ice +8 -5
  626. data/slice/Glacier2/Session.ice +15 -13
  627. data/slice/Ice/BuiltinSequences.ice +7 -4
  628. data/slice/Ice/Communicator.ice +141 -66
  629. data/slice/Ice/CommunicatorF.ice +7 -4
  630. data/slice/Ice/Connection.ice +183 -86
  631. data/slice/Ice/ConnectionF.ice +7 -4
  632. data/slice/Ice/Current.ice +13 -9
  633. data/slice/Ice/Endpoint.ice +63 -14
  634. data/slice/Ice/EndpointF.ice +7 -4
  635. data/slice/Ice/EndpointTypes.ice +8 -6
  636. data/slice/Ice/FacetMap.ice +7 -4
  637. data/slice/Ice/Identity.ice +13 -5
  638. data/slice/Ice/ImplicitContext.ice +20 -18
  639. data/slice/Ice/ImplicitContextF.ice +7 -4
  640. data/slice/Ice/Instrumentation.ice +20 -19
  641. data/slice/Ice/InstrumentationF.ice +8 -5
  642. data/slice/Ice/LocalException.ice +87 -87
  643. data/slice/Ice/Locator.ice +19 -18
  644. data/slice/Ice/LocatorF.ice +7 -4
  645. data/slice/Ice/Logger.ice +9 -7
  646. data/slice/Ice/LoggerF.ice +7 -4
  647. data/slice/Ice/Metrics.ice +18 -14
  648. data/slice/Ice/ObjectAdapter.ice +30 -13
  649. data/slice/Ice/ObjectAdapterF.ice +7 -4
  650. data/slice/Ice/ObjectFactory.ice +15 -12
  651. data/slice/Ice/Plugin.ice +9 -6
  652. data/slice/Ice/PluginF.ice +8 -5
  653. data/slice/Ice/Process.ice +9 -6
  654. data/slice/Ice/ProcessF.ice +7 -4
  655. data/slice/Ice/Properties.ice +15 -12
  656. data/slice/Ice/PropertiesAdmin.ice +9 -5
  657. data/slice/Ice/PropertiesF.ice +7 -4
  658. data/slice/Ice/RemoteLogger.ice +33 -24
  659. data/slice/Ice/Router.ice +16 -7
  660. data/slice/Ice/RouterF.ice +7 -4
  661. data/slice/Ice/ServantLocator.ice +13 -10
  662. data/slice/Ice/ServantLocatorF.ice +7 -4
  663. data/slice/Ice/SliceChecksumDict.ice +7 -4
  664. data/slice/Ice/ValueFactory.ice +127 -0
  665. data/slice/Ice/Version.ice +9 -5
  666. data/slice/IceBT/ConnectionInfo.ice +53 -0
  667. data/slice/IceBT/EndpointInfo.ice +51 -0
  668. data/slice/IceBT/Types.ice +39 -0
  669. data/slice/IceBox/IceBox.ice +20 -21
  670. data/slice/IceDiscovery/IceDiscovery.ice +9 -5
  671. data/slice/IceGrid/Admin.ice +390 -30
  672. data/slice/IceGrid/Descriptor.ice +37 -29
  673. data/slice/IceGrid/Exception.ice +33 -27
  674. data/slice/IceGrid/FileParser.ice +9 -6
  675. data/slice/IceGrid/PluginFacade.ice +11 -9
  676. data/slice/IceGrid/Registry.ice +139 -16
  677. data/slice/IceGrid/Session.ice +10 -8
  678. data/slice/IceGrid/UserAccountMapper.ice +9 -6
  679. data/slice/IceIAP/ConnectionInfo.ice +70 -0
  680. data/slice/IceIAP/EndpointInfo.ice +64 -0
  681. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +9 -7
  682. data/slice/IcePatch2/FileInfo.ice +9 -8
  683. data/slice/IcePatch2/FileServer.ice +17 -13
  684. data/slice/IceSSL/ConnectionInfo.ice +14 -17
  685. data/slice/IceSSL/ConnectionInfoF.ice +24 -0
  686. data/slice/IceSSL/EndpointInfo.ice +9 -30
  687. data/slice/IceStorm/IceStorm.ice +22 -18
  688. data/slice/IceStorm/Metrics.ice +9 -5
  689. metadata +154 -120
  690. data/ext/ObjectFactory.cpp +0 -140
  691. data/ext/ObjectFactory.h +0 -50
  692. data/ext/ice/cpp/include/Ice/BasicStream.h +0 -1335
  693. data/ext/ice/cpp/include/Ice/Communicator.h +0 -200
  694. data/ext/ice/cpp/include/Ice/Connection.h +0 -497
  695. data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +0 -62
  696. data/ext/ice/cpp/include/Ice/Endpoint.h +0 -341
  697. data/ext/ice/cpp/include/Ice/Identity.h +0 -168
  698. data/ext/ice/cpp/include/Ice/Instrumentation.h +0 -365
  699. data/ext/ice/cpp/include/Ice/LocalException.h +0 -1030
  700. data/ext/ice/cpp/include/Ice/Locator.h +0 -2193
  701. data/ext/ice/cpp/include/Ice/Metrics.h +0 -2974
  702. data/ext/ice/cpp/include/Ice/ObjectAdapter.h +0 -168
  703. data/ext/ice/cpp/include/Ice/ObjectFactory.h +0 -92
  704. data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +0 -66
  705. data/ext/ice/cpp/include/Ice/Outgoing.h +0 -225
  706. data/ext/ice/cpp/include/Ice/Plugin.h +0 -125
  707. data/ext/ice/cpp/include/Ice/Process.h +0 -574
  708. data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +0 -830
  709. data/ext/ice/cpp/include/Ice/RemoteLogger.h +0 -1500
  710. data/ext/ice/cpp/include/Ice/Router.h +0 -1159
  711. data/ext/ice/cpp/include/Ice/Stream.h +0 -447
  712. data/ext/ice/cpp/include/Ice/StreamF.h +0 -30
  713. data/ext/ice/cpp/include/Ice/Version.h +0 -262
  714. data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +0 -158
  715. data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +0 -142
  716. data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +0 -119
  717. data/ext/ice/cpp/include/IceUtil/Cache.h +0 -362
  718. data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +0 -65
  719. data/ext/ice/cpp/include/Slice/CsUtil.h +0 -92
  720. data/ext/ice/cpp/include/Slice/DotNetNames.h +0 -34
  721. data/ext/ice/cpp/include/Slice/ObjCUtil.h +0 -127
  722. data/ext/ice/cpp/include/Slice/Util.h +0 -56
  723. data/ext/ice/cpp/src/Ice/BasicStream.cpp +0 -3428
  724. data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +0 -62
  725. data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +0 -139
  726. data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +0 -43
  727. data/ext/ice/cpp/src/Ice/Outgoing.cpp +0 -694
  728. data/ext/ice/cpp/src/Ice/Stream.cpp +0 -53
  729. data/ext/ice/cpp/src/Ice/StreamI.cpp +0 -832
  730. data/ext/ice/cpp/src/Ice/StreamI.h +0 -198
  731. data/ext/ice/cpp/src/IceSSL/Certificate.cpp +0 -1336
  732. data/ext/ice/cpp/src/IceUtil/Exception.cpp +0 -792
  733. data/ext/ice/cpp/src/IceUtil/FileUtil.h +0 -185
  734. data/ext/ice/cpp/src/Slice/CsUtil.cpp +0 -2660
  735. data/ext/ice/cpp/src/Slice/DotNetNames.cpp +0 -146
  736. data/ext/ice/cpp/src/Slice/ObjCUtil.cpp +0 -1310
  737. data/lib/IceGrid/Locator.rb +0 -106
  738. data/lib/IceGrid/Observer.rb +0 -572
  739. data/lib/IceGrid/Query.rb +0 -169
  740. data/slice/Freeze/BackgroundSaveEvictor.ice +0 -111
  741. data/slice/Freeze/CatalogData.ice +0 -49
  742. data/slice/Freeze/Connection.ice +0 -121
  743. data/slice/Freeze/DB.ice +0 -37
  744. data/slice/Freeze/Evictor.ice +0 -346
  745. data/slice/Freeze/EvictorF.ice +0 -22
  746. data/slice/Freeze/EvictorStorage.ice +0 -72
  747. data/slice/Freeze/Exception.ice +0 -100
  748. data/slice/Freeze/Transaction.ice +0 -58
  749. data/slice/Freeze/TransactionalEvictor.ice +0 -50
  750. data/slice/IceGrid/Locator.ice +0 -57
  751. data/slice/IceGrid/Observer.ice +0 -395
  752. data/slice/IceGrid/Query.ice +0 -131
@@ -1,6 +1,6 @@
1
1
  // **********************************************************************
2
2
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
3
+ // Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
4
4
  //
5
5
  // This copy of Ice is licensed to you under the terms described in the
6
6
  // ICE_LICENSE file included in this distribution.
@@ -72,9 +72,6 @@ enum ProtocolSupport
72
72
  EnableBoth
73
73
  };
74
74
 
75
- // Forward declaration
76
- class BasicStream;
77
-
78
75
  ICE_API void stringToMajorMinor(const ::std::string&, Ice::Byte&, Ice::Byte&);
79
76
 
80
77
  template<typename T> std::string
@@ -99,11 +96,21 @@ isSupported(const T& version, const T& supported)
99
96
  return version.major == supported.major && version.minor <= supported.minor;
100
97
  }
101
98
 
102
- ICE_API void throwUnsupportedProtocolException(const char*, int, const Ice::ProtocolVersion&,
99
+ ICE_API void throwUnsupportedProtocolException(const char*, int, const Ice::ProtocolVersion&,
103
100
  const Ice::ProtocolVersion&);
104
- ICE_API void throwUnsupportedEncodingException(const char*, int, const Ice::EncodingVersion&,
101
+ ICE_API void throwUnsupportedEncodingException(const char*, int, const Ice::EncodingVersion&,
105
102
  const Ice::EncodingVersion&);
106
103
 
104
+ const ::Ice::Byte OPTIONAL_END_MARKER = 0xFF;
105
+
106
+ const ::Ice::Byte FLAG_HAS_TYPE_ID_STRING = (1<<0);
107
+ const ::Ice::Byte FLAG_HAS_TYPE_ID_INDEX = (1<<1);
108
+ const ::Ice::Byte FLAG_HAS_TYPE_ID_COMPACT = (1<<0) | (1<<1);
109
+ const ::Ice::Byte FLAG_HAS_OPTIONAL_MEMBERS = (1<<2);
110
+ const ::Ice::Byte FLAG_HAS_INDIRECTION_TABLE = (1<<3);
111
+ const ::Ice::Byte FLAG_HAS_SLICE_SIZE = (1<<4);
112
+ const ::Ice::Byte FLAG_IS_LAST_SLICE = (1<<5);
113
+
107
114
  }
108
115
 
109
116
  namespace Ice
@@ -119,25 +126,25 @@ ICE_API extern const EncodingVersion currentProtocolEncoding;
119
126
 
120
127
  ICE_API extern const EncodingVersion currentEncoding;
121
128
 
122
- inline ::std::string
129
+ inline ::std::string
123
130
  protocolVersionToString(const Ice::ProtocolVersion& v)
124
131
  {
125
132
  return IceInternal::versionToString<ProtocolVersion>(v);
126
133
  }
127
134
 
128
- inline ::Ice::ProtocolVersion
135
+ inline ::Ice::ProtocolVersion
129
136
  stringToProtocolVersion(const ::std::string& v)
130
137
  {
131
138
  return IceInternal::stringToVersion<ProtocolVersion>(v);
132
139
  }
133
140
 
134
- inline ::std::string
141
+ inline ::std::string
135
142
  encodingVersionToString(const Ice::EncodingVersion& v)
136
143
  {
137
144
  return IceInternal::versionToString<EncodingVersion>(v);
138
145
  }
139
146
 
140
- inline ::Ice::EncodingVersion
147
+ inline ::Ice::EncodingVersion
141
148
  stringToEncodingVersion(const ::std::string& v)
142
149
  {
143
150
  return IceInternal::stringToVersion<EncodingVersion>(v);
@@ -208,7 +215,7 @@ getCompatibleProtocol(const Ice::ProtocolVersion& v)
208
215
  // Unsupported but compatible, use the currently supported
209
216
  // protocol, that's the best we can do.
210
217
  //
211
- return Ice::currentProtocol;
218
+ return Ice::currentProtocol;
212
219
  }
213
220
  }
214
221
 
@@ -233,7 +240,7 @@ getCompatibleEncoding(const Ice::EncodingVersion& v)
233
240
  // Unsupported but compatible, use the currently supported
234
241
  // encoding, that's the best we can do.
235
242
  //
236
- return Ice::currentEncoding;
243
+ return Ice::currentEncoding;
237
244
  }
238
245
  }
239
246
 
@@ -1,6 +1,6 @@
1
1
  // **********************************************************************
2
2
  //
3
- // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
3
+ // Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
4
4
  //
5
5
  // This copy of Ice is licensed to you under the terms described in the
6
6
  // ICE_LICENSE file included in this distribution.
@@ -18,119 +18,993 @@
18
18
  #include <Ice/RequestHandlerF.h>
19
19
  #include <Ice/EndpointF.h>
20
20
  #include <Ice/EndpointTypes.h>
21
- #include <Ice/ObjectF.h>
21
+ #include <Ice/Object.h>
22
22
  #include <Ice/ObjectAdapterF.h>
23
23
  #include <Ice/ReferenceF.h>
24
24
  #include <Ice/BatchRequestQueueF.h>
25
25
  #include <Ice/AsyncResult.h>
26
26
  //#include <Ice/RouterF.h> // Can't include RouterF.h here, otherwise we have cyclic includes
27
- //#include <Ice/LocatorF.h> // Can't include RouterF.h here, otherwise we have cyclic includes
27
+ //#include <Ice/LocatorF.h> // Can't include LocatorF.h here, otherwise we have cyclic includes
28
28
  #include <Ice/Current.h>
29
- #include <Ice/StreamF.h>
30
29
  #include <Ice/CommunicatorF.h>
31
- #include <Ice/ObserverHelper.h>
30
+ #include <Ice/OutgoingAsync.h>
31
+ #include <Ice/LocalException.h>
32
32
  #include <iosfwd>
33
33
 
34
+ namespace Ice
35
+ {
36
+
37
+ ICE_API extern const Context noExplicitContext;
38
+
39
+ }
40
+
41
+ #if defined(_MSC_VER) && (_MSC_VER <= 1600)
42
+ //
43
+ // COMPILERFIX VC90 and VC100 get confused with namespaces and complains that
44
+ // ::Ice::noExplicitContext isn't defined in IceProxy namespace.
45
+ //
34
46
  namespace IceProxy
35
47
  {
36
48
 
37
49
  namespace Ice
38
50
  {
39
51
 
40
- class Locator;
41
- ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Locator*);
52
+ ICE_API extern const ::Ice::Context noExplicitContext;
42
53
 
43
- class Router;
44
- ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Router*);
54
+ }
45
55
 
46
56
  }
57
+ #endif
58
+
59
+ namespace IceInternal
60
+ {
61
+
62
+ //
63
+ // Class for handling the proxy's begin_ice_flushBatchRequest request.
64
+ //
65
+ class ICE_API ProxyFlushBatchAsync : public ProxyOutgoingAsyncBase
66
+ {
67
+ public:
68
+
69
+ ProxyFlushBatchAsync(const Ice::ObjectPrxPtr&);
70
+
71
+ virtual AsyncStatus invokeRemote(const Ice::ConnectionIPtr&, bool, bool);
72
+ virtual AsyncStatus invokeCollocated(CollocatedRequestHandler*);
73
+
74
+ void invoke(const std::string&);
75
+
76
+ private:
77
+
78
+ int _batchRequestNum;
79
+ };
80
+ typedef IceUtil::Handle<ProxyFlushBatchAsync> ProxyFlushBatchAsyncPtr;
81
+
82
+ //
83
+ // Class for handling the proxy's begin_ice_getConnection request.
84
+ //
85
+ class ICE_API ProxyGetConnection : public ProxyOutgoingAsyncBase
86
+ {
87
+ public:
88
+
89
+ ProxyGetConnection(const Ice::ObjectPrxPtr&);
90
+
91
+ virtual AsyncStatus invokeRemote(const Ice::ConnectionIPtr&, bool, bool);
92
+ virtual AsyncStatus invokeCollocated(CollocatedRequestHandler*);
93
+
94
+ virtual Ice::ConnectionPtr getConnection() const;
95
+
96
+ void invoke(const std::string&);
97
+ };
98
+ typedef IceUtil::Handle<ProxyGetConnection> ProxyGetConnectionPtr;
47
99
 
48
100
  }
49
101
 
102
+ #ifdef ICE_CPP11_MAPPING // C++11 mapping
103
+
50
104
  namespace IceInternal
51
105
  {
52
106
 
53
- class Outgoing;
107
+ template<typename P>
108
+ ::std::shared_ptr<P> createProxy()
109
+ {
110
+ return ::std::shared_ptr<P>(new P());
111
+ }
112
+
113
+ inline ::std::pair<const Ice::Byte*, const Ice::Byte*>
114
+ makePair(const Ice::ByteSeq& seq)
115
+ {
116
+ if(seq.empty())
117
+ {
118
+ return { nullptr, nullptr };
119
+ }
120
+ else
121
+ {
122
+ return { seq.data(), seq.data() + seq.size() };
123
+ }
124
+ }
125
+
126
+ template<typename R>
127
+ class InvokeOutgoingAsyncT : public OutgoingAsync
128
+ {
129
+ public:
130
+
131
+ using OutgoingAsync::OutgoingAsync;
132
+
133
+ void
134
+ invoke(const std::string& operation,
135
+ Ice::OperationMode mode,
136
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
137
+ const Ice::Context& context)
138
+ {
139
+ _read = [](bool ok, Ice::InputStream* stream)
140
+ {
141
+ const ::Ice::Byte* encaps;
142
+ ::Ice::Int sz;
143
+ stream->readEncapsulation(encaps, sz);
144
+ return R { ok, { encaps, encaps + sz } };
145
+ };
146
+
147
+ try
148
+ {
149
+ prepare(operation, mode, context);
150
+ if(inParams.first == inParams.second)
151
+ {
152
+ _os.writeEmptyEncapsulation(_encoding);
153
+ }
154
+ else
155
+ {
156
+ _os.writeEncapsulation(inParams.first, static_cast<Ice::Int>(inParams.second - inParams.first));
157
+ }
158
+ OutgoingAsync::invoke(operation);
159
+ }
160
+ catch(const Ice::Exception& ex)
161
+ {
162
+ abort(ex);
163
+ }
164
+ }
165
+
166
+ protected:
167
+
168
+ std::function<R(bool, Ice::InputStream*)> _read;
169
+ };
170
+
171
+ template<typename R>
172
+ class InvokeLambdaOutgoing : public InvokeOutgoingAsyncT<R>, public LambdaInvoke
173
+ {
174
+ public:
175
+
176
+ InvokeLambdaOutgoing(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
177
+ ::std::function<void(R)> response,
178
+ ::std::function<void(::std::exception_ptr)> ex,
179
+ ::std::function<void(bool)> sent) :
180
+ InvokeOutgoingAsyncT<R>(proxy, false), LambdaInvoke(::std::move(ex), ::std::move(sent))
181
+ {
182
+ if(response)
183
+ {
184
+ _response = [this, response](bool ok)
185
+ {
186
+ if(this->_is.b.empty())
187
+ {
188
+ response(R { ok, { 0, 0 }});
189
+ }
190
+ else
191
+ {
192
+ response(this->_read(ok, &this->_is));
193
+ }
194
+ };
195
+ }
196
+ }
197
+ };
198
+
199
+ template<typename P, typename R>
200
+ class InvokePromiseOutgoing : public InvokeOutgoingAsyncT<R>, public PromiseInvoke<P>
201
+ {
202
+ public:
203
+
204
+ InvokePromiseOutgoing(const std::shared_ptr<Ice::ObjectPrx>& proxy, bool synchronous) :
205
+ InvokeOutgoingAsyncT<R>(proxy, false)
206
+ {
207
+ this->_synchronous = synchronous;
208
+ this->_response = [this](bool ok)
209
+ {
210
+ if(this->_is.b.empty())
211
+ {
212
+ this->_promise.set_value(R { ok, { 0, 0 }});
213
+ }
214
+ else
215
+ {
216
+ this->_promise.set_value(this->_read(ok, &this->_is));
217
+ }
218
+ };
219
+ }
220
+
221
+ virtual bool handleSent(bool done, bool) override
222
+ {
223
+ if(done)
224
+ {
225
+ this->_promise.set_value(R { true, { 0, 0 }});
226
+ }
227
+ return false;
228
+ }
229
+ };
230
+
231
+ class ProxyGetConnectionLambda : public ProxyGetConnection, public LambdaInvoke
232
+ {
233
+ public:
234
+
235
+ ProxyGetConnectionLambda(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
236
+ ::std::function<void(::std::shared_ptr<Ice::Connection>)> response,
237
+ ::std::function<void(::std::exception_ptr)> ex,
238
+ ::std::function<void(bool)> sent) :
239
+ ProxyGetConnection(proxy), LambdaInvoke(::std::move(ex), ::std::move(sent))
240
+ {
241
+ _response = [&, response](bool)
242
+ {
243
+ response(getConnection());
244
+ };
245
+ }
246
+ };
247
+
248
+ template<typename P>
249
+ class ProxyGetConnectionPromise : public ProxyGetConnection, public PromiseInvoke<P>
250
+ {
251
+ public:
252
+
253
+ ProxyGetConnectionPromise(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy) : ProxyGetConnection(proxy)
254
+ {
255
+ this->_response = [&](bool)
256
+ {
257
+ this->_promise.set_value(getConnection());
258
+ };
259
+ }
260
+ };
261
+
262
+ class ProxyFlushBatchLambda : public ProxyFlushBatchAsync, public LambdaInvoke
263
+ {
264
+ public:
265
+
266
+ ProxyFlushBatchLambda(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
267
+ ::std::function<void(::std::exception_ptr)> ex,
268
+ ::std::function<void(bool)> sent) :
269
+ ProxyFlushBatchAsync(proxy), LambdaInvoke(::std::move(ex), ::std::move(sent))
270
+ {
271
+ }
272
+ };
273
+
274
+ template<typename P>
275
+ class ProxyFlushBatchPromise : public ProxyFlushBatchAsync, public PromiseInvoke<P>
276
+ {
277
+ public:
278
+
279
+ using ProxyFlushBatchAsync::ProxyFlushBatchAsync;
280
+
281
+ virtual bool handleSent(bool, bool) override
282
+ {
283
+ this->_promise.set_value();
284
+ return false;
285
+ }
286
+ };
54
287
 
55
288
  }
56
289
 
57
290
  namespace Ice
58
291
  {
59
292
 
60
- typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Router> RouterPrx;
61
- typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Locator> LocatorPrx;
293
+ class RouterPrx;
294
+ using RouterPrxPtr = ::std::shared_ptr<::Ice::RouterPrx>;
295
+
296
+ class LocatorPrx;
297
+ using LocatorPrxPtr = ::std::shared_ptr<::Ice::LocatorPrx>;
62
298
 
63
299
  class LocalException;
300
+ class OutputStream;
64
301
 
65
- ICE_API void ice_writeObjectPrx(const ::Ice::OutputStreamPtr&, const ObjectPrx&);
66
- ICE_API void ice_readObjectPrx(const ::Ice::InputStreamPtr&, ObjectPrx&);
302
+ class ICE_API ObjectPrx : public ::std::enable_shared_from_this<ObjectPrx>
303
+ {
304
+ public:
67
305
 
68
- class Callback_Object_ice_isA_Base : virtual public ::IceInternal::CallbackBase { };
69
- typedef ::IceUtil::Handle< Callback_Object_ice_isA_Base> Callback_Object_ice_isAPtr;
306
+ virtual ~ObjectPrx() = default;
70
307
 
71
- class Callback_Object_ice_ping_Base : virtual public ::IceInternal::CallbackBase { };
72
- typedef ::IceUtil::Handle< Callback_Object_ice_ping_Base> Callback_Object_ice_pingPtr;
308
+ friend ICE_API bool operator<(const ObjectPrx&, const ObjectPrx&);
309
+ friend ICE_API bool operator==(const ObjectPrx&, const ObjectPrx&);
73
310
 
74
- class Callback_Object_ice_ids_Base : virtual public ::IceInternal::CallbackBase { };
75
- typedef ::IceUtil::Handle< Callback_Object_ice_ids_Base> Callback_Object_ice_idsPtr;
311
+ ::std::shared_ptr<::Ice::Communicator> ice_getCommunicator() const;
76
312
 
77
- class Callback_Object_ice_id_Base : virtual public ::IceInternal::CallbackBase { };
78
- typedef ::IceUtil::Handle< Callback_Object_ice_id_Base> Callback_Object_ice_idPtr;
313
+ ::std::string ice_toString() const;
79
314
 
80
- class Callback_Object_ice_invoke_Base : virtual public ::IceInternal::CallbackBase { };
81
- typedef ::IceUtil::Handle< Callback_Object_ice_invoke_Base> Callback_Object_ice_invokePtr;
315
+ bool
316
+ ice_isA(const ::std::string& typeId, const ::Ice::Context& context = ::Ice::noExplicitContext)
317
+ {
318
+ return _makePromiseOutgoing<bool>(true, this, &ObjectPrx::_iceI_isA, typeId, context).get();
319
+ }
82
320
 
83
- class Callback_Object_ice_flushBatchRequests_Base : virtual public ::IceInternal::CallbackBase { };
84
- typedef ::IceUtil::Handle< Callback_Object_ice_flushBatchRequests_Base> Callback_Object_ice_flushBatchRequestsPtr;
321
+ ::std::function<void()>
322
+ ice_isAAsync(const ::std::string& typeId,
323
+ ::std::function<void(bool)> response,
324
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
325
+ ::std::function<void(bool)> sent = nullptr,
326
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
327
+ {
328
+ return _makeLamdaOutgoing<bool>(response, ex, sent, this, &ObjectPrx::_iceI_isA, typeId, context);
329
+ }
85
330
 
86
- class Callback_Object_ice_getConnection_Base : virtual public ::IceInternal::CallbackBase { };
87
- typedef ::IceUtil::Handle< Callback_Object_ice_getConnection_Base> Callback_Object_ice_getConnectionPtr;
331
+ template<template<typename> class P = std::promise> auto
332
+ ice_isAAsync(const ::std::string& typeId, const ::Ice::Context& context = ::Ice::noExplicitContext)
333
+ -> decltype(std::declval<P<bool>>().get_future())
334
+ {
335
+ return _makePromiseOutgoing<bool, P>(false, this, &ObjectPrx::_iceI_isA, typeId, context);
336
+ }
337
+
338
+ void
339
+ _iceI_isA(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>&, const ::std::string&, const ::Ice::Context&);
340
+
341
+ void
342
+ ice_ping(const ::Ice::Context& context = ::Ice::noExplicitContext)
343
+ {
344
+ _makePromiseOutgoing<void>(true, this, &ObjectPrx::_iceI_ping, context).get();
345
+ }
346
+
347
+ ::std::function<void()>
348
+ ice_pingAsync(::std::function<void()> response,
349
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
350
+ ::std::function<void(bool)> sent = nullptr,
351
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
352
+ {
353
+ return _makeLamdaOutgoing<void>(response, ex, sent, this, &ObjectPrx::_iceI_ping, context);
354
+ }
355
+
356
+ template<template<typename> class P = std::promise>
357
+ auto ice_pingAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
358
+ -> decltype(std::declval<P<void>>().get_future())
359
+ {
360
+ return _makePromiseOutgoing<void, P>(false, this, &ObjectPrx::_iceI_ping, context);
361
+ }
362
+
363
+ void
364
+ _iceI_ping(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Context&);
365
+
366
+ ::std::vector<::std::string>
367
+ ice_ids(const ::Ice::Context& context = ::Ice::noExplicitContext)
368
+ {
369
+ return _makePromiseOutgoing<::std::vector<::std::string>>(true, this, &ObjectPrx::_iceI_ids, context).get();
370
+ }
371
+
372
+ ::std::function<void()>
373
+ ice_idsAsync(::std::function<void(::std::vector<::std::string>)> response,
374
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
375
+ ::std::function<void(bool)> sent = nullptr,
376
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
377
+ {
378
+ return _makeLamdaOutgoing<::std::vector<::std::string>>(response, ex, sent, this, &ObjectPrx::_iceI_ids, context);
379
+ }
380
+
381
+ template<template<typename> class P = std::promise> auto
382
+ ice_idsAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
383
+ -> decltype(std::declval<P<::std::vector<::std::string>>>().get_future())
384
+ {
385
+ return _makePromiseOutgoing<::std::vector<::std::string>, P>(false, this, &ObjectPrx::_iceI_ids, context);
386
+ }
387
+
388
+ void
389
+ _iceI_ids(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::vector<::std::string>>>&, const ::Ice::Context&);
390
+
391
+ ::std::string
392
+ ice_id(const ::Ice::Context& context = ::Ice::noExplicitContext)
393
+ {
394
+ return _makePromiseOutgoing<::std::string>(true, this, &ObjectPrx::_iceI_id, context).get();
395
+ }
396
+
397
+ ::std::function<void()>
398
+ ice_idAsync(::std::function<void(::std::string)> response,
399
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
400
+ ::std::function<void(bool)> sent = nullptr,
401
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
402
+ {
403
+ return _makeLamdaOutgoing<::std::string>(response, ex, sent, this, &ObjectPrx::_iceI_id, context);
404
+ }
405
+
406
+ template<template<typename> class P = std::promise>
407
+ auto ice_idAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
408
+ -> decltype(std::declval<P<::std::string>>().get_future())
409
+ {
410
+ return _makePromiseOutgoing<::std::string, P>(false, this, &ObjectPrx::_iceI_id, context);
411
+ }
412
+
413
+ void
414
+ _iceI_id(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::string>>&, const ::Ice::Context&);
415
+
416
+ static const ::std::string& ice_staticId()
417
+ {
418
+ return ::Ice::Object::ice_staticId();
419
+ }
420
+
421
+ //
422
+ // ice_invoke with default vector mapping for byte-sequence parameters
423
+ //
424
+
425
+ bool
426
+ ice_invoke(const ::std::string& operation,
427
+ ::Ice::OperationMode mode,
428
+ const ::std::vector<Byte>& inP,
429
+ ::std::vector<::Ice::Byte>& outParams,
430
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
431
+ {
432
+ return ice_invoke(operation, mode, ::IceInternal::makePair(inP), outParams, context);
433
+ }
434
+
435
+ template<template<typename> class P = std::promise> auto
436
+ ice_invokeAsync(const ::std::string& operation,
437
+ ::Ice::OperationMode mode,
438
+ const ::std::vector<Byte>& inP,
439
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
440
+ -> decltype(std::declval<P<::Ice::Object::Ice_invokeResult>>().get_future())
441
+ {
442
+ return ice_invokeAsync<P>(operation, mode, ::IceInternal::makePair(inP), context);
443
+ }
444
+
445
+ ::std::function<void()>
446
+ ice_invokeAsync(const ::std::string& operation,
447
+ ::Ice::OperationMode mode,
448
+ const ::std::vector<::Ice::Byte>& inP,
449
+ ::std::function<void(bool, ::std::vector<::Ice::Byte>)> response,
450
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
451
+ ::std::function<void(bool)> sent = nullptr,
452
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
453
+ {
454
+ using Outgoing = ::IceInternal::InvokeLambdaOutgoing<::Ice::Object::Ice_invokeResult>;
455
+ ::std::function<void(::Ice::Object::Ice_invokeResult&&)> r;
456
+ if(response)
457
+ {
458
+ r = [response](::Ice::Object::Ice_invokeResult&& result)
459
+ {
460
+ response(result.returnValue, std::move(result.outParams));
461
+ };
462
+ }
463
+ auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), r, ex, sent);
464
+ outAsync->invoke(operation, mode, ::IceInternal::makePair(inP), context);
465
+ return [outAsync]() { outAsync->cancel(); };
466
+ }
467
+
468
+ //
469
+ // ice_invoke with cpp:array mapping for byte sequence parameters
470
+ //
471
+
472
+ bool
473
+ ice_invoke(const ::std::string& operation,
474
+ ::Ice::OperationMode mode,
475
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inP,
476
+ ::std::vector<::Ice::Byte>& outParams,
477
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
478
+ {
479
+ using Outgoing = ::IceInternal::InvokePromiseOutgoing<
480
+ ::std::promise<::Ice::Object::Ice_invokeResult>, ::Ice::Object::Ice_invokeResult>;
481
+ auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), true);
482
+ outAsync->invoke(operation, mode, inP, context);
483
+ auto result = outAsync->getFuture().get();
484
+ outParams.swap(result.outParams);
485
+ return result.returnValue;
486
+ }
487
+
488
+ template<template<typename> class P = std::promise> auto
489
+ ice_invokeAsync(const ::std::string& operation,
490
+ ::Ice::OperationMode mode,
491
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inP,
492
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
493
+ -> decltype(std::declval<P<::Ice::Object::Ice_invokeResult>>().get_future())
494
+ {
495
+ using Outgoing =
496
+ ::IceInternal::InvokePromiseOutgoing<P<::Ice::Object::Ice_invokeResult>, ::Ice::Object::Ice_invokeResult>;
497
+ auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), false);
498
+ outAsync->invoke(operation, mode, inP, context);
499
+ return outAsync->getFuture();
500
+ }
501
+
502
+ ::std::function<void()>
503
+ ice_invokeAsync(const ::std::string& operation,
504
+ ::Ice::OperationMode mode,
505
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inP,
506
+ ::std::function<void(bool, ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>)> response,
507
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
508
+ ::std::function<void(bool)> sent = nullptr,
509
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
510
+ {
511
+ using Result = ::std::tuple<bool, ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>>;
512
+ using Outgoing = ::IceInternal::InvokeLambdaOutgoing<Result>;
513
+
514
+ ::std::function<void(Result&&)> r;
515
+ if(response)
516
+ {
517
+ r = [response](Result&& result)
518
+ {
519
+ response(::std::get<0>(result), ::std::move(::std::get<1>(result)));
520
+ };
521
+ }
522
+ auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), r, ex, sent);
523
+ outAsync->invoke(operation, mode, inP, context);
524
+ return [outAsync]() { outAsync->cancel(); };
525
+ }
526
+
527
+ ::Ice::Identity ice_getIdentity() const;
528
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_identity(const ::Ice::Identity&) const;
529
+
530
+ ::Ice::Context ice_getContext() const;
531
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_context(const ::Ice::Context&) const;
532
+
533
+ const ::std::string& ice_getFacet() const;
534
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_facet(const ::std::string&) const;
535
+
536
+ ::std::string ice_getAdapterId() const;
537
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_adapterId(const ::std::string&) const;
538
+
539
+ ::Ice::EndpointSeq ice_getEndpoints() const;
540
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_endpoints(const ::Ice::EndpointSeq&) const;
541
+
542
+ ::Ice::Int ice_getLocatorCacheTimeout() const;
543
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_locatorCacheTimeout(::Ice::Int) const;
88
544
 
545
+ bool ice_isConnectionCached() const;
546
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_connectionCached(bool) const;
547
+
548
+ ::Ice::EndpointSelectionType ice_getEndpointSelection() const;
549
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_endpointSelection(::Ice::EndpointSelectionType) const;
550
+
551
+ bool ice_isSecure() const;
552
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_secure(bool) const;
553
+
554
+ ::Ice::EncodingVersion ice_getEncodingVersion() const;
555
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_encodingVersion(const ::Ice::EncodingVersion&) const;
556
+
557
+ bool ice_isPreferSecure() const;
558
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_preferSecure(bool) const;
559
+
560
+ ::std::shared_ptr<::Ice::RouterPrx> ice_getRouter() const;
561
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_router(const ::std::shared_ptr<::Ice::RouterPrx>&) const;
562
+
563
+ ::std::shared_ptr<::Ice::LocatorPrx> ice_getLocator() const;
564
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx>&) const;
565
+
566
+ bool ice_isCollocationOptimized() const;
567
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_collocationOptimized(bool) const;
568
+
569
+ ::Ice::Int ice_getInvocationTimeout() const;
570
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_invocationTimeout(::Ice::Int) const;
571
+
572
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_twoway() const;
573
+ bool ice_isTwoway() const;
574
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_oneway() const;
575
+ bool ice_isOneway() const;
576
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_batchOneway() const;
577
+ bool ice_isBatchOneway() const;
578
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_datagram() const;
579
+ bool ice_isDatagram() const;
580
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_batchDatagram() const;
581
+ bool ice_isBatchDatagram() const;
582
+
583
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_compress(bool) const;
584
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_timeout(int) const;
585
+
586
+ ::std::shared_ptr<::Ice::ObjectPrx> ice_connectionId(const ::std::string&) const;
587
+ ::std::string ice_getConnectionId() const;
588
+
589
+ ::std::shared_ptr<::Ice::Connection>
590
+ ice_getConnection()
591
+ {
592
+ return ice_getConnectionAsync().get();
593
+ }
594
+
595
+ ::std::function<void()>
596
+ ice_getConnectionAsync(::std::function<void(::std::shared_ptr<::Ice::Connection>)> response,
597
+ ::std::function<void(::std::exception_ptr)> ex = nullptr,
598
+ ::std::function<void(bool)> sent = nullptr)
599
+ {
600
+ using LambdaOutgoing = ::IceInternal::ProxyGetConnectionLambda;
601
+ auto outAsync = ::std::make_shared<LambdaOutgoing>(shared_from_this(), response, ex, sent);
602
+ _iceI_getConnection(outAsync);
603
+ return [outAsync]() { outAsync->cancel(); };
604
+ }
605
+
606
+ template<template<typename> class P = std::promise> auto
607
+ ice_getConnectionAsync() -> decltype(std::declval<P<::std::shared_ptr<::Ice::Connection>>>().get_future())
608
+ {
609
+ using PromiseOutgoing = ::IceInternal::ProxyGetConnectionPromise<P<::std::shared_ptr<::Ice::Connection>>>;
610
+ auto outAsync = ::std::make_shared<PromiseOutgoing>(shared_from_this());
611
+ _iceI_getConnection(outAsync);
612
+ return outAsync->getFuture();
613
+ }
614
+
615
+ void _iceI_getConnection(const ::std::shared_ptr<::IceInternal::ProxyGetConnection>&);
616
+
617
+ ::std::shared_ptr<::Ice::Connection> ice_getCachedConnection() const;
618
+
619
+ void ice_flushBatchRequests()
620
+ {
621
+ return ice_flushBatchRequestsAsync().get();
622
+ }
623
+
624
+ std::function<void()>
625
+ ice_flushBatchRequestsAsync(::std::function<void(::std::exception_ptr)> ex,
626
+ ::std::function<void(bool)> sent = nullptr)
627
+ {
628
+ using LambdaOutgoing = ::IceInternal::ProxyFlushBatchLambda;
629
+ auto outAsync = ::std::make_shared<LambdaOutgoing>(shared_from_this(), ex, sent);
630
+ _iceI_flushBatchRequests(outAsync);
631
+ return [outAsync]() { outAsync->cancel(); };
632
+ }
633
+
634
+ template<template<typename> class P = std::promise> auto
635
+ ice_flushBatchRequestsAsync() -> decltype(std::declval<P<void>>().get_future())
636
+ {
637
+ using PromiseOutgoing = ::IceInternal::ProxyFlushBatchPromise<P<void>>;
638
+ auto outAsync = ::std::make_shared<PromiseOutgoing>(shared_from_this());
639
+ _iceI_flushBatchRequests(outAsync);
640
+ return outAsync->getFuture();
641
+ }
642
+
643
+ void _iceI_flushBatchRequests(const ::std::shared_ptr<::IceInternal::ProxyFlushBatchAsync>&);
644
+
645
+ const ::IceInternal::ReferencePtr& _getReference() const { return _reference; }
646
+
647
+ void _copyFrom(const std::shared_ptr<::Ice::ObjectPrx>&);
648
+
649
+ int _handleException(const ::Ice::Exception&, const ::IceInternal::RequestHandlerPtr&, ::Ice::OperationMode,
650
+ bool, int&);
651
+
652
+ void _checkTwowayOnly(const ::std::string&) const;
653
+
654
+ ::IceInternal::RequestHandlerPtr _getRequestHandler();
655
+ ::IceInternal::BatchRequestQueuePtr _getBatchRequestQueue();
656
+ ::IceInternal::RequestHandlerPtr _setRequestHandler(const ::IceInternal::RequestHandlerPtr&);
657
+ void _updateRequestHandler(const ::IceInternal::RequestHandlerPtr&, const ::IceInternal::RequestHandlerPtr&);
658
+
659
+ int _hash() const;
660
+
661
+ void _write(OutputStream&) const;
662
+
663
+ protected:
664
+
665
+ template<typename R, template<typename> class P = ::std::promise, typename Obj, typename Fn, typename... Args>
666
+ auto _makePromiseOutgoing(bool sync, Obj obj, Fn fn, Args&&... args)
667
+ -> decltype(std::declval<P<R>>().get_future())
668
+ {
669
+ auto outAsync = ::std::make_shared<::IceInternal::PromiseOutgoing<P<R>, R>>(shared_from_this(), sync);
670
+ (obj->*fn)(outAsync, std::forward<Args>(args)...);
671
+ return outAsync->getFuture();
672
+ }
673
+
674
+ template<typename R, typename Re, typename E, typename S, typename Obj, typename Fn, typename... Args>
675
+ ::std::function<void()> _makeLamdaOutgoing(Re r, E e, S s, Obj obj, Fn fn, Args&&... args)
676
+ {
677
+ auto outAsync = ::std::make_shared<::IceInternal::LambdaOutgoing<R>>(shared_from_this(), r, e, s);
678
+ (obj->*fn)(outAsync, std::forward<Args>(args)...);
679
+ return [outAsync]() { outAsync->cancel(); };
680
+ }
681
+
682
+ virtual ::std::shared_ptr<ObjectPrx> _newInstance() const;
683
+ ObjectPrx() = default;
684
+ friend ::std::shared_ptr<ObjectPrx> IceInternal::createProxy<ObjectPrx>();
685
+
686
+ private:
687
+
688
+ void setup(const ::IceInternal::ReferencePtr&);
689
+ friend class ::IceInternal::ProxyFactory;
690
+
691
+ ::IceInternal::ReferencePtr _reference;
692
+ ::IceInternal::RequestHandlerPtr _requestHandler;
693
+ ::IceInternal::BatchRequestQueuePtr _batchRequestQueue;
694
+ IceUtil::Mutex _mutex;
695
+ };
696
+
697
+ inline bool
698
+ operator>(const ObjectPrx& lhs, const ObjectPrx& rhs)
699
+ {
700
+ return rhs < lhs;
89
701
  }
90
702
 
91
- #ifdef ICE_CPP11
92
- namespace IceInternal
703
+ inline bool
704
+ operator<=(const ObjectPrx& lhs, const ObjectPrx& rhs)
705
+ {
706
+ return !(lhs > rhs);
707
+ }
708
+
709
+ inline bool
710
+ operator>=(const ObjectPrx& lhs, const ObjectPrx& rhs)
93
711
  {
712
+ return !(lhs < rhs);
713
+ }
94
714
 
95
- class ICE_API Cpp11FnCallbackNC : public CallbackBase
715
+ inline bool
716
+ operator!=(const ObjectPrx& lhs, const ObjectPrx& rhs)
717
+ {
718
+ return !(lhs == rhs);
719
+ }
720
+
721
+ template<typename Prx, typename... Bases>
722
+ class Proxy : public virtual Bases...
96
723
  {
97
724
  public:
98
725
 
99
- Cpp11FnCallbackNC(const ::std::function<void (const ::Ice::Exception&)>&,
100
- const ::std::function<void (bool)>&);
726
+ ::std::shared_ptr<Prx> ice_context(const ::Ice::Context& context) const
727
+ {
728
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_context(context));
729
+ }
730
+
731
+ ::std::shared_ptr<Prx> ice_adapterId(const ::std::string& id) const
732
+ {
733
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_adapterId(id));
734
+ }
735
+
736
+ ::std::shared_ptr<Prx> ice_endpoints(const ::Ice::EndpointSeq& endpoints) const
737
+ {
738
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_endpoints(endpoints));
739
+ }
740
+
741
+ ::std::shared_ptr<Prx> ice_locatorCacheTimeout(int timeout) const
742
+ {
743
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_locatorCacheTimeout(timeout));
744
+ }
745
+
746
+ ::std::shared_ptr<Prx> ice_connectionCached(bool cached) const
747
+ {
748
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_connectionCached(cached));
749
+ }
750
+
751
+ ::std::shared_ptr<Prx> ice_endpointSelection(::Ice::EndpointSelectionType selection) const
752
+ {
753
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_endpointSelection(selection));
754
+ }
755
+
756
+ ::std::shared_ptr<Prx> ice_secure(bool secure) const
757
+ {
758
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_secure(secure));
759
+ }
760
+
761
+ ::std::shared_ptr<Prx> ice_preferSecure(bool preferSecure) const
762
+ {
763
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_preferSecure(preferSecure));
764
+ }
765
+
766
+ ::std::shared_ptr<Prx> ice_router(const ::std::shared_ptr<::Ice::RouterPrx>& router) const
767
+ {
768
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_router(router));
769
+ }
770
+
771
+ ::std::shared_ptr<Prx> ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx>& locator) const
772
+ {
773
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_locator(locator));
774
+ }
775
+
776
+ ::std::shared_ptr<Prx> ice_collocationOptimized(bool collocated) const
777
+ {
778
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_collocationOptimized(collocated));
779
+ }
780
+
781
+ ::std::shared_ptr<Prx> ice_invocationTimeout(int timeout) const
782
+ {
783
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_invocationTimeout(timeout));
784
+ }
785
+
786
+ ::std::shared_ptr<Prx> ice_twoway() const
787
+ {
788
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_twoway());
789
+ }
790
+
791
+ ::std::shared_ptr<Prx> ice_oneway() const
792
+ {
793
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_oneway());
794
+ }
795
+
796
+ ::std::shared_ptr<Prx> ice_batchOneway() const
797
+ {
798
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_batchOneway());
799
+ }
800
+
801
+ ::std::shared_ptr<Prx> ice_datagram() const
802
+ {
803
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_datagram());
804
+ }
805
+
806
+ ::std::shared_ptr<Prx> ice_batchDatagram() const
807
+ {
808
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_batchDatagram());
809
+ }
810
+
811
+ ::std::shared_ptr<Prx> ice_compress(bool compress) const
812
+ {
813
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_compress(compress));
814
+ }
815
+
816
+ ::std::shared_ptr<Prx> ice_timeout(int timeout) const
817
+ {
818
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_timeout(timeout));
819
+ }
820
+
821
+ ::std::shared_ptr<Prx> ice_connectionId(const ::std::string& id) const
822
+ {
823
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_connectionId(id));
824
+ }
825
+
826
+ ::std::shared_ptr<Prx> ice_encodingVersion(const ::Ice::EncodingVersion& version) const
827
+ {
828
+ return ::std::dynamic_pointer_cast<Prx>(ObjectPrx::ice_encodingVersion(version));
829
+ }
830
+
831
+ protected:
832
+
833
+ virtual ::std::shared_ptr<ObjectPrx> _newInstance() const = 0;
834
+ };
835
+
836
+ ICE_API ::std::ostream& operator<<(::std::ostream&, const ::Ice::ObjectPrx&);
837
+
838
+ ICE_API bool proxyIdentityLess(const ::std::shared_ptr<ObjectPrx>&, const ::std::shared_ptr<ObjectPrx>&);
839
+ ICE_API bool proxyIdentityEqual(const ::std::shared_ptr<ObjectPrx>&, const ::std::shared_ptr<ObjectPrx>&);
840
+
841
+ ICE_API bool proxyIdentityAndFacetLess(const ::std::shared_ptr<ObjectPrx>&, const ::std::shared_ptr<ObjectPrx>&);
842
+ ICE_API bool proxyIdentityAndFacetEqual(const ::std::shared_ptr<ObjectPrx>&, const ::std::shared_ptr<ObjectPrx>&);
843
+
844
+ struct ProxyIdentityLess : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
845
+ {
846
+ bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs) const
847
+ {
848
+ return proxyIdentityLess(lhs, rhs);
849
+ }
850
+ };
851
+
852
+ struct ProxyIdentityEqual : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
853
+ {
854
+ bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs) const
855
+ {
856
+ return proxyIdentityEqual(lhs, rhs);
857
+ }
858
+ };
859
+
860
+ struct ProxyIdentityAndFacetLess : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
861
+ {
862
+ bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs) const
863
+ {
864
+ return proxyIdentityAndFacetLess(lhs, rhs);
865
+ }
866
+ };
867
+
868
+ struct ProxyIdentityAndFacetEqual : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
869
+ {
870
+ bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs) const
871
+ {
872
+ return proxyIdentityAndFacetEqual(lhs, rhs);
873
+ }
874
+ };
875
+
876
+ template<typename P,
877
+ typename T,
878
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* = nullptr,
879
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* = nullptr> ::std::shared_ptr<P>
880
+ uncheckedCast(const ::std::shared_ptr<T>& b)
881
+ {
882
+ ::std::shared_ptr<P> r;
883
+ if(b)
884
+ {
885
+ r = ::std::dynamic_pointer_cast<P>(b);
886
+ if(!r)
887
+ {
888
+ r = IceInternal::createProxy<P>();
889
+ r->_copyFrom(b);
890
+ }
891
+ }
892
+ return r;
893
+ }
894
+
895
+ template<typename P,
896
+ typename T,
897
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* = nullptr,
898
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* = nullptr> ::std::shared_ptr<P>
899
+ uncheckedCast(const ::std::shared_ptr<T>& b, const std::string& f)
900
+ {
901
+ ::std::shared_ptr<P> r;
902
+ if(b)
903
+ {
904
+ r = IceInternal::createProxy<P>();
905
+ r->_copyFrom(b->ice_facet(f));
906
+ }
907
+ return r;
908
+ }
909
+
910
+ template<typename P,
911
+ typename T,
912
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* = nullptr,
913
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* = nullptr> ::std::shared_ptr<P>
914
+ checkedCast(const ::std::shared_ptr<T>& b, const ::Ice::Context& context = Ice::noExplicitContext)
915
+ {
916
+ ::std::shared_ptr<P> r;
917
+ if(b)
918
+ {
919
+ if(b->ice_isA(P::ice_staticId(), context))
920
+ {
921
+ r = IceInternal::createProxy<P>();
922
+ r->_copyFrom(b);
923
+ }
924
+ }
925
+ return r;
926
+ }
927
+
928
+ template<typename P,
929
+ typename T,
930
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* = nullptr,
931
+ typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* = nullptr> ::std::shared_ptr<P>
932
+ checkedCast(const ::std::shared_ptr<T>& b, const std::string& f, const ::Ice::Context& context = Ice::noExplicitContext)
933
+ {
934
+ ::std::shared_ptr<P> r;
935
+ if(b)
936
+ {
937
+ try
938
+ {
939
+ ::std::shared_ptr<::Ice::ObjectPrx> bb = b->ice_facet(f);
940
+ if(bb->ice_isA(P::ice_staticId(), context))
941
+ {
942
+ r = IceInternal::createProxy<P>();
943
+ r->_copyFrom(bb);
944
+ }
945
+ }
946
+ catch(const Ice::FacetNotExistException&)
947
+ {
948
+ }
949
+ }
950
+ return r;
951
+ }
952
+
953
+ ICE_API ::std::ostream& operator<<(::std::ostream&, const Ice::ObjectPrx&);
954
+
955
+ }
956
+
957
+ #else // C++98 mapping
958
+
959
+ namespace IceProxy
960
+ {
961
+
962
+ namespace Ice
963
+ {
964
+
965
+ class Locator;
966
+ ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Locator*);
967
+
968
+ class Router;
969
+ ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Router*);
101
970
 
102
- virtual CallbackBasePtr verify(const ::Ice::LocalObjectPtr&);
971
+ }
103
972
 
104
- virtual void sent(const ::Ice::AsyncResultPtr&) const;
973
+ }
105
974
 
106
- virtual bool hasSentCallback() const;
975
+ namespace Ice
976
+ {
107
977
 
108
- protected:
978
+ typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Router> RouterPrx;
979
+ typedef RouterPrx RouterPrxPtr;
980
+ typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Locator> LocatorPrx;
981
+ typedef LocatorPrx LocatorPrxPtr;
109
982
 
110
- void exception(const ::Ice::AsyncResultPtr&, const ::Ice::Exception& ex) const;
983
+ class LocalException;
984
+ class OutputStream;
111
985
 
112
- ::std::function<void (const ::Ice::Exception&)> _exception;
113
- ::std::function<void (bool)> _sent;
114
- };
986
+ class Callback_Object_ice_isA_Base : public virtual ::IceInternal::CallbackBase { };
987
+ typedef ::IceUtil::Handle< Callback_Object_ice_isA_Base> Callback_Object_ice_isAPtr;
115
988
 
116
- class ICE_API Cpp11FnOnewayCallbackNC : public Cpp11FnCallbackNC
117
- {
118
- public:
989
+ class Callback_Object_ice_ping_Base : public virtual ::IceInternal::CallbackBase { };
990
+ typedef ::IceUtil::Handle< Callback_Object_ice_ping_Base> Callback_Object_ice_pingPtr;
991
+
992
+ class Callback_Object_ice_ids_Base : public virtual ::IceInternal::CallbackBase { };
993
+ typedef ::IceUtil::Handle< Callback_Object_ice_ids_Base> Callback_Object_ice_idsPtr;
119
994
 
120
- Cpp11FnOnewayCallbackNC(const ::std::function<void ()>&,
121
- const ::std::function<void (const ::Ice::Exception&)>&,
122
- const ::std::function<void (bool)>&);
995
+ class Callback_Object_ice_id_Base : public virtual ::IceInternal::CallbackBase { };
996
+ typedef ::IceUtil::Handle< Callback_Object_ice_id_Base> Callback_Object_ice_idPtr;
123
997
 
124
- virtual void
125
- completed(const ::Ice::AsyncResultPtr&) const;
998
+ class Callback_Object_ice_invoke_Base : public virtual ::IceInternal::CallbackBase { };
999
+ typedef ::IceUtil::Handle< Callback_Object_ice_invoke_Base> Callback_Object_ice_invokePtr;
126
1000
 
127
- private:
1001
+ class Callback_Object_ice_flushBatchRequests_Base : public virtual ::IceInternal::CallbackBase { };
1002
+ typedef ::IceUtil::Handle< Callback_Object_ice_flushBatchRequests_Base> Callback_Object_ice_flushBatchRequestsPtr;
128
1003
 
129
- ::std::function<void ()> _cb;
130
- };
1004
+ class Callback_Object_ice_getConnection_Base : public virtual ::IceInternal::CallbackBase { };
1005
+ typedef ::IceUtil::Handle< Callback_Object_ice_getConnection_Base> Callback_Object_ice_getConnectionPtr;
131
1006
 
132
1007
  }
133
- #endif
134
1008
 
135
1009
  namespace IceProxy { namespace Ice
136
1010
  {
@@ -140,565 +1014,297 @@ class ICE_API Object : public ::IceUtil::Shared
140
1014
  public:
141
1015
 
142
1016
  bool operator==(const Object&) const;
143
- bool operator!=(const Object&) const;
144
1017
  bool operator<(const Object&) const;
145
1018
 
146
1019
  ::Ice::CommunicatorPtr ice_getCommunicator() const;
147
1020
 
148
1021
  ::std::string ice_toString() const;
149
1022
 
150
- bool ice_isA(const ::std::string& typeId)
151
- {
152
- return ice_isA(typeId, 0);
153
- }
154
- bool ice_isA(const ::std::string& typeId, const ::Ice::Context& context)
155
- {
156
- return ice_isA(typeId, &context);
157
- }
158
-
159
- #ifdef ICE_CPP11
160
- ::Ice::AsyncResultPtr
161
- begin_ice_isA(const ::std::string& typeId,
162
- const ::Ice::Context& ctx,
163
- const ::IceInternal::Function<void (bool)>& response,
164
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
165
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
166
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
167
- {
168
- return __begin_ice_isA(typeId, &ctx, response, exception, sent);
169
- }
170
-
171
- ::Ice::AsyncResultPtr
172
- begin_ice_isA(const ::std::string& typeId,
173
- const ::IceInternal::Function<void (bool)>& response,
174
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
175
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
176
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
1023
+ bool ice_isA(const ::std::string& typeId, const ::Ice::Context& context = ::Ice::noExplicitContext)
177
1024
  {
178
- return __begin_ice_isA(typeId, 0, response, exception, sent);
1025
+ return end_ice_isA(_iceI_begin_ice_isA(typeId, context, ::IceInternal::dummyCallback, 0, true));
179
1026
  }
180
1027
 
181
- ::Ice::AsyncResultPtr
182
- begin_ice_isA(const ::std::string& typeId,
183
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
184
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
185
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
186
- {
187
- return begin_ice_isA(typeId, 0, ::Ice::newCallback(completed, sent), 0);
188
- }
189
-
190
- ::Ice::AsyncResultPtr
191
- begin_ice_isA(const ::std::string& typeId,
192
- const ::Ice::Context& ctx,
193
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
194
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
195
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
196
- {
197
- return begin_ice_isA(typeId, &ctx, ::Ice::newCallback(completed, sent), 0);
198
- }
199
- #endif
200
-
201
- ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId)
202
- {
203
- return begin_ice_isA(typeId, 0, ::IceInternal::__dummyCallback, 0);
204
- }
205
-
206
- ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId, const ::Ice::Context& __ctx)
1028
+ ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1029
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
207
1030
  {
208
- return begin_ice_isA(typeId, &__ctx, ::IceInternal::__dummyCallback, 0);
1031
+ return _iceI_begin_ice_isA(typeId, context, ::IceInternal::dummyCallback, 0);
209
1032
  }
210
1033
 
211
1034
  ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
212
- const ::Ice::CallbackPtr& __del,
213
- const ::Ice::LocalObjectPtr& __cookie = 0)
1035
+ const ::Ice::CallbackPtr& del,
1036
+ const ::Ice::LocalObjectPtr& cookie = 0)
214
1037
  {
215
- return begin_ice_isA(typeId, 0, __del, __cookie);
1038
+ return _iceI_begin_ice_isA(typeId, ::Ice::noExplicitContext, del, cookie);
216
1039
  }
217
1040
 
218
1041
  ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
219
- const ::Ice::Context& __ctx,
220
- const ::Ice::CallbackPtr& __del,
221
- const ::Ice::LocalObjectPtr& __cookie = 0)
1042
+ const ::Ice::Context& context,
1043
+ const ::Ice::CallbackPtr& del,
1044
+ const ::Ice::LocalObjectPtr& cookie = 0)
222
1045
  {
223
- return begin_ice_isA(typeId, &__ctx, __del, __cookie);
1046
+ return _iceI_begin_ice_isA(typeId, context, del, cookie);
224
1047
  }
225
1048
 
226
1049
  ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
227
- const ::Ice::Callback_Object_ice_isAPtr& __del,
228
- const ::Ice::LocalObjectPtr& __cookie = 0)
1050
+ const ::Ice::Callback_Object_ice_isAPtr& del,
1051
+ const ::Ice::LocalObjectPtr& cookie = 0)
229
1052
  {
230
- return begin_ice_isA(typeId, 0, __del, __cookie);
1053
+ return _iceI_begin_ice_isA(typeId, ::Ice::noExplicitContext, del, cookie);
231
1054
  }
232
1055
 
233
1056
  ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
234
- const ::Ice::Context& __ctx,
235
- const ::Ice::Callback_Object_ice_isAPtr& __del,
236
- const ::Ice::LocalObjectPtr& __cookie = 0)
1057
+ const ::Ice::Context& context,
1058
+ const ::Ice::Callback_Object_ice_isAPtr& del,
1059
+ const ::Ice::LocalObjectPtr& cookie = 0)
237
1060
  {
238
- return begin_ice_isA(typeId, &__ctx, __del, __cookie);
1061
+ return _iceI_begin_ice_isA(typeId, context, del, cookie);
239
1062
  }
240
1063
 
241
1064
  bool end_ice_isA(const ::Ice::AsyncResultPtr&);
242
1065
 
243
- void ice_ping()
244
- {
245
- ice_ping(0);
246
- }
247
- void ice_ping(const ::Ice::Context& context)
248
- {
249
- ice_ping(&context);
250
- }
251
-
252
- #ifdef ICE_CPP11
253
- ::Ice::AsyncResultPtr
254
- begin_ice_ping(const ::IceInternal::Function<void ()>& response,
255
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
256
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
257
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
1066
+ void ice_ping(const ::Ice::Context& context = ::Ice::noExplicitContext)
258
1067
  {
259
- return __begin_ice_ping(0, response, exception, sent);
1068
+ end_ice_ping(_iceI_begin_ice_ping(context, ::IceInternal::dummyCallback, 0, true));
260
1069
  }
261
1070
 
262
- ::Ice::AsyncResultPtr
263
- begin_ice_ping(const ::Ice::Context& ctx,
264
- const ::IceInternal::Function<void ()>& response,
265
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
266
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
267
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
1071
+ ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& context = ::Ice::noExplicitContext)
268
1072
  {
269
- return __begin_ice_ping(&ctx, response, exception, sent);
1073
+ return _iceI_begin_ice_ping(context, ::IceInternal::dummyCallback, 0);
270
1074
  }
271
1075
 
272
- ::Ice::AsyncResultPtr
273
- begin_ice_ping(const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
274
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
275
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
1076
+ ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
276
1077
  {
277
- return begin_ice_ping(0, ::Ice::newCallback(completed, sent), 0);
1078
+ return _iceI_begin_ice_ping(::Ice::noExplicitContext, del, cookie);
278
1079
  }
279
1080
 
280
- ::Ice::AsyncResultPtr
281
- begin_ice_ping(const ::Ice::Context& ctx,
282
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
283
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
284
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
1081
+ ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& context, const ::Ice::CallbackPtr& del,
1082
+ const ::Ice::LocalObjectPtr& cookie = 0)
285
1083
  {
286
- return begin_ice_ping(&ctx, ::Ice::newCallback(completed, sent), 0);
1084
+ return _iceI_begin_ice_ping(context, del, cookie);
287
1085
  }
288
- #endif
289
-
290
- ::Ice::AsyncResultPtr begin_ice_ping()
291
- {
292
- return begin_ice_ping(0, ::IceInternal::__dummyCallback, 0);
293
- }
294
-
295
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& __ctx)
296
- {
297
- return begin_ice_ping(&__ctx, ::IceInternal::__dummyCallback, 0);
298
- }
299
-
300
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::CallbackPtr& __del,
301
- const ::Ice::LocalObjectPtr& __cookie = 0)
302
- {
303
- return begin_ice_ping(0, __del, __cookie);
304
- }
305
-
306
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& __ctx, const ::Ice::CallbackPtr& __del,
307
- const ::Ice::LocalObjectPtr& __cookie = 0)
308
- {
309
- return begin_ice_ping(&__ctx, __del, __cookie);
310
- }
311
-
312
1086
 
313
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Callback_Object_ice_pingPtr& __del,
314
- const ::Ice::LocalObjectPtr& __cookie = 0)
1087
+ ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Callback_Object_ice_pingPtr& del,
1088
+ const ::Ice::LocalObjectPtr& cookie = 0)
315
1089
  {
316
- return begin_ice_ping(0, __del, __cookie);
1090
+ return _iceI_begin_ice_ping(::Ice::noExplicitContext, del, cookie);
317
1091
  }
318
1092
 
319
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& __ctx, const ::Ice::Callback_Object_ice_pingPtr& __del,
320
- const ::Ice::LocalObjectPtr& __cookie = 0)
1093
+ ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& context, const ::Ice::Callback_Object_ice_pingPtr& del,
1094
+ const ::Ice::LocalObjectPtr& cookie = 0)
321
1095
  {
322
- return begin_ice_ping(&__ctx, __del, __cookie);
1096
+ return _iceI_begin_ice_ping(context, del, cookie);
323
1097
  }
324
1098
 
325
1099
  void end_ice_ping(const ::Ice::AsyncResultPtr&);
326
1100
 
327
- ::std::vector< ::std::string> ice_ids()
328
- {
329
- return ice_ids(0);
330
- }
331
- ::std::vector< ::std::string> ice_ids(const ::Ice::Context& context)
332
- {
333
- return ice_ids(&context);
334
- }
335
-
336
- #ifdef ICE_CPP11
337
- ::Ice::AsyncResultPtr
338
- begin_ice_ids(const ::IceInternal::Function<void (const ::std::vector< ::std::string>&)>& response,
339
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
340
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
341
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
342
- {
343
- return __begin_ice_ids(0, response, exception, sent);
344
- }
345
-
346
- ::Ice::AsyncResultPtr
347
- begin_ice_ids(const ::Ice::Context& ctx,
348
- const ::IceInternal::Function<void (const ::std::vector< ::std::string>&)>& response,
349
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
350
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
351
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
352
- {
353
- return __begin_ice_ids(&ctx, response, exception, sent);
354
- }
355
-
356
- ::Ice::AsyncResultPtr
357
- begin_ice_ids(const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
358
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
359
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
360
- {
361
- return begin_ice_ids(0, ::Ice::newCallback(completed, sent), 0);
362
- }
363
-
364
- ::Ice::AsyncResultPtr
365
- begin_ice_ids(const ::Ice::Context& ctx,
366
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
367
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
368
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
369
- {
370
- return begin_ice_ids(&ctx, ::Ice::newCallback(completed, sent), 0);
371
- }
372
- #endif
373
-
374
- ::Ice::AsyncResultPtr begin_ice_ids()
1101
+ ::std::vector< ::std::string> ice_ids(const ::Ice::Context& context = ::Ice::noExplicitContext)
375
1102
  {
376
- return begin_ice_ids(0, ::IceInternal::__dummyCallback, 0);
1103
+ return end_ice_ids(_iceI_begin_ice_ids(context, ::IceInternal::dummyCallback, 0, true));
377
1104
  }
378
1105
 
379
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& __ctx)
1106
+ ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& context = ::Ice::noExplicitContext)
380
1107
  {
381
- return begin_ice_ids(&__ctx, ::IceInternal::__dummyCallback, 0);
1108
+ return _iceI_begin_ice_ids(context, ::IceInternal::dummyCallback, 0);
382
1109
  }
383
1110
 
384
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::CallbackPtr& __del,
385
- const ::Ice::LocalObjectPtr& __cookie = 0)
1111
+ ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::CallbackPtr& del,
1112
+ const ::Ice::LocalObjectPtr& cookie = 0)
386
1113
  {
387
- return begin_ice_ids(0, __del, __cookie);
1114
+ return _iceI_begin_ice_ids(::Ice::noExplicitContext, del, cookie);
388
1115
  }
389
1116
 
390
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& __ctx,
391
- const ::Ice::CallbackPtr& __del,
392
- const ::Ice::LocalObjectPtr& __cookie = 0)
1117
+ ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& context,
1118
+ const ::Ice::CallbackPtr& del,
1119
+ const ::Ice::LocalObjectPtr& cookie = 0)
393
1120
  {
394
- return begin_ice_ids(&__ctx, __del, __cookie);
1121
+ return _iceI_begin_ice_ids(context, del, cookie);
395
1122
  }
396
1123
 
397
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Callback_Object_ice_idsPtr& __del,
398
- const ::Ice::LocalObjectPtr& __cookie = 0)
1124
+ ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Callback_Object_ice_idsPtr& del,
1125
+ const ::Ice::LocalObjectPtr& cookie = 0)
399
1126
  {
400
- return begin_ice_ids(0, __del, __cookie);
1127
+ return _iceI_begin_ice_ids(::Ice::noExplicitContext, del, cookie);
401
1128
  }
402
1129
 
403
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& __ctx,
404
- const ::Ice::Callback_Object_ice_idsPtr& __del,
405
- const ::Ice::LocalObjectPtr& __cookie = 0)
1130
+ ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& context,
1131
+ const ::Ice::Callback_Object_ice_idsPtr& del,
1132
+ const ::Ice::LocalObjectPtr& cookie = 0)
406
1133
  {
407
- return begin_ice_ids(&__ctx, __del, __cookie);
1134
+ return _iceI_begin_ice_ids(context, del, cookie);
408
1135
  }
409
1136
 
410
1137
  ::std::vector< ::std::string> end_ice_ids(const ::Ice::AsyncResultPtr&);
411
1138
 
412
- ::std::string ice_id()
413
- {
414
- return ice_id(0);
415
- }
416
- ::std::string ice_id(const ::Ice::Context& context)
417
- {
418
- return ice_id(&context);
419
- }
420
-
421
- #ifdef ICE_CPP11
422
- ::Ice::AsyncResultPtr
423
- begin_ice_id(const ::IceInternal::Function<void (const ::std::string&)>& response,
424
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
425
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
426
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
427
- {
428
- return __begin_ice_id(0, response, exception, sent);
429
- }
430
-
431
- ::Ice::AsyncResultPtr
432
- begin_ice_id(const ::Ice::Context& ctx,
433
- const ::IceInternal::Function<void (const ::std::string&)>& response,
434
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
435
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
436
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
437
- {
438
- return __begin_ice_id(&ctx, response, exception, sent);
439
- }
440
-
441
- ::Ice::AsyncResultPtr
442
- begin_ice_id(const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
443
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
444
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
445
- {
446
- return begin_ice_id(0, ::Ice::newCallback(completed, sent), 0);
447
- }
448
-
449
- ::Ice::AsyncResultPtr
450
- begin_ice_id(const ::Ice::Context& ctx,
451
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed,
452
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent =
453
- ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>())
454
- {
455
- return begin_ice_id(&ctx, ::Ice::newCallback(completed, sent), 0);
456
- }
457
- #endif
458
-
459
- ::Ice::AsyncResultPtr begin_ice_id()
1139
+ ::std::string ice_id(const ::Ice::Context& context = ::Ice::noExplicitContext)
460
1140
  {
461
- return begin_ice_id(0, ::IceInternal::__dummyCallback, 0);
1141
+ return end_ice_id(_iceI_begin_ice_id(context, ::IceInternal::dummyCallback, 0, true));
462
1142
  }
463
1143
 
464
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& __ctx)
1144
+ ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& context = ::Ice::noExplicitContext)
465
1145
  {
466
- return begin_ice_id(&__ctx, ::IceInternal::__dummyCallback, 0);
1146
+ return _iceI_begin_ice_id(context, ::IceInternal::dummyCallback, 0);
467
1147
  }
468
1148
 
469
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::CallbackPtr& __del,
470
- const ::Ice::LocalObjectPtr& __cookie = 0)
1149
+ ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::CallbackPtr& del,
1150
+ const ::Ice::LocalObjectPtr& cookie = 0)
471
1151
  {
472
- return begin_ice_id(0, __del, __cookie);
1152
+ return _iceI_begin_ice_id(::Ice::noExplicitContext, del, cookie);
473
1153
  }
474
1154
 
475
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& __ctx,
476
- const ::Ice::CallbackPtr& __del,
477
- const ::Ice::LocalObjectPtr& __cookie = 0)
1155
+ ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& context,
1156
+ const ::Ice::CallbackPtr& del,
1157
+ const ::Ice::LocalObjectPtr& cookie = 0)
478
1158
  {
479
- return begin_ice_id(&__ctx, __del, __cookie);
1159
+ return _iceI_begin_ice_id(context, del, cookie);
480
1160
  }
481
1161
 
482
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Callback_Object_ice_idPtr& __del,
483
- const ::Ice::LocalObjectPtr& __cookie = 0)
1162
+ ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Callback_Object_ice_idPtr& del,
1163
+ const ::Ice::LocalObjectPtr& cookie = 0)
484
1164
  {
485
- return begin_ice_id(0, __del, __cookie);
1165
+ return _iceI_begin_ice_id(::Ice::noExplicitContext, del, cookie);
486
1166
  }
487
1167
 
488
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& __ctx,
489
- const ::Ice::Callback_Object_ice_idPtr& __del,
490
- const ::Ice::LocalObjectPtr& __cookie = 0)
1168
+ ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& context,
1169
+ const ::Ice::Callback_Object_ice_idPtr& del,
1170
+ const ::Ice::LocalObjectPtr& cookie = 0)
491
1171
  {
492
- return begin_ice_id(&__ctx, __del, __cookie);
1172
+ return _iceI_begin_ice_id(context, del, cookie);
493
1173
  }
494
1174
 
495
1175
  ::std::string end_ice_id(const ::Ice::AsyncResultPtr&);
496
1176
 
497
-
498
1177
  static const ::std::string& ice_staticId()
499
1178
  {
500
1179
  return ::Ice::Object::ice_staticId();
501
1180
  }
502
1181
 
503
-
504
1182
  // Returns true if ok, false if user exception.
505
- bool ice_invoke(const ::std::string& operation,
506
- ::Ice::OperationMode mode,
507
- const ::std::vector< ::Ice::Byte>& inParams,
508
- ::std::vector< ::Ice::Byte>& outParams)
509
- {
510
- return ice_invoke(operation, mode, inParams, outParams, 0);
511
- }
512
-
513
- bool ice_invoke(const ::std::string& operation,
514
- ::Ice::OperationMode mode,
515
- const ::std::vector< ::Ice::Byte>& inParams,
516
- ::std::vector< ::Ice::Byte>& outParams,
517
- const ::Ice::Context& context)
518
- {
519
- return ice_invoke(operation, mode, inParams, outParams, &context);
520
- }
521
-
522
- #ifdef ICE_CPP11
523
- ::Ice::AsyncResultPtr begin_ice_invoke(
524
- const ::std::string& operation,
525
- ::Ice::OperationMode mode,
526
- const ::std::vector< ::Ice::Byte>& inParams,
527
- const ::IceInternal::Function<void (bool, const ::std::vector< ::Ice::Byte>&)>& response,
528
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
529
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
530
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
531
- {
532
- return __begin_ice_invoke(operation, mode, inParams, 0, response, exception, sent);
533
- }
534
-
535
- ::Ice::AsyncResultPtr begin_ice_invoke(
536
- const ::std::string& operation,
537
- ::Ice::OperationMode mode,
538
- const ::std::vector< ::Ice::Byte>& inParams,
539
- const ::Ice::Context& ctx,
540
- const ::IceInternal::Function<void (bool, const ::std::vector< ::Ice::Byte>&)>& response,
541
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
542
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
543
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
544
- {
545
- return __begin_ice_invoke(operation, mode, inParams, &ctx, response, exception, sent);
546
- }
547
-
548
- ::Ice::AsyncResultPtr begin_ice_invoke(
549
- const ::std::string& operation,
550
- ::Ice::OperationMode mode,
551
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
552
- const ::IceInternal::Function<void (bool, const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&)>& response,
553
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
554
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
555
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
556
- {
557
- return __begin_ice_invoke(operation, mode, inParams, 0, response, exception, sent);
558
- }
559
-
560
- ::Ice::AsyncResultPtr begin_ice_invoke(
561
- const ::std::string& operation,
562
- ::Ice::OperationMode mode,
563
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
564
- const ::Ice::Context& ctx,
565
- const ::IceInternal::Function<void (bool, const ::std::pair<const ::Ice::Byte*,
566
- const ::Ice::Byte*>&)>& response,
567
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
568
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
569
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
570
- {
571
- return __begin_ice_invoke(operation, mode, inParams, &ctx, response, exception, sent);
572
- }
573
- #endif
1183
+ bool ice_invoke(const ::std::string&,
1184
+ ::Ice::OperationMode,
1185
+ const ::std::vector< ::Ice::Byte>&,
1186
+ ::std::vector< ::Ice::Byte>&,
1187
+ const ::Ice::Context& = ::Ice::noExplicitContext);
574
1188
 
575
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1189
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
576
1190
  ::Ice::OperationMode mode,
577
1191
  const ::std::vector< ::Ice::Byte>& inParams)
578
1192
  {
579
- return begin_ice_invoke(operation, mode, inParams, 0, ::IceInternal::__dummyCallback, 0);
1193
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, ::IceInternal::dummyCallback, 0);
580
1194
  }
581
1195
 
582
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1196
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
583
1197
  ::Ice::OperationMode mode,
584
1198
  const ::std::vector< ::Ice::Byte>& inParams,
585
- const ::Ice::Context& __ctx)
1199
+ const ::Ice::Context& context)
586
1200
  {
587
- return begin_ice_invoke(operation, mode, inParams, &__ctx, ::IceInternal::__dummyCallback, 0);
1201
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, ::IceInternal::dummyCallback, 0);
588
1202
  }
589
1203
 
590
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1204
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
591
1205
  ::Ice::OperationMode mode,
592
1206
  const ::std::vector< ::Ice::Byte>& inParams,
593
- const ::Ice::CallbackPtr& __del,
594
- const ::Ice::LocalObjectPtr& __cookie = 0)
1207
+ const ::Ice::CallbackPtr& del,
1208
+ const ::Ice::LocalObjectPtr& cookie = 0)
595
1209
  {
596
- return begin_ice_invoke(operation, mode, inParams, 0, __del, __cookie);
1210
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, del, cookie);
597
1211
  }
598
1212
 
599
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1213
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
600
1214
  ::Ice::OperationMode mode,
601
1215
  const ::std::vector< ::Ice::Byte>& inParams,
602
- const ::Ice::Context& __ctx,
603
- const ::Ice::CallbackPtr& __del,
604
- const ::Ice::LocalObjectPtr& __cookie = 0)
1216
+ const ::Ice::Context& context,
1217
+ const ::Ice::CallbackPtr& del,
1218
+ const ::Ice::LocalObjectPtr& cookie = 0)
605
1219
  {
606
- return begin_ice_invoke(operation, mode, inParams, &__ctx, __del, __cookie);
1220
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, del, cookie);
607
1221
  }
608
1222
 
609
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1223
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
610
1224
  ::Ice::OperationMode mode,
611
1225
  const ::std::vector< ::Ice::Byte>& inParams,
612
- const ::Ice::Callback_Object_ice_invokePtr& __del,
613
- const ::Ice::LocalObjectPtr& __cookie = 0)
1226
+ const ::Ice::Callback_Object_ice_invokePtr& del,
1227
+ const ::Ice::LocalObjectPtr& cookie = 0)
614
1228
  {
615
- return begin_ice_invoke(operation, mode, inParams, 0, __del, __cookie);
1229
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, del, cookie);
616
1230
  }
617
1231
 
618
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1232
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
619
1233
  ::Ice::OperationMode mode,
620
1234
  const ::std::vector< ::Ice::Byte>& inParams,
621
- const ::Ice::Context& __ctx,
622
- const ::Ice::Callback_Object_ice_invokePtr& __del,
623
- const ::Ice::LocalObjectPtr& __cookie = 0)
1235
+ const ::Ice::Context& context,
1236
+ const ::Ice::Callback_Object_ice_invokePtr& del,
1237
+ const ::Ice::LocalObjectPtr& cookie = 0)
624
1238
  {
625
- return begin_ice_invoke(operation, mode, inParams, &__ctx, __del, __cookie);
1239
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, del, cookie);
626
1240
  }
627
1241
 
628
1242
  bool end_ice_invoke(::std::vector< ::Ice::Byte>&, const ::Ice::AsyncResultPtr&);
629
1243
 
630
- bool ice_invoke(const ::std::string& operation,
631
- ::Ice::OperationMode mode,
632
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
633
- ::std::vector< ::Ice::Byte>& outParams)
634
- {
635
- return ice_invoke(operation, mode, inParams, outParams, 0);
636
- }
637
-
638
- bool ice_invoke(const ::std::string& operation,
1244
+ bool ice_invoke(const ::std::string& op,
639
1245
  ::Ice::OperationMode mode,
640
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
641
- ::std::vector< ::Ice::Byte>& outParams,
642
- const ::Ice::Context& context)
1246
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inP,
1247
+ ::std::vector< ::Ice::Byte>& outP,
1248
+ const ::Ice::Context& context = ::Ice::noExplicitContext)
643
1249
  {
644
- return ice_invoke(operation, mode, inParams, outParams, &context);
1250
+ return end_ice_invoke(outP, _iceI_begin_ice_invoke(op, mode, inP, context, ::IceInternal::dummyCallback, 0, true));
645
1251
  }
646
1252
 
647
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1253
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
648
1254
  ::Ice::OperationMode mode,
649
1255
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams)
650
1256
  {
651
- return begin_ice_invoke(operation, mode, inParams, 0, ::IceInternal::__dummyCallback, 0);
1257
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, ::IceInternal::dummyCallback, 0);
652
1258
  }
653
1259
 
654
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1260
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
655
1261
  ::Ice::OperationMode mode,
656
1262
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
657
- const ::Ice::Context& __ctx,
658
- const ::Ice::LocalObjectPtr& __cookie = 0)
1263
+ const ::Ice::Context& context,
1264
+ const ::Ice::LocalObjectPtr& cookie = 0)
659
1265
  {
660
- return begin_ice_invoke(operation, mode, inParams, &__ctx, ::IceInternal::__dummyCallback, __cookie);
1266
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, ::IceInternal::dummyCallback, cookie);
661
1267
  }
662
1268
 
663
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1269
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
664
1270
  ::Ice::OperationMode mode,
665
1271
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
666
- const ::Ice::CallbackPtr& __del,
667
- const ::Ice::LocalObjectPtr& __cookie = 0)
1272
+ const ::Ice::CallbackPtr& del,
1273
+ const ::Ice::LocalObjectPtr& cookie = 0)
668
1274
  {
669
- return begin_ice_invoke(operation, mode, inParams, 0, __del, __cookie);
1275
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, del, cookie);
670
1276
  }
671
1277
 
672
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1278
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
673
1279
  ::Ice::OperationMode mode,
674
1280
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
675
- const ::Ice::Context& __ctx,
676
- const ::Ice::CallbackPtr& __del,
677
- const ::Ice::LocalObjectPtr& __cookie = 0)
1281
+ const ::Ice::Context& context,
1282
+ const ::Ice::CallbackPtr& del,
1283
+ const ::Ice::LocalObjectPtr& cookie = 0)
678
1284
  {
679
- return begin_ice_invoke(operation, mode, inParams, &__ctx, __del, __cookie);
1285
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, del, cookie);
680
1286
  }
681
1287
 
682
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1288
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
683
1289
  ::Ice::OperationMode mode,
684
1290
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
685
- const ::Ice::Callback_Object_ice_invokePtr& __del,
686
- const ::Ice::LocalObjectPtr& __cookie = 0)
1291
+ const ::Ice::Callback_Object_ice_invokePtr& del,
1292
+ const ::Ice::LocalObjectPtr& cookie = 0)
687
1293
  {
688
- return begin_ice_invoke(operation, mode, inParams, 0, __del, __cookie);
1294
+ return _iceI_begin_ice_invoke(op, mode, inParams, ::Ice::noExplicitContext, del, cookie);
689
1295
  }
690
1296
 
691
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
1297
+ ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& op,
692
1298
  ::Ice::OperationMode mode,
693
1299
  const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
694
- const ::Ice::Context& __ctx,
695
- const ::Ice::Callback_Object_ice_invokePtr& __del,
696
- const ::Ice::LocalObjectPtr& __cookie = 0)
1300
+ const ::Ice::Context& context,
1301
+ const ::Ice::Callback_Object_ice_invokePtr& del,
1302
+ const ::Ice::LocalObjectPtr& cookie = 0)
697
1303
  {
698
- return begin_ice_invoke(operation, mode, inParams, &__ctx, __del, __cookie);
1304
+ return _iceI_begin_ice_invoke(op, mode, inParams, context, del, cookie);
699
1305
  }
700
1306
 
701
- bool ___end_ice_invoke(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const ::Ice::AsyncResultPtr&);
1307
+ bool _iceI_end_ice_invoke(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const ::Ice::AsyncResultPtr&);
702
1308
 
703
1309
  ::Ice::Identity ice_getIdentity() const;
704
1310
  ::Ice::ObjectPrx ice_identity(const ::Ice::Identity&) const;
@@ -762,218 +1368,124 @@ public:
762
1368
  ::Ice::ObjectPrx ice_connectionId(const ::std::string&) const;
763
1369
  ::std::string ice_getConnectionId() const;
764
1370
 
765
- ::Ice::ConnectionPtr ice_getConnection();
766
-
767
- #ifdef ICE_CPP11
768
- ::Ice::AsyncResultPtr begin_ice_getConnection(
769
- const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed)
1371
+ ::Ice::ConnectionPtr ice_getConnection()
770
1372
  {
771
- return begin_ice_getConnectionInternal(::Ice::newCallback(completed, 0), 0);
1373
+ return end_ice_getConnection(begin_ice_getConnection());
772
1374
  }
773
1375
 
774
- ::Ice::AsyncResultPtr begin_ice_getConnection(
775
- const ::IceInternal::Function<void (const ::Ice::ConnectionPtr&)>& response,
776
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
777
- ::IceInternal::Function<void (const ::Ice::Exception&)>());
778
- #endif
779
-
780
1376
  ::Ice::AsyncResultPtr begin_ice_getConnection()
781
1377
  {
782
- return begin_ice_getConnectionInternal(::IceInternal::__dummyCallback, 0);
1378
+ return _iceI_begin_ice_getConnection(::IceInternal::dummyCallback, 0);
783
1379
  }
784
1380
 
785
- ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::CallbackPtr& __del,
786
- const ::Ice::LocalObjectPtr& __cookie = 0)
1381
+ ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::CallbackPtr& del,
1382
+ const ::Ice::LocalObjectPtr& cookie = 0)
787
1383
  {
788
- return begin_ice_getConnectionInternal(__del, __cookie);
1384
+ return _iceI_begin_ice_getConnection(del, cookie);
789
1385
  }
790
1386
 
791
- ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::Callback_Object_ice_getConnectionPtr& __del,
792
- const ::Ice::LocalObjectPtr& __cookie = 0)
1387
+ ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::Callback_Object_ice_getConnectionPtr& del,
1388
+ const ::Ice::LocalObjectPtr& cookie = 0)
793
1389
  {
794
- return begin_ice_getConnectionInternal(__del, __cookie);
1390
+ return _iceI_begin_ice_getConnection(del, cookie);
795
1391
  }
796
1392
 
797
1393
  ::Ice::ConnectionPtr end_ice_getConnection(const ::Ice::AsyncResultPtr&);
798
1394
 
799
1395
  ::Ice::ConnectionPtr ice_getCachedConnection() const;
800
1396
 
801
- void ice_flushBatchRequests();
802
-
803
- #ifdef ICE_CPP11
804
- ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(
805
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception,
806
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
1397
+ void ice_flushBatchRequests()
807
1398
  {
808
- return begin_ice_flushBatchRequestsInternal(
809
- new ::IceInternal::Cpp11FnOnewayCallbackNC(nullptr, exception, sent), 0);
1399
+ return end_ice_flushBatchRequests(begin_ice_flushBatchRequests());
810
1400
  }
811
- #endif
812
1401
 
813
1402
  ::Ice::AsyncResultPtr begin_ice_flushBatchRequests()
814
1403
  {
815
- return begin_ice_flushBatchRequestsInternal(::IceInternal::__dummyCallback, 0);
1404
+ return _iceI_begin_ice_flushBatchRequests(::IceInternal::dummyCallback, 0);
816
1405
  }
817
1406
 
818
- ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::CallbackPtr& __del,
819
- const ::Ice::LocalObjectPtr& __cookie = 0)
1407
+ ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::CallbackPtr& del,
1408
+ const ::Ice::LocalObjectPtr& cookie = 0)
820
1409
  {
821
- return begin_ice_flushBatchRequestsInternal(__del, __cookie);
1410
+ return _iceI_begin_ice_flushBatchRequests(del, cookie);
822
1411
  }
823
1412
 
824
- ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::Callback_Object_ice_flushBatchRequestsPtr& __del,
825
- const ::Ice::LocalObjectPtr& __cookie = 0)
1413
+ ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::Callback_Object_ice_flushBatchRequestsPtr& del,
1414
+ const ::Ice::LocalObjectPtr& cookie = 0)
826
1415
  {
827
- return begin_ice_flushBatchRequestsInternal(__del, __cookie);
1416
+ return _iceI_begin_ice_flushBatchRequests(del, cookie);
828
1417
  }
829
1418
 
830
1419
  void end_ice_flushBatchRequests(const ::Ice::AsyncResultPtr&);
831
1420
 
832
- const ::IceInternal::ReferencePtr& __reference() const { return _reference; }
1421
+ const ::IceInternal::ReferencePtr& _getReference() const { return _reference; }
833
1422
 
834
- ::Ice::Int __hash() const;
1423
+ ::Ice::Int _hash() const;
835
1424
 
836
- void __copyFrom(const ::Ice::ObjectPrx&);
1425
+ void _copyFrom(const ::Ice::ObjectPrx&);
837
1426
 
838
- int __handleException(const ::Ice::Exception&, const ::IceInternal::RequestHandlerPtr&, ::Ice::OperationMode,
1427
+ int _handleException(const ::Ice::Exception&, const ::IceInternal::RequestHandlerPtr&, ::Ice::OperationMode,
839
1428
  bool, int&);
840
1429
 
841
- void __checkTwowayOnly(const ::std::string&) const;
842
- void __checkAsyncTwowayOnly(const ::std::string&) const;
1430
+ void _checkTwowayOnly(const ::std::string&, bool) const;
1431
+
1432
+ void _end(const ::Ice::AsyncResultPtr&, const std::string&) const;
843
1433
 
844
- void __invoke(::IceInternal::Outgoing&) const;
845
- void __end(const ::Ice::AsyncResultPtr&, const std::string&) const;
1434
+ ::IceInternal::RequestHandlerPtr _getRequestHandler();
1435
+ ::IceInternal::BatchRequestQueuePtr _getBatchRequestQueue();
1436
+ ::IceInternal::RequestHandlerPtr _setRequestHandler(const ::IceInternal::RequestHandlerPtr&);
1437
+ void _updateRequestHandler(const ::IceInternal::RequestHandlerPtr&, const ::IceInternal::RequestHandlerPtr&);
846
1438
 
847
- ::IceInternal::RequestHandlerPtr __getRequestHandler();
848
- ::IceInternal::BatchRequestQueuePtr __getBatchRequestQueue();
849
- ::IceInternal::RequestHandlerPtr __setRequestHandler(const ::IceInternal::RequestHandlerPtr&);
850
- void __updateRequestHandler(const ::IceInternal::RequestHandlerPtr&, const ::IceInternal::RequestHandlerPtr&);
1439
+ void _write(::Ice::OutputStream&) const;
851
1440
 
852
1441
  protected:
853
1442
 
854
- virtual Object* __newInstance() const;
1443
+ virtual Object* _newInstance() const;
855
1444
 
856
1445
  private:
857
1446
 
858
- bool ice_isA(const ::std::string&, const ::Ice::Context*);
859
- ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string&,
860
- const ::Ice::Context*,
861
- const ::IceInternal::CallbackBasePtr&,
862
- const ::Ice::LocalObjectPtr&);
863
-
864
- #ifdef ICE_CPP11
865
- ::Ice::AsyncResultPtr __begin_ice_isA(
866
- const ::std::string&,
867
- const ::Ice::Context*,
868
- const ::IceInternal::Function<void (bool)>&,
869
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& =
870
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
871
- const ::IceInternal::Function<void (bool)>& = ::IceInternal::Function<void (bool)>());
872
- #endif
873
-
874
-
875
- void ice_ping(const ::Ice::Context*);
876
- ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context*,
877
- const ::IceInternal::CallbackBasePtr&,
878
- const ::Ice::LocalObjectPtr&);
879
-
880
- #ifdef ICE_CPP11
881
- ::Ice::AsyncResultPtr __begin_ice_ping(
882
- const ::Ice::Context* ctx,
883
- const ::IceInternal::Function<void ()>& response,
884
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception =
885
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
886
- const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>())
887
- {
888
- return begin_ice_ping(ctx, new ::IceInternal::Cpp11FnOnewayCallbackNC(response, exception, sent), 0);
889
- }
890
- #endif
891
-
892
- ::std::vector< ::std::string> ice_ids(const ::Ice::Context*);
893
- ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context*,
894
- const ::IceInternal::CallbackBasePtr&,
895
- const ::Ice::LocalObjectPtr&);
896
-
897
- #ifdef ICE_CPP11
898
- ::Ice::AsyncResultPtr __begin_ice_ids(
899
- const ::Ice::Context*,
900
- const ::IceInternal::Function<void (const ::std::vector< ::std::string>&)>&,
901
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& =
902
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
903
- const ::IceInternal::Function<void (bool)>& =
904
- ::IceInternal::Function<void (bool)>());
905
- #endif
906
-
907
- ::std::string ice_id(const ::Ice::Context*);
908
- ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context*,
909
- const ::IceInternal::CallbackBasePtr&,
910
- const ::Ice::LocalObjectPtr&);
911
- #ifdef ICE_CPP11
912
- ::Ice::AsyncResultPtr __begin_ice_id(
913
- const ::Ice::Context*,
914
- const ::IceInternal::Function<void (const ::std::string&)>&,
915
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& =
916
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
917
- const ::IceInternal::Function<void (bool)>& sent =
918
- ::IceInternal::Function<void (bool)>());
919
- #endif
920
-
921
- bool ice_invoke(const ::std::string&,
922
- ::Ice::OperationMode,
923
- const ::std::vector< ::Ice::Byte>&,
924
- ::std::vector< ::Ice::Byte>&,
925
- const ::Ice::Context*);
926
-
927
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string&,
928
- ::Ice::OperationMode,
929
- const ::std::vector< ::Ice::Byte>&,
930
- const ::Ice::Context*,
931
- const ::IceInternal::CallbackBasePtr&,
932
- const ::Ice::LocalObjectPtr&);
933
-
934
- #ifdef ICE_CPP11
935
- ::Ice::AsyncResultPtr __begin_ice_invoke(
936
- const ::std::string&,
937
- ::Ice::OperationMode,
938
- const ::std::vector< ::Ice::Byte>&,
939
- const ::Ice::Context*,
940
- const ::IceInternal::Function<void (bool, const ::std::vector< ::Ice::Byte>&)>&,
941
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& =
942
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
943
- const ::IceInternal::Function<void (bool)>& = ::IceInternal::Function<void (bool)>());
944
-
945
- #endif
946
-
947
- bool ice_invoke(const ::std::string&,
948
- ::Ice::OperationMode,
949
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
950
- ::std::vector< ::Ice::Byte>&,
951
- const ::Ice::Context*);
1447
+ ::Ice::AsyncResultPtr _iceI_begin_ice_isA(const ::std::string&,
1448
+ const ::Ice::Context&,
1449
+ const ::IceInternal::CallbackBasePtr&,
1450
+ const ::Ice::LocalObjectPtr&,
1451
+ bool = false);
952
1452
 
953
- ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string&,
954
- ::Ice::OperationMode,
955
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
956
- const ::Ice::Context*,
1453
+ ::Ice::AsyncResultPtr _iceI_begin_ice_ping(const ::Ice::Context&,
957
1454
  const ::IceInternal::CallbackBasePtr&,
958
- const ::Ice::LocalObjectPtr&);
959
-
960
- #ifdef ICE_CPP11
961
- ::Ice::AsyncResultPtr __begin_ice_invoke(
962
- const ::std::string&,
963
- ::Ice::OperationMode,
964
- const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
965
- const ::Ice::Context*,
966
- const ::IceInternal::Function<void (bool, const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&)>&,
967
- const ::IceInternal::Function<void (const ::Ice::Exception&)>& =
968
- ::IceInternal::Function<void (const ::Ice::Exception&)>(),
969
- const ::IceInternal::Function<void (bool)>& = ::IceInternal::Function<void (bool)>());
970
- #endif
1455
+ const ::Ice::LocalObjectPtr&,
1456
+ bool = false);
971
1457
 
972
- ::Ice::AsyncResultPtr begin_ice_getConnectionInternal(const ::IceInternal::CallbackBasePtr&,
973
- const ::Ice::LocalObjectPtr&);
1458
+ ::Ice::AsyncResultPtr _iceI_begin_ice_ids(const ::Ice::Context&,
1459
+ const ::IceInternal::CallbackBasePtr&,
1460
+ const ::Ice::LocalObjectPtr&,
1461
+ bool = false);
974
1462
 
975
- ::Ice::AsyncResultPtr begin_ice_flushBatchRequestsInternal(const ::IceInternal::CallbackBasePtr&,
976
- const ::Ice::LocalObjectPtr&);
1463
+ ::Ice::AsyncResultPtr _iceI_begin_ice_id(const ::Ice::Context&,
1464
+ const ::IceInternal::CallbackBasePtr&,
1465
+ const ::Ice::LocalObjectPtr&,
1466
+ bool = false);
1467
+
1468
+ ::Ice::AsyncResultPtr _iceI_begin_ice_invoke(const ::std::string&,
1469
+ ::Ice::OperationMode,
1470
+ const ::std::vector< ::Ice::Byte>&,
1471
+ const ::Ice::Context&,
1472
+ const ::IceInternal::CallbackBasePtr&,
1473
+ const ::Ice::LocalObjectPtr&,
1474
+ bool = false);
1475
+
1476
+ ::Ice::AsyncResultPtr _iceI_begin_ice_invoke(const ::std::string&,
1477
+ ::Ice::OperationMode,
1478
+ const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
1479
+ const ::Ice::Context&,
1480
+ const ::IceInternal::CallbackBasePtr&,
1481
+ const ::Ice::LocalObjectPtr&,
1482
+ bool = false);
1483
+
1484
+ ::Ice::AsyncResultPtr _iceI_begin_ice_getConnection(const ::IceInternal::CallbackBasePtr&,
1485
+ const ::Ice::LocalObjectPtr&);
1486
+
1487
+ ::Ice::AsyncResultPtr _iceI_begin_ice_flushBatchRequests(const ::IceInternal::CallbackBasePtr&,
1488
+ const ::Ice::LocalObjectPtr&);
977
1489
 
978
1490
  void setup(const ::IceInternal::ReferencePtr&);
979
1491
  friend class ::IceInternal::ProxyFactory;
@@ -991,6 +1503,121 @@ ICE_API ::std::ostream& operator<<(::std::ostream&, const ::IceProxy::Ice::Objec
991
1503
  namespace Ice
992
1504
  {
993
1505
 
1506
+ template<typename Prx, typename Base>
1507
+ class Proxy : public virtual Base
1508
+ {
1509
+ public:
1510
+
1511
+ IceInternal::ProxyHandle<Prx> ice_context(const ::Ice::Context& context) const
1512
+ {
1513
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_context(context).get());
1514
+ }
1515
+
1516
+ IceInternal::ProxyHandle<Prx> ice_adapterId(const ::std::string& id) const
1517
+ {
1518
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_adapterId(id).get());
1519
+ }
1520
+
1521
+ IceInternal::ProxyHandle<Prx> ice_endpoints(const ::Ice::EndpointSeq& endpoints) const
1522
+ {
1523
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_endpoints(endpoints).get());
1524
+ }
1525
+
1526
+ IceInternal::ProxyHandle<Prx> ice_locatorCacheTimeout(int timeout) const
1527
+ {
1528
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(timeout).get());
1529
+ }
1530
+
1531
+ IceInternal::ProxyHandle<Prx> ice_connectionCached(bool cached) const
1532
+ {
1533
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_connectionCached(cached).get());
1534
+ }
1535
+
1536
+ IceInternal::ProxyHandle<Prx> ice_endpointSelection(::Ice::EndpointSelectionType selection) const
1537
+ {
1538
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_endpointSelection(selection).get());
1539
+ }
1540
+
1541
+ IceInternal::ProxyHandle<Prx> ice_secure(bool secure) const
1542
+ {
1543
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_secure(secure).get());
1544
+ }
1545
+
1546
+ IceInternal::ProxyHandle<Prx> ice_preferSecure(bool preferSecure) const
1547
+ {
1548
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_preferSecure(preferSecure).get());
1549
+ }
1550
+
1551
+ IceInternal::ProxyHandle<Prx> ice_router(const ::Ice::RouterPrx& router) const
1552
+ {
1553
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_router(router).get());
1554
+ }
1555
+
1556
+ IceInternal::ProxyHandle<Prx> ice_locator(const ::Ice::LocatorPrx& locator) const
1557
+ {
1558
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_locator(locator).get());
1559
+ }
1560
+
1561
+ IceInternal::ProxyHandle<Prx> ice_collocationOptimized(bool collocated) const
1562
+ {
1563
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_collocationOptimized(collocated).get());
1564
+ }
1565
+
1566
+ IceInternal::ProxyHandle<Prx> ice_invocationTimeout(int timeout) const
1567
+ {
1568
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_invocationTimeout(timeout).get());
1569
+ }
1570
+
1571
+ IceInternal::ProxyHandle<Prx> ice_twoway() const
1572
+ {
1573
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_twoway().get());
1574
+ }
1575
+
1576
+ IceInternal::ProxyHandle<Prx> ice_oneway() const
1577
+ {
1578
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_oneway().get());
1579
+ }
1580
+
1581
+ IceInternal::ProxyHandle<Prx> ice_batchOneway() const
1582
+ {
1583
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_batchOneway().get());
1584
+ }
1585
+
1586
+ IceInternal::ProxyHandle<Prx> ice_datagram() const
1587
+ {
1588
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_datagram().get());
1589
+ }
1590
+
1591
+ IceInternal::ProxyHandle<Prx> ice_batchDatagram() const
1592
+ {
1593
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
1594
+ }
1595
+
1596
+ IceInternal::ProxyHandle<Prx> ice_compress(bool compress) const
1597
+ {
1598
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_compress(compress).get());
1599
+ }
1600
+
1601
+ IceInternal::ProxyHandle<Prx> ice_timeout(int timeout) const
1602
+ {
1603
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_timeout(timeout).get());
1604
+ }
1605
+
1606
+ IceInternal::ProxyHandle<Prx> ice_connectionId(const ::std::string& id) const
1607
+ {
1608
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_connectionId(id).get());
1609
+ }
1610
+
1611
+ IceInternal::ProxyHandle<Prx> ice_encodingVersion(const ::Ice::EncodingVersion& version) const
1612
+ {
1613
+ return dynamic_cast<Prx*>(::IceProxy::Ice::Object::ice_encodingVersion(version).get());
1614
+ }
1615
+
1616
+ protected:
1617
+
1618
+ virtual ::IceProxy::Ice::Object* _newInstance() const = 0;
1619
+ };
1620
+
994
1621
  ICE_API bool proxyIdentityLess(const ObjectPrx&, const ObjectPrx&);
995
1622
  ICE_API bool proxyIdentityEqual(const ObjectPrx&, const ObjectPrx&);
996
1623
 
@@ -1040,8 +1667,8 @@ namespace IceInternal
1040
1667
  template<typename T, typename U>
1041
1668
  inline bool operator==(const ProxyHandle<T>& lhs, const ProxyHandle<U>& rhs)
1042
1669
  {
1043
- ::IceProxy::Ice::Object* l = lhs.__upCast();
1044
- ::IceProxy::Ice::Object* r = rhs.__upCast();
1670
+ ::IceProxy::Ice::Object* l = lhs._upCast();
1671
+ ::IceProxy::Ice::Object* r = rhs._upCast();
1045
1672
  if(l && r)
1046
1673
  {
1047
1674
  return *l == *r;
@@ -1061,8 +1688,8 @@ inline bool operator!=(const ProxyHandle<T>& lhs, const ProxyHandle<U>& rhs)
1061
1688
  template<typename T, typename U>
1062
1689
  inline bool operator<(const ProxyHandle<T>& lhs, const ProxyHandle<U>& rhs)
1063
1690
  {
1064
- ::IceProxy::Ice::Object* l = lhs.__upCast();
1065
- ::IceProxy::Ice::Object* r = rhs.__upCast();
1691
+ ::IceProxy::Ice::Object* l = lhs._upCast();
1692
+ ::IceProxy::Ice::Object* r = rhs._upCast();
1066
1693
  if(l && r)
1067
1694
  {
1068
1695
  return *l < *r;
@@ -1091,25 +1718,21 @@ inline bool operator>=(const ProxyHandle<T>& lhs, const ProxyHandle<U>& rhs)
1091
1718
  return !(lhs < rhs);
1092
1719
  }
1093
1720
 
1094
-
1095
1721
  //
1096
1722
  // checkedCast and uncheckedCast functions without facet:
1097
1723
  //
1098
1724
  template<typename P> P
1099
- checkedCastImpl(const ::Ice::ObjectPrx& b, const ::Ice::Context* context)
1725
+ checkedCastImpl(const ::Ice::ObjectPrx& b, const ::Ice::Context& context)
1100
1726
  {
1101
1727
  P d = 0;
1102
1728
  if(b.get())
1103
1729
  {
1104
1730
  typedef typename P::element_type T;
1105
1731
 
1106
- d = dynamic_cast<T*>(b.get());
1107
- if(!d && (context == 0 ?
1108
- b->ice_isA(T::ice_staticId()) :
1109
- b->ice_isA(T::ice_staticId(), *context)))
1732
+ if(b->ice_isA(T::ice_staticId(), context))
1110
1733
  {
1111
1734
  d = new T;
1112
- d->__copyFrom(b);
1735
+ d->_copyFrom(b);
1113
1736
  }
1114
1737
  }
1115
1738
  return d;
@@ -1127,7 +1750,7 @@ uncheckedCastImpl(const ::Ice::ObjectPrx& b)
1127
1750
  if(!d)
1128
1751
  {
1129
1752
  d = new T;
1130
- d->__copyFrom(b);
1753
+ d->_copyFrom(b);
1131
1754
  }
1132
1755
  }
1133
1756
  return d;
@@ -1141,7 +1764,7 @@ uncheckedCastImpl(const ::Ice::ObjectPrx& b)
1141
1764
  // Helper with type ID.
1142
1765
  //
1143
1766
  ICE_API ::Ice::ObjectPrx checkedCastImpl(const ::Ice::ObjectPrx&, const std::string&, const std::string&,
1144
- const ::Ice::Context*);
1767
+ const ::Ice::Context&);
1145
1768
 
1146
1769
  //
1147
1770
  // Specializations for P = ::Ice::ObjectPrx
@@ -1149,7 +1772,7 @@ ICE_API ::Ice::ObjectPrx checkedCastImpl(const ::Ice::ObjectPrx&, const std::str
1149
1772
  //
1150
1773
 
1151
1774
  template<> inline ::Ice::ObjectPrx
1152
- checkedCastImpl< ::Ice::ObjectPrx>(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context* context)
1775
+ checkedCastImpl< ::Ice::ObjectPrx>(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context& context)
1153
1776
  {
1154
1777
  return checkedCastImpl(b, f, "::Ice::Object", context);
1155
1778
  }
@@ -1166,7 +1789,7 @@ uncheckedCastImpl< ::Ice::ObjectPrx>(const ::Ice::ObjectPrx& b, const std::strin
1166
1789
  }
1167
1790
 
1168
1791
  template<typename P> P
1169
- checkedCastImpl(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context* context)
1792
+ checkedCastImpl(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context& context)
1170
1793
  {
1171
1794
  P d = 0;
1172
1795
 
@@ -1176,7 +1799,7 @@ checkedCastImpl(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Co
1176
1799
  if(bb)
1177
1800
  {
1178
1801
  d = new T;
1179
- d->__copyFrom(bb);
1802
+ d->_copyFrom(bb);
1180
1803
  }
1181
1804
  return d;
1182
1805
  }
@@ -1191,29 +1814,23 @@ uncheckedCastImpl(const ::Ice::ObjectPrx& b, const std::string& f)
1191
1814
 
1192
1815
  ::Ice::ObjectPrx bb = b->ice_facet(f);
1193
1816
  d = new T;
1194
- d->__copyFrom(bb);
1817
+ d->_copyFrom(bb);
1195
1818
  }
1196
1819
  return d;
1197
1820
  }
1198
1821
  }
1199
1822
 
1200
1823
  //
1201
- // checkedCast and uncheckedCast functions provided in the global namespace
1824
+ // checkedCast and uncheckedCast functions provided in the Ice namespace
1202
1825
  //
1203
-
1204
- template<typename P, typename Y> inline P
1205
- checkedCast(const ::IceInternal::ProxyHandle<Y>& b)
1826
+ namespace Ice
1206
1827
  {
1207
- Y* tag = 0;
1208
- Ice::Context* ctx = 0;
1209
- return ::IceInternal::checkedCastHelper<typename P::element_type>(b, tag, ctx);
1210
- }
1211
1828
 
1212
1829
  template<typename P, typename Y> inline P
1213
- checkedCast(const ::IceInternal::ProxyHandle<Y>& b, const ::Ice::Context& context)
1830
+ checkedCast(const ::IceInternal::ProxyHandle<Y>& b, const ::Ice::Context& context = ::Ice::noExplicitContext)
1214
1831
  {
1215
1832
  Y* tag = 0;
1216
- return ::IceInternal::checkedCastHelper<typename P::element_type>(b, tag, &context);
1833
+ return ::IceInternal::checkedCastHelper<typename P::element_type>(b, tag, context);
1217
1834
  }
1218
1835
 
1219
1836
  template<typename P, typename Y> inline P
@@ -1224,16 +1841,9 @@ uncheckedCast(const ::IceInternal::ProxyHandle<Y>& b)
1224
1841
  }
1225
1842
 
1226
1843
  template<typename P> inline P
1227
- checkedCast(const ::Ice::ObjectPrx& b, const std::string& f)
1228
- {
1229
- Ice::Context* ctx = 0;
1230
- return ::IceInternal::checkedCastImpl<P>(b, f, ctx);
1231
- }
1232
-
1233
- template<typename P> inline P
1234
- checkedCast(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context& context)
1844
+ checkedCast(const ::Ice::ObjectPrx& b, const std::string& f, const ::Ice::Context& context = ::Ice::noExplicitContext)
1235
1845
  {
1236
- return ::IceInternal::checkedCastImpl<P>(b, f, &context);
1846
+ return ::IceInternal::checkedCastImpl<P>(b, f, context);
1237
1847
  }
1238
1848
 
1239
1849
  template<typename P> inline P
@@ -1242,6 +1852,8 @@ uncheckedCast(const ::Ice::ObjectPrx& b, const std::string& f)
1242
1852
  return ::IceInternal::uncheckedCastImpl<P>(b, f);
1243
1853
  }
1244
1854
 
1855
+ }
1856
+
1245
1857
  namespace IceInternal
1246
1858
  {
1247
1859
 
@@ -1249,7 +1861,7 @@ namespace IceInternal
1249
1861
  // Base template for operation callbacks.
1250
1862
  //
1251
1863
  template<class T>
1252
- class CallbackNC : virtual public CallbackBase
1864
+ class CallbackNC : public virtual CallbackBase
1253
1865
  {
1254
1866
  public:
1255
1867
 
@@ -1305,7 +1917,7 @@ private:
1305
1917
  };
1306
1918
 
1307
1919
  template<class T, typename CT>
1308
- class Callback : virtual public CallbackBase
1920
+ class Callback : public virtual CallbackBase
1309
1921
  {
1310
1922
  public:
1311
1923
 
@@ -1420,7 +2032,7 @@ public:
1420
2032
  {
1421
2033
  try
1422
2034
  {
1423
- result->getProxy()->__end(result, result->getOperation());
2035
+ result->getProxy()->_end(result, result->getOperation());
1424
2036
  }
1425
2037
  catch(const ::Ice::Exception& ex)
1426
2038
  {
@@ -1459,7 +2071,7 @@ public:
1459
2071
  {
1460
2072
  try
1461
2073
  {
1462
- result->getProxy()->__end(result, result->getOperation());
2074
+ result->getProxy()->_end(result, result->getOperation());
1463
2075
  }
1464
2076
  catch(const ::Ice::Exception& ex)
1465
2077
  {
@@ -1498,21 +2110,21 @@ public:
1498
2110
  {
1499
2111
  }
1500
2112
 
1501
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2113
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1502
2114
  {
1503
- bool __ret;
2115
+ bool ret;
1504
2116
  try
1505
2117
  {
1506
- __ret = __result->getProxy()->end_ice_isA(__result);
2118
+ ret = result->getProxy()->end_ice_isA(result);
1507
2119
  }
1508
2120
  catch(const ::Ice::Exception& ex)
1509
2121
  {
1510
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2122
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1511
2123
  return;
1512
2124
  }
1513
2125
  if(_response)
1514
2126
  {
1515
- (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(__ret);
2127
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1516
2128
  }
1517
2129
  }
1518
2130
 
@@ -1537,22 +2149,22 @@ public:
1537
2149
  {
1538
2150
  }
1539
2151
 
1540
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2152
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1541
2153
  {
1542
- bool __ret;
2154
+ bool ret;
1543
2155
  try
1544
2156
  {
1545
- __ret = __result->getProxy()->end_ice_isA(__result);
2157
+ ret = result->getProxy()->end_ice_isA(result);
1546
2158
  }
1547
2159
  catch(const ::Ice::Exception& ex)
1548
2160
  {
1549
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2161
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1550
2162
  return;
1551
2163
  }
1552
2164
  if(_response)
1553
2165
  {
1554
- (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(__ret,
1555
- CT::dynamicCast(__result->getCookie()));
2166
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
2167
+ CT::dynamicCast(result->getCookie()));
1556
2168
  }
1557
2169
  }
1558
2170
 
@@ -1611,21 +2223,21 @@ public:
1611
2223
  {
1612
2224
  }
1613
2225
 
1614
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2226
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1615
2227
  {
1616
- ::std::vector< ::std::string> __ret;
2228
+ ::std::vector< ::std::string> ret;
1617
2229
  try
1618
2230
  {
1619
- __ret = __result->getProxy()->end_ice_ids(__result);
2231
+ ret = result->getProxy()->end_ice_ids(result);
1620
2232
  }
1621
2233
  catch(const ::Ice::Exception& ex)
1622
2234
  {
1623
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2235
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1624
2236
  return;
1625
2237
  }
1626
2238
  if(_response)
1627
2239
  {
1628
- (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(__ret);
2240
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1629
2241
  }
1630
2242
  }
1631
2243
 
@@ -1650,22 +2262,22 @@ public:
1650
2262
  {
1651
2263
  }
1652
2264
 
1653
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2265
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1654
2266
  {
1655
- ::std::vector< ::std::string> __ret;
2267
+ ::std::vector< ::std::string> ret;
1656
2268
  try
1657
2269
  {
1658
- __ret = __result->getProxy()->end_ice_ids(__result);
2270
+ ret = result->getProxy()->end_ice_ids(result);
1659
2271
  }
1660
2272
  catch(const ::Ice::Exception& ex)
1661
2273
  {
1662
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2274
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1663
2275
  return;
1664
2276
  }
1665
2277
  if(_response)
1666
2278
  {
1667
- (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(__ret,
1668
- CT::dynamicCast(__result->getCookie()));
2279
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
2280
+ CT::dynamicCast(result->getCookie()));
1669
2281
  }
1670
2282
  }
1671
2283
 
@@ -1690,21 +2302,21 @@ public:
1690
2302
  {
1691
2303
  }
1692
2304
 
1693
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2305
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1694
2306
  {
1695
- ::std::string __ret;
2307
+ ::std::string ret;
1696
2308
  try
1697
2309
  {
1698
- __ret = __result->getProxy()->end_ice_id(__result);
2310
+ ret = result->getProxy()->end_ice_id(result);
1699
2311
  }
1700
2312
  catch(const ::Ice::Exception& ex)
1701
2313
  {
1702
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2314
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1703
2315
  return;
1704
2316
  }
1705
2317
  if(_response)
1706
2318
  {
1707
- (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(__ret);
2319
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1708
2320
  }
1709
2321
  }
1710
2322
 
@@ -1729,22 +2341,22 @@ public:
1729
2341
  {
1730
2342
  }
1731
2343
 
1732
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2344
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1733
2345
  {
1734
- ::std::string __ret;
2346
+ ::std::string ret;
1735
2347
  try
1736
2348
  {
1737
- __ret = __result->getProxy()->end_ice_id(__result);
2349
+ ret = result->getProxy()->end_ice_id(result);
1738
2350
  }
1739
2351
  catch(const ::Ice::Exception& ex)
1740
2352
  {
1741
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2353
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1742
2354
  return;
1743
2355
  }
1744
2356
  if(_response)
1745
2357
  {
1746
- (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(__ret,
1747
- CT::dynamicCast(__result->getCookie()));
2358
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
2359
+ CT::dynamicCast(result->getCookie()));
1748
2360
  }
1749
2361
  }
1750
2362
 
@@ -1775,39 +2387,39 @@ public:
1775
2387
  {
1776
2388
  }
1777
2389
 
1778
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2390
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1779
2391
  {
1780
2392
  if(_response)
1781
2393
  {
1782
- bool __ok;
2394
+ bool ok;
1783
2395
  std::vector< ::Ice::Byte> outParams;
1784
2396
  try
1785
2397
  {
1786
- __ok = __result->getProxy()->end_ice_invoke(outParams, __result);
2398
+ ok = result->getProxy()->end_ice_invoke(outParams, result);
1787
2399
  }
1788
2400
  catch(const ::Ice::Exception& ex)
1789
2401
  {
1790
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2402
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1791
2403
  return;
1792
2404
  }
1793
- (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(__ok, outParams);
2405
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ok, outParams);
1794
2406
  }
1795
2407
  else
1796
2408
  {
1797
- bool __ok;
2409
+ bool ok;
1798
2410
  std::pair<const ::Ice::Byte*, const::Ice::Byte*> outParams;
1799
2411
  try
1800
2412
  {
1801
- __ok = __result->getProxy()->___end_ice_invoke(outParams, __result);
2413
+ ok = result->getProxy()->_iceI_end_ice_invoke(outParams, result);
1802
2414
  }
1803
2415
  catch(const ::Ice::Exception& ex)
1804
2416
  {
1805
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2417
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1806
2418
  return;
1807
2419
  }
1808
2420
  if(_responseArray)
1809
2421
  {
1810
- (::IceInternal::CallbackNC<T>::_callback.get()->*_responseArray)(__ok, outParams);
2422
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_responseArray)(ok, outParams);
1811
2423
  }
1812
2424
  }
1813
2425
  }
@@ -1840,44 +2452,44 @@ public:
1840
2452
  {
1841
2453
  }
1842
2454
 
1843
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2455
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1844
2456
  {
1845
2457
  if(_response)
1846
2458
  {
1847
- bool __ok;
2459
+ bool ok;
1848
2460
  std::vector< ::Ice::Byte> outParams;
1849
2461
  try
1850
2462
  {
1851
- __ok = __result->getProxy()->end_ice_invoke(outParams, __result);
2463
+ ok = result->getProxy()->end_ice_invoke(outParams, result);
1852
2464
  }
1853
2465
  catch(const ::Ice::Exception& ex)
1854
2466
  {
1855
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2467
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1856
2468
  return;
1857
2469
  }
1858
- (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(__ok,
2470
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ok,
1859
2471
  outParams,
1860
- CT::dynamicCast(__result->getCookie()));
2472
+ CT::dynamicCast(result->getCookie()));
1861
2473
  }
1862
2474
  else
1863
2475
  {
1864
- bool __ok;
2476
+ bool ok;
1865
2477
  std::pair<const ::Ice::Byte*, const::Ice::Byte*> outParams;
1866
2478
  try
1867
2479
  {
1868
- __ok = __result->getProxy()->___end_ice_invoke(outParams, __result);
2480
+ ok = result->getProxy()->_iceI_end_ice_invoke(outParams, result);
1869
2481
  }
1870
2482
  catch(const ::Ice::Exception& ex)
1871
2483
  {
1872
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2484
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1873
2485
  return;
1874
2486
  }
1875
2487
  if(_responseArray)
1876
2488
  {
1877
- (::IceInternal::Callback<T, CT>::_callback.get()->*_responseArray)(__ok,
2489
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_responseArray)(ok,
1878
2490
  outParams,
1879
2491
  CT::dynamicCast(
1880
- __result->getCookie()));
2492
+ result->getCookie()));
1881
2493
  }
1882
2494
  }
1883
2495
  }
@@ -1905,22 +2517,21 @@ public:
1905
2517
  {
1906
2518
  }
1907
2519
 
1908
-
1909
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2520
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1910
2521
  {
1911
- ::Ice::ConnectionPtr __ret;
2522
+ ::Ice::ConnectionPtr ret;
1912
2523
  try
1913
2524
  {
1914
- __ret = __result->getProxy()->end_ice_getConnection(__result);
2525
+ ret = result->getProxy()->end_ice_getConnection(result);
1915
2526
  }
1916
2527
  catch(const ::Ice::Exception& ex)
1917
2528
  {
1918
- ::IceInternal::CallbackNC<T>::exception(__result, ex);
2529
+ ::IceInternal::CallbackNC<T>::exception(result, ex);
1919
2530
  return;
1920
2531
  }
1921
2532
  if(_response)
1922
2533
  {
1923
- (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(__ret);
2534
+ (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
1924
2535
  }
1925
2536
  }
1926
2537
 
@@ -1946,22 +2557,22 @@ public:
1946
2557
  {
1947
2558
  }
1948
2559
 
1949
- virtual void completed(const ::Ice::AsyncResultPtr& __result) const
2560
+ virtual void completed(const ::Ice::AsyncResultPtr& result) const
1950
2561
  {
1951
- ::Ice::ConnectionPtr __ret;
2562
+ ::Ice::ConnectionPtr ret;
1952
2563
  try
1953
2564
  {
1954
- __ret = __result->getProxy()->end_ice_getConnection(__result);
2565
+ ret = result->getProxy()->end_ice_getConnection(result);
1955
2566
  }
1956
2567
  catch(const ::Ice::Exception& ex)
1957
2568
  {
1958
- ::IceInternal::Callback<T, CT>::exception(__result, ex);
2569
+ ::IceInternal::Callback<T, CT>::exception(result, ex);
1959
2570
  return;
1960
2571
  }
1961
2572
  if(_response)
1962
2573
  {
1963
- (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(__ret,
1964
- CT::dynamicCast(__result->getCookie()));
2574
+ (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
2575
+ CT::dynamicCast(result->getCookie()));
1965
2576
  }
1966
2577
  }
1967
2578
 
@@ -2448,5 +3059,6 @@ newCallback_Object_ice_flushBatchRequests(T* instance,
2448
3059
  }
2449
3060
 
2450
3061
  }
3062
+ #endif
2451
3063
 
2452
3064
  #endif