zeroc-ice 3.6b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ICE_LICENSE +54 -0
- data/LICENSE +339 -0
- data/bin/slice2rb +17 -0
- data/ext/Communicator.cpp +596 -0
- data/ext/Communicator.h +25 -0
- data/ext/Config.h +111 -0
- data/ext/Connection.cpp +381 -0
- data/ext/Connection.h +26 -0
- data/ext/Endpoint.cpp +311 -0
- data/ext/Endpoint.h +27 -0
- data/ext/ImplicitContext.cpp +152 -0
- data/ext/ImplicitContext.h +25 -0
- data/ext/Init.cpp +52 -0
- data/ext/Logger.cpp +151 -0
- data/ext/Logger.h +28 -0
- data/ext/ObjectFactory.cpp +140 -0
- data/ext/ObjectFactory.h +50 -0
- data/ext/Operation.cpp +676 -0
- data/ext/Operation.h +36 -0
- data/ext/Properties.cpp +369 -0
- data/ext/Properties.h +25 -0
- data/ext/Proxy.cpp +1354 -0
- data/ext/Proxy.h +27 -0
- data/ext/Slice.cpp +223 -0
- data/ext/Slice.h +22 -0
- data/ext/Types.cpp +3160 -0
- data/ext/Types.h +545 -0
- data/ext/Util.cpp +792 -0
- data/ext/Util.h +511 -0
- data/ext/extconf.rb +118 -0
- data/ext/ice/BZIP_LICENSE +42 -0
- data/ext/ice/MCPP_LICENSE +36 -0
- data/ext/ice/bzip2/blocksort.c +1094 -0
- data/ext/ice/bzip2/bzlib.c +1572 -0
- data/ext/ice/bzip2/bzlib.h +282 -0
- data/ext/ice/bzip2/bzlib_private.h +509 -0
- data/ext/ice/bzip2/compress.c +672 -0
- data/ext/ice/bzip2/crctable.c +104 -0
- data/ext/ice/bzip2/decompress.c +646 -0
- data/ext/ice/bzip2/huffman.c +205 -0
- data/ext/ice/bzip2/randtable.c +84 -0
- data/ext/ice/cpp/include/Ice/ACMF.h +30 -0
- data/ext/ice/cpp/include/Ice/Application.h +156 -0
- data/ext/ice/cpp/include/Ice/AsyncResult.h +363 -0
- data/ext/ice/cpp/include/Ice/AsyncResultF.h +26 -0
- data/ext/ice/cpp/include/Ice/BasicStream.h +1315 -0
- data/ext/ice/cpp/include/Ice/Buffer.h +159 -0
- data/ext/ice/cpp/include/Ice/BuiltinSequences.h +74 -0
- data/ext/ice/cpp/include/Ice/Communicator.h +194 -0
- data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +115 -0
- data/ext/ice/cpp/include/Ice/CommunicatorF.h +60 -0
- data/ext/ice/cpp/include/Ice/Config.h +97 -0
- data/ext/ice/cpp/include/Ice/Connection.h +495 -0
- data/ext/ice/cpp/include/Ice/ConnectionAsync.h +115 -0
- data/ext/ice/cpp/include/Ice/ConnectionF.h +72 -0
- data/ext/ice/cpp/include/Ice/ConnectionFactoryF.h +30 -0
- data/ext/ice/cpp/include/Ice/ConnectionIF.h +37 -0
- data/ext/ice/cpp/include/Ice/Current.h +94 -0
- data/ext/ice/cpp/include/Ice/DefaultObjectFactory.h +48 -0
- data/ext/ice/cpp/include/Ice/DeprecatedStringConverter.h +62 -0
- data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +33 -0
- data/ext/ice/cpp/include/Ice/Dispatcher.h +51 -0
- data/ext/ice/cpp/include/Ice/DynamicLibrary.h +105 -0
- data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +29 -0
- data/ext/ice/cpp/include/Ice/Endpoint.h +350 -0
- data/ext/ice/cpp/include/Ice/EndpointF.h +97 -0
- data/ext/ice/cpp/include/Ice/EndpointTypes.h +74 -0
- data/ext/ice/cpp/include/Ice/Exception.h +114 -0
- data/ext/ice/cpp/include/Ice/FacetMap.h +56 -0
- data/ext/ice/cpp/include/Ice/FactoryTable.h +69 -0
- data/ext/ice/cpp/include/Ice/FactoryTableInit.h +87 -0
- data/ext/ice/cpp/include/Ice/Format.h +39 -0
- data/ext/ice/cpp/include/Ice/Functional.h +138 -0
- data/ext/ice/cpp/include/Ice/GCObject.h +73 -0
- data/ext/ice/cpp/include/Ice/Handle.h +192 -0
- data/ext/ice/cpp/include/Ice/Ice.h +54 -0
- data/ext/ice/cpp/include/Ice/Identity.h +160 -0
- data/ext/ice/cpp/include/Ice/ImplicitContext.h +96 -0
- data/ext/ice/cpp/include/Ice/ImplicitContextF.h +60 -0
- data/ext/ice/cpp/include/Ice/Incoming.h +131 -0
- data/ext/ice/cpp/include/Ice/IncomingAsync.h +108 -0
- data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +35 -0
- data/ext/ice/cpp/include/Ice/Initialize.h +141 -0
- data/ext/ice/cpp/include/Ice/InstanceF.h +26 -0
- data/ext/ice/cpp/include/Ice/Instrumentation.h +377 -0
- data/ext/ice/cpp/include/Ice/InstrumentationF.h +71 -0
- data/ext/ice/cpp/include/Ice/LocalException.h +1022 -0
- data/ext/ice/cpp/include/Ice/LocalObject.h +36 -0
- data/ext/ice/cpp/include/Ice/LocalObjectF.h +26 -0
- data/ext/ice/cpp/include/Ice/Locator.h +2191 -0
- data/ext/ice/cpp/include/Ice/LocatorF.h +89 -0
- data/ext/ice/cpp/include/Ice/Logger.h +94 -0
- data/ext/ice/cpp/include/Ice/LoggerF.h +60 -0
- data/ext/ice/cpp/include/Ice/LoggerUtil.h +153 -0
- data/ext/ice/cpp/include/Ice/Makefile +26 -0
- data/ext/ice/cpp/include/Ice/Metrics.h +2989 -0
- data/ext/ice/cpp/include/Ice/MetricsAdminI.h +662 -0
- data/ext/ice/cpp/include/Ice/MetricsFunctional.h +144 -0
- data/ext/ice/cpp/include/Ice/MetricsObserverI.h +576 -0
- data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +55 -0
- data/ext/ice/cpp/include/Ice/Object.h +165 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapter.h +162 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapterF.h +60 -0
- data/ext/ice/cpp/include/Ice/ObjectAdapterFactoryF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObjectF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObjectFactory.h +86 -0
- data/ext/ice/cpp/include/Ice/ObjectFactoryF.h +60 -0
- data/ext/ice/cpp/include/Ice/ObjectFactoryManagerF.h +26 -0
- data/ext/ice/cpp/include/Ice/ObserverHelper.h +177 -0
- data/ext/ice/cpp/include/Ice/Outgoing.h +197 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsync.h +264 -0
- data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +38 -0
- data/ext/ice/cpp/include/Ice/Plugin.h +121 -0
- data/ext/ice/cpp/include/Ice/PluginF.h +66 -0
- data/ext/ice/cpp/include/Ice/Process.h +568 -0
- data/ext/ice/cpp/include/Ice/ProcessF.h +77 -0
- data/ext/ice/cpp/include/Ice/Properties.h +130 -0
- data/ext/ice/cpp/include/Ice/PropertiesAdmin.h +824 -0
- data/ext/ice/cpp/include/Ice/PropertiesF.h +83 -0
- data/ext/ice/cpp/include/Ice/Protocol.h +242 -0
- data/ext/ice/cpp/include/Ice/Proxy.h +2448 -0
- data/ext/ice/cpp/include/Ice/ProxyF.h +78 -0
- data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +26 -0
- data/ext/ice/cpp/include/Ice/ProxyHandle.h +330 -0
- data/ext/ice/cpp/include/Ice/ReferenceF.h +34 -0
- data/ext/ice/cpp/include/Ice/RemoteLogger.h +1496 -0
- data/ext/ice/cpp/include/Ice/RequestHandlerF.h +29 -0
- data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +25 -0
- data/ext/ice/cpp/include/Ice/Router.h +1155 -0
- data/ext/ice/cpp/include/Ice/RouterF.h +77 -0
- data/ext/ice/cpp/include/Ice/ServantLocator.h +90 -0
- data/ext/ice/cpp/include/Ice/ServantLocatorF.h +60 -0
- data/ext/ice/cpp/include/Ice/ServantManagerF.h +26 -0
- data/ext/ice/cpp/include/Ice/Service.h +260 -0
- data/ext/ice/cpp/include/Ice/SliceChecksumDict.h +56 -0
- data/ext/ice/cpp/include/Ice/SliceChecksums.h +34 -0
- data/ext/ice/cpp/include/Ice/SlicedData.h +103 -0
- data/ext/ice/cpp/include/Ice/SlicedDataF.h +34 -0
- data/ext/ice/cpp/include/Ice/Stream.h +449 -0
- data/ext/ice/cpp/include/Ice/StreamF.h +30 -0
- data/ext/ice/cpp/include/Ice/StreamHelpers.h +877 -0
- data/ext/ice/cpp/include/Ice/ThreadPoolF.h +28 -0
- data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +56 -0
- data/ext/ice/cpp/include/Ice/Version.h +254 -0
- data/ext/ice/cpp/include/IceSSL/Config.h +23 -0
- data/ext/ice/cpp/include/IceSSL/ConnectionInfo.h +119 -0
- data/ext/ice/cpp/include/IceSSL/EndpointInfo.h +101 -0
- data/ext/ice/cpp/include/IceSSL/IceSSL.h +22 -0
- data/ext/ice/cpp/include/IceSSL/Makefile +26 -0
- data/ext/ice/cpp/include/IceSSL/Plugin.h +558 -0
- data/ext/ice/cpp/include/IceUtil/AbstractMutex.h +119 -0
- data/ext/ice/cpp/include/IceUtil/Cache.h +362 -0
- data/ext/ice/cpp/include/IceUtil/Cond.h +323 -0
- data/ext/ice/cpp/include/IceUtil/Config.h +234 -0
- data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +50 -0
- data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +70 -0
- data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +45 -0
- data/ext/ice/cpp/include/IceUtil/Exception.h +184 -0
- data/ext/ice/cpp/include/IceUtil/Functional.h +389 -0
- data/ext/ice/cpp/include/IceUtil/Handle.h +266 -0
- data/ext/ice/cpp/include/IceUtil/IceUtil.h +51 -0
- data/ext/ice/cpp/include/IceUtil/IconvStringConverter.h +302 -0
- data/ext/ice/cpp/include/IceUtil/InputUtil.h +47 -0
- data/ext/ice/cpp/include/IceUtil/Iterator.h +36 -0
- data/ext/ice/cpp/include/IceUtil/Lock.h +135 -0
- data/ext/ice/cpp/include/IceUtil/Makefile +26 -0
- data/ext/ice/cpp/include/IceUtil/Monitor.h +249 -0
- data/ext/ice/cpp/include/IceUtil/Mutex.h +357 -0
- data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +28 -0
- data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +83 -0
- data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +82 -0
- data/ext/ice/cpp/include/IceUtil/Optional.h +322 -0
- data/ext/ice/cpp/include/IceUtil/Options.h +141 -0
- data/ext/ice/cpp/include/IceUtil/OutputUtil.h +362 -0
- data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +19 -0
- data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +26 -0
- data/ext/ice/cpp/include/IceUtil/Random.h +24 -0
- data/ext/ice/cpp/include/IceUtil/RecMutex.h +113 -0
- data/ext/ice/cpp/include/IceUtil/SHA1.h +65 -0
- data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +44 -0
- data/ext/ice/cpp/include/IceUtil/ScopedArray.h +97 -0
- data/ext/ice/cpp/include/IceUtil/Shared.h +168 -0
- data/ext/ice/cpp/include/IceUtil/StringConverter.h +175 -0
- data/ext/ice/cpp/include/IceUtil/StringUtil.h +91 -0
- data/ext/ice/cpp/include/IceUtil/Thread.h +181 -0
- data/ext/ice/cpp/include/IceUtil/ThreadException.h +108 -0
- data/ext/ice/cpp/include/IceUtil/Time.h +209 -0
- data/ext/ice/cpp/include/IceUtil/Timer.h +143 -0
- data/ext/ice/cpp/include/IceUtil/UUID.h +22 -0
- data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +42 -0
- data/ext/ice/cpp/include/IceUtil/UniquePtr.h +101 -0
- data/ext/ice/cpp/include/Slice/CPlusPlusUtil.h +64 -0
- data/ext/ice/cpp/include/Slice/Checksum.h +26 -0
- data/ext/ice/cpp/include/Slice/CsUtil.h +92 -0
- data/ext/ice/cpp/include/Slice/DotNetNames.h +34 -0
- data/ext/ice/cpp/include/Slice/FileTracker.h +71 -0
- data/ext/ice/cpp/include/Slice/JavaUtil.h +277 -0
- data/ext/ice/cpp/include/Slice/Makefile +26 -0
- data/ext/ice/cpp/include/Slice/PHPUtil.h +50 -0
- data/ext/ice/cpp/include/Slice/Parser.h +1116 -0
- data/ext/ice/cpp/include/Slice/Preprocessor.h +68 -0
- data/ext/ice/cpp/include/Slice/PythonUtil.h +64 -0
- data/ext/ice/cpp/include/Slice/RubyUtil.h +54 -0
- data/ext/ice/cpp/include/Slice/Util.h +33 -0
- data/ext/ice/cpp/src/Ice/ACM.cpp +343 -0
- data/ext/ice/cpp/src/Ice/ACM.h +117 -0
- data/ext/ice/cpp/src/Ice/Acceptor.cpp +16 -0
- data/ext/ice/cpp/src/Ice/Acceptor.h +41 -0
- data/ext/ice/cpp/src/Ice/AcceptorF.h +30 -0
- data/ext/ice/cpp/src/Ice/Application.cpp +760 -0
- data/ext/ice/cpp/src/Ice/AsyncResult.cpp +599 -0
- data/ext/ice/cpp/src/Ice/Base64.cpp +269 -0
- data/ext/ice/cpp/src/Ice/Base64.h +36 -0
- data/ext/ice/cpp/src/Ice/BasicStream.cpp +3393 -0
- data/ext/ice/cpp/src/Ice/Buffer.cpp +98 -0
- data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +34 -0
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +718 -0
- data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +106 -0
- data/ext/ice/cpp/src/Ice/Communicator.cpp +45 -0
- data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +386 -0
- data/ext/ice/cpp/src/Ice/CommunicatorI.h +112 -0
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +546 -0
- data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +97 -0
- data/ext/ice/cpp/src/Ice/Connection.cpp +58 -0
- data/ext/ice/cpp/src/Ice/ConnectionF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +1639 -0
- data/ext/ice/cpp/src/Ice/ConnectionFactory.h +236 -0
- data/ext/ice/cpp/src/Ice/ConnectionI.cpp +3876 -0
- data/ext/ice/cpp/src/Ice/ConnectionI.h +364 -0
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +115 -0
- data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +50 -0
- data/ext/ice/cpp/src/Ice/Connector.cpp +16 -0
- data/ext/ice/cpp/src/Ice/Connector.h +36 -0
- data/ext/ice/cpp/src/Ice/ConnectorF.h +26 -0
- data/ext/ice/cpp/src/Ice/Current.cpp +38 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +168 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +57 -0
- data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +26 -0
- data/ext/ice/cpp/src/Ice/DeprecatedStringConverter.cpp +60 -0
- data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +49 -0
- data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +281 -0
- data/ext/ice/cpp/src/Ice/Endpoint.cpp +53 -0
- data/ext/ice/cpp/src/Ice/EndpointF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +25 -0
- data/ext/ice/cpp/src/Ice/EndpointFactory.h +44 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +26 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +208 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +46 -0
- data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +26 -0
- data/ext/ice/cpp/src/Ice/EndpointI.cpp +87 -0
- data/ext/ice/cpp/src/Ice/EndpointI.h +165 -0
- data/ext/ice/cpp/src/Ice/EndpointIF.h +41 -0
- data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +38 -0
- data/ext/ice/cpp/src/Ice/EventHandler.cpp +35 -0
- data/ext/ice/cpp/src/Ice/EventHandler.h +78 -0
- data/ext/ice/cpp/src/Ice/EventHandlerF.h +26 -0
- data/ext/ice/cpp/src/Ice/EventLoggerMsg.h +53 -0
- data/ext/ice/cpp/src/Ice/Exception.cpp +832 -0
- data/ext/ice/cpp/src/Ice/FacetMap.cpp +34 -0
- data/ext/ice/cpp/src/Ice/FactoryTable.cpp +158 -0
- data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +95 -0
- data/ext/ice/cpp/src/Ice/GCObject.cpp +444 -0
- data/ext/ice/cpp/src/Ice/HashUtil.h +59 -0
- data/ext/ice/cpp/src/Ice/HttpParser.cpp +680 -0
- data/ext/ice/cpp/src/Ice/HttpParser.h +124 -0
- data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +733 -0
- data/ext/ice/cpp/src/Ice/IPEndpointI.h +157 -0
- data/ext/ice/cpp/src/Ice/IPEndpointIF.h +29 -0
- data/ext/ice/cpp/src/Ice/Identity.cpp +42 -0
- data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +639 -0
- data/ext/ice/cpp/src/Ice/ImplicitContextI.h +51 -0
- data/ext/ice/cpp/src/Ice/Incoming.cpp +757 -0
- data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +340 -0
- data/ext/ice/cpp/src/Ice/IncomingRequest.h +37 -0
- data/ext/ice/cpp/src/Ice/Initialize.cpp +401 -0
- data/ext/ice/cpp/src/Ice/Instance.cpp +1928 -0
- data/ext/ice/cpp/src/Ice/Instance.h +198 -0
- data/ext/ice/cpp/src/Ice/Instrumentation.cpp +68 -0
- data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +43 -0
- data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +1083 -0
- data/ext/ice/cpp/src/Ice/InstrumentationI.h +262 -0
- data/ext/ice/cpp/src/Ice/LocalException.cpp +2091 -0
- data/ext/ice/cpp/src/Ice/LocalObject.cpp +29 -0
- data/ext/ice/cpp/src/Ice/Locator.cpp +1946 -0
- data/ext/ice/cpp/src/Ice/LocatorF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +917 -0
- data/ext/ice/cpp/src/Ice/LocatorInfo.h +193 -0
- data/ext/ice/cpp/src/Ice/LocatorInfoF.h +34 -0
- data/ext/ice/cpp/src/Ice/Logger.cpp +40 -0
- data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +862 -0
- data/ext/ice/cpp/src/Ice/LoggerAdminI.h +46 -0
- data/ext/ice/cpp/src/Ice/LoggerF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/LoggerI.cpp +199 -0
- data/ext/ice/cpp/src/Ice/LoggerI.h +57 -0
- data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +107 -0
- data/ext/ice/cpp/src/Ice/Makefile +190 -0
- data/ext/ice/cpp/src/Ice/Metrics.cpp +2159 -0
- data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +669 -0
- data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +14 -0
- data/ext/ice/cpp/src/Ice/Network.cpp +2694 -0
- data/ext/ice/cpp/src/Ice/Network.h +291 -0
- data/ext/ice/cpp/src/Ice/NetworkF.h +28 -0
- data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +325 -0
- data/ext/ice/cpp/src/Ice/NetworkProxy.h +74 -0
- data/ext/ice/cpp/src/Ice/NetworkProxyF.h +26 -0
- data/ext/ice/cpp/src/Ice/Object.cpp +440 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +241 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +52 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +1498 -0
- data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +155 -0
- data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.cpp +140 -0
- data/ext/ice/cpp/src/Ice/ObjectFactoryManager.h +43 -0
- data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +84 -0
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +407 -0
- data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +70 -0
- data/ext/ice/cpp/src/Ice/Outgoing.cpp +737 -0
- data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +874 -0
- data/ext/ice/cpp/src/Ice/Plugin.cpp +43 -0
- data/ext/ice/cpp/src/Ice/PluginF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +503 -0
- data/ext/ice/cpp/src/Ice/PluginManagerI.h +67 -0
- data/ext/ice/cpp/src/Ice/Process.cpp +299 -0
- data/ext/ice/cpp/src/Ice/ProcessF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/Properties.cpp +45 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +555 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +207 -0
- data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +45 -0
- data/ext/ice/cpp/src/Ice/PropertiesF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/PropertiesI.cpp +759 -0
- data/ext/ice/cpp/src/Ice/PropertiesI.h +78 -0
- data/ext/ice/cpp/src/Ice/PropertyNames.cpp +1293 -0
- data/ext/ice/cpp/src/Ice/PropertyNames.h +81 -0
- data/ext/ice/cpp/src/Ice/Protocol.cpp +137 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +98 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstance.h +91 -0
- data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +26 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +51 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +67 -0
- data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +26 -0
- data/ext/ice/cpp/src/Ice/Proxy.cpp +1810 -0
- data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +305 -0
- data/ext/ice/cpp/src/Ice/ProxyFactory.h +57 -0
- data/ext/ice/cpp/src/Ice/Reference.cpp +1947 -0
- data/ext/ice/cpp/src/Ice/Reference.h +305 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +937 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactory.h +81 -0
- data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +24 -0
- data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +958 -0
- data/ext/ice/cpp/src/Ice/ReplyStatus.h +29 -0
- data/ext/ice/cpp/src/Ice/RequestHandler.cpp +40 -0
- data/ext/ice/cpp/src/Ice/RequestHandler.h +90 -0
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +70 -0
- data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +41 -0
- data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +20 -0
- data/ext/ice/cpp/src/Ice/ResponseHandler.h +39 -0
- data/ext/ice/cpp/src/Ice/RetryQueue.cpp +154 -0
- data/ext/ice/cpp/src/Ice/RetryQueue.h +69 -0
- data/ext/ice/cpp/src/Ice/RetryQueueF.h +24 -0
- data/ext/ice/cpp/src/Ice/Router.cpp +849 -0
- data/ext/ice/cpp/src/Ice/RouterF.cpp +39 -0
- data/ext/ice/cpp/src/Ice/RouterInfo.cpp +381 -0
- data/ext/ice/cpp/src/Ice/RouterInfo.h +148 -0
- data/ext/ice/cpp/src/Ice/RouterInfoF.h +30 -0
- data/ext/ice/cpp/src/Ice/Selector.cpp +926 -0
- data/ext/ice/cpp/src/Ice/Selector.h +231 -0
- data/ext/ice/cpp/src/Ice/ServantLocator.cpp +41 -0
- data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +38 -0
- data/ext/ice/cpp/src/Ice/ServantManager.cpp +495 -0
- data/ext/ice/cpp/src/Ice/ServantManager.h +74 -0
- data/ext/ice/cpp/src/Ice/Service.cpp +1897 -0
- data/ext/ice/cpp/src/Ice/SharedContext.h +51 -0
- data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +34 -0
- data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +80 -0
- data/ext/ice/cpp/src/Ice/SlicedData.cpp +80 -0
- data/ext/ice/cpp/src/Ice/Stream.cpp +53 -0
- data/ext/ice/cpp/src/Ice/StreamI.cpp +832 -0
- data/ext/ice/cpp/src/Ice/StreamI.h +198 -0
- data/ext/ice/cpp/src/Ice/StreamSocket.cpp +521 -0
- data/ext/ice/cpp/src/Ice/StreamSocket.h +85 -0
- data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +145 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +167 -0
- data/ext/ice/cpp/src/Ice/SysLoggerI.h +43 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +235 -0
- data/ext/ice/cpp/src/Ice/TcpAcceptor.h +67 -0
- data/ext/ice/cpp/src/Ice/TcpConnector.cpp +133 -0
- data/ext/ice/cpp/src/Ice/TcpConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +397 -0
- data/ext/ice/cpp/src/Ice/TcpEndpointI.h +93 -0
- data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +127 -0
- data/ext/ice/cpp/src/Ice/TcpTransceiver.h +61 -0
- data/ext/ice/cpp/src/Ice/ThreadPool.cpp +1357 -0
- data/ext/ice/cpp/src/Ice/ThreadPool.h +399 -0
- data/ext/ice/cpp/src/Ice/TraceLevels.cpp +43 -0
- data/ext/ice/cpp/src/Ice/TraceLevels.h +50 -0
- data/ext/ice/cpp/src/Ice/TraceLevelsF.h +26 -0
- data/ext/ice/cpp/src/Ice/TraceUtil.cpp +452 -0
- data/ext/ice/cpp/src/Ice/TraceUtil.h +28 -0
- data/ext/ice/cpp/src/Ice/Transceiver.cpp +24 -0
- data/ext/ice/cpp/src/Ice/Transceiver.h +52 -0
- data/ext/ice/cpp/src/Ice/TransceiverF.h +38 -0
- data/ext/ice/cpp/src/Ice/UdpConnector.cpp +144 -0
- data/ext/ice/cpp/src/Ice/UdpConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +483 -0
- data/ext/ice/cpp/src/Ice/UdpEndpointI.h +95 -0
- data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +1156 -0
- data/ext/ice/cpp/src/Ice/UdpTransceiver.h +123 -0
- data/ext/ice/cpp/src/Ice/Version.cpp +46 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +103 -0
- data/ext/ice/cpp/src/Ice/WSAcceptor.h +61 -0
- data/ext/ice/cpp/src/Ice/WSConnector.cpp +113 -0
- data/ext/ice/cpp/src/Ice/WSConnector.h +51 -0
- data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +441 -0
- data/ext/ice/cpp/src/Ice/WSEndpoint.h +97 -0
- data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +1728 -0
- data/ext/ice/cpp/src/Ice/WSTransceiver.h +149 -0
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +594 -0
- data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +1035 -0
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +208 -0
- data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +78 -0
- data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +308 -0
- data/ext/ice/cpp/src/IceDiscovery/LookupI.h +183 -0
- data/ext/ice/cpp/src/IceDiscovery/Makefile +61 -0
- data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +148 -0
- data/ext/ice/cpp/src/IceDiscovery/PluginI.h +39 -0
- data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +258 -0
- data/ext/ice/cpp/src/IceSSL/AcceptorI.h +66 -0
- data/ext/ice/cpp/src/IceSSL/Certificate.cpp +1334 -0
- data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +42 -0
- data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +151 -0
- data/ext/ice/cpp/src/IceSSL/ConnectorI.h +56 -0
- data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +397 -0
- data/ext/ice/cpp/src/IceSSL/EndpointI.h +96 -0
- data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +41 -0
- data/ext/ice/cpp/src/IceSSL/Instance.cpp +38 -0
- data/ext/ice/cpp/src/IceSSL/Instance.h +42 -0
- data/ext/ice/cpp/src/IceSSL/InstanceF.h +34 -0
- data/ext/ice/cpp/src/IceSSL/Makefile +82 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +1001 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +607 -0
- data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +75 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.cpp +102 -0
- data/ext/ice/cpp/src/IceSSL/PluginI.h +56 -0
- data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +541 -0
- data/ext/ice/cpp/src/IceSSL/RFC2253.h +67 -0
- data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +729 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +1062 -0
- data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +130 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +291 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngine.h +264 -0
- data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +41 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +1514 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +609 -0
- data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +91 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +246 -0
- data/ext/ice/cpp/src/IceSSL/TrustManager.h +51 -0
- data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +26 -0
- data/ext/ice/cpp/src/IceSSL/Util.cpp +1423 -0
- data/ext/ice/cpp/src/IceSSL/Util.h +136 -0
- data/ext/ice/cpp/src/IceUtil/ArgVector.cpp +65 -0
- data/ext/ice/cpp/src/IceUtil/ArgVector.h +41 -0
- data/ext/ice/cpp/src/IceUtil/Cond.cpp +386 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +477 -0
- data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +144 -0
- data/ext/ice/cpp/src/IceUtil/CountDownLatch.cpp +184 -0
- data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +273 -0
- data/ext/ice/cpp/src/IceUtil/Exception.cpp +782 -0
- data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +532 -0
- data/ext/ice/cpp/src/IceUtil/FileUtil.h +159 -0
- data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +41 -0
- data/ext/ice/cpp/src/IceUtil/Makefile +68 -0
- data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +24 -0
- data/ext/ice/cpp/src/IceUtil/Options.cpp +1049 -0
- data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +591 -0
- data/ext/ice/cpp/src/IceUtil/Random.cpp +185 -0
- data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +257 -0
- data/ext/ice/cpp/src/IceUtil/SHA1.cpp +126 -0
- data/ext/ice/cpp/src/IceUtil/Shared.cpp +200 -0
- data/ext/ice/cpp/src/IceUtil/StopWatch.h +54 -0
- data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +450 -0
- data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +842 -0
- data/ext/ice/cpp/src/IceUtil/Thread.cpp +809 -0
- data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +172 -0
- data/ext/ice/cpp/src/IceUtil/Time.cpp +306 -0
- data/ext/ice/cpp/src/IceUtil/Timer.cpp +251 -0
- data/ext/ice/cpp/src/IceUtil/UUID.cpp +174 -0
- data/ext/ice/cpp/src/IceUtil/Unicode.cpp +131 -0
- data/ext/ice/cpp/src/IceUtil/Unicode.h +49 -0
- data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +1139 -0
- data/ext/ice/cpp/src/Slice/Checksum.cpp +452 -0
- data/ext/ice/cpp/src/Slice/CsUtil.cpp +2650 -0
- data/ext/ice/cpp/src/Slice/DotNetNames.cpp +146 -0
- data/ext/ice/cpp/src/Slice/FileTracker.cpp +203 -0
- data/ext/ice/cpp/src/Slice/Grammar.cpp +4755 -0
- data/ext/ice/cpp/src/Slice/Grammar.h +98 -0
- data/ext/ice/cpp/src/Slice/GrammarUtil.h +234 -0
- data/ext/ice/cpp/src/Slice/JavaUtil.cpp +4376 -0
- data/ext/ice/cpp/src/Slice/MD5.cpp +57 -0
- data/ext/ice/cpp/src/Slice/MD5.h +44 -0
- data/ext/ice/cpp/src/Slice/MD5I.cpp +385 -0
- data/ext/ice/cpp/src/Slice/MD5I.h +91 -0
- data/ext/ice/cpp/src/Slice/Makefile +65 -0
- data/ext/ice/cpp/src/Slice/PHPUtil.cpp +156 -0
- data/ext/ice/cpp/src/Slice/Parser.cpp +6386 -0
- data/ext/ice/cpp/src/Slice/Preprocessor.cpp +686 -0
- data/ext/ice/cpp/src/Slice/Python.cpp +675 -0
- data/ext/ice/cpp/src/Slice/PythonUtil.cpp +2614 -0
- data/ext/ice/cpp/src/Slice/Ruby.cpp +317 -0
- data/ext/ice/cpp/src/Slice/RubyUtil.cpp +1774 -0
- data/ext/ice/cpp/src/Slice/Scanner.cpp +2426 -0
- data/ext/ice/cpp/src/Slice/Util.cpp +325 -0
- data/ext/ice/mcpp/config.h.Darwin +227 -0
- data/ext/ice/mcpp/config.h.Linux +227 -0
- data/ext/ice/mcpp/config.h.MINGW +7 -0
- data/ext/ice/mcpp/configed.H +382 -0
- data/ext/ice/mcpp/directive.c +1699 -0
- data/ext/ice/mcpp/eval.c +1673 -0
- data/ext/ice/mcpp/expand.c +2980 -0
- data/ext/ice/mcpp/internal.H +564 -0
- data/ext/ice/mcpp/main.c +1131 -0
- data/ext/ice/mcpp/mbchar.c +869 -0
- data/ext/ice/mcpp/mcpp_lib.h +31 -0
- data/ext/ice/mcpp/mcpp_out.h +13 -0
- data/ext/ice/mcpp/support.c +2811 -0
- data/ext/ice/mcpp/system.H +396 -0
- data/ext/ice/mcpp/system.c +4940 -0
- data/ice.gemspec +41 -0
- data/lib/Glacier2.rb +12 -0
- data/lib/Glacier2/Metrics.rb +99 -0
- data/lib/Glacier2/PermissionsVerifier.rb +168 -0
- data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
- data/lib/Glacier2/Router.rb +141 -0
- data/lib/Glacier2/RouterF.rb +29 -0
- data/lib/Glacier2/SSLInfo.rb +79 -0
- data/lib/Glacier2/Session.rb +470 -0
- data/lib/Ice.rb +659 -0
- data/lib/Ice/BuiltinSequences.rb +64 -0
- data/lib/Ice/Communicator.rb +93 -0
- data/lib/Ice/CommunicatorF.rb +28 -0
- data/lib/Ice/Connection.rb +414 -0
- data/lib/Ice/ConnectionF.rb +36 -0
- data/lib/Ice/Current.rb +152 -0
- data/lib/Ice/Endpoint.rb +265 -0
- data/lib/Ice/EndpointF.rb +52 -0
- data/lib/Ice/EndpointTypes.rb +77 -0
- data/lib/Ice/FacetMap.rb +28 -0
- data/lib/Ice/Identity.rb +70 -0
- data/lib/Ice/ImplicitContext.rb +59 -0
- data/lib/Ice/ImplicitContextF.rb +28 -0
- data/lib/Ice/Instrumentation.rb +425 -0
- data/lib/Ice/InstrumentationF.rb +35 -0
- data/lib/Ice/LocalException.rb +1081 -0
- data/lib/Ice/Locator.rb +314 -0
- data/lib/Ice/LocatorF.rb +34 -0
- data/lib/Ice/Logger.rb +57 -0
- data/lib/Ice/LoggerF.rb +28 -0
- data/lib/Ice/Metrics.rb +696 -0
- data/lib/Ice/ObjectAdapterF.rb +28 -0
- data/lib/Ice/ObjectFactory.rb +53 -0
- data/lib/Ice/ObjectFactoryF.rb +28 -0
- data/lib/Ice/Plugin.rb +87 -0
- data/lib/Ice/PluginF.rb +32 -0
- data/lib/Ice/Process.rb +93 -0
- data/lib/Ice/ProcessF.rb +29 -0
- data/lib/Ice/Properties.rb +65 -0
- data/lib/Ice/PropertiesAdmin.rb +104 -0
- data/lib/Ice/PropertiesF.rb +33 -0
- data/lib/Ice/Router.rb +163 -0
- data/lib/Ice/RouterF.rb +29 -0
- data/lib/Ice/SliceChecksumDict.rb +28 -0
- data/lib/Ice/Version.rb +100 -0
- data/lib/IceBox.rb +10 -0
- data/lib/IceBox/IceBox.rb +272 -0
- data/lib/IceGrid.rb +17 -0
- data/lib/IceGrid/Admin.rb +1076 -0
- data/lib/IceGrid/Descriptor.rb +1505 -0
- data/lib/IceGrid/Exception.rb +401 -0
- data/lib/IceGrid/FileParser.rb +105 -0
- data/lib/IceGrid/Locator.rb +105 -0
- data/lib/IceGrid/Observer.rb +571 -0
- data/lib/IceGrid/Query.rb +168 -0
- data/lib/IceGrid/Registry.rb +120 -0
- data/lib/IceGrid/Session.rb +114 -0
- data/lib/IceGrid/UserAccountMapper.rb +101 -0
- data/lib/IcePatch2.rb +10 -0
- data/lib/IcePatch2/FileInfo.rb +75 -0
- data/lib/IcePatch2/FileServer.rb +141 -0
- data/lib/IceStorm.rb +11 -0
- data/lib/IceStorm/IceStorm.rb +463 -0
- data/lib/IceStorm/Metrics.rb +155 -0
- data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
- data/slice/Freeze/CatalogData.ice +49 -0
- data/slice/Freeze/Connection.ice +111 -0
- data/slice/Freeze/ConnectionF.ice +20 -0
- data/slice/Freeze/DB.ice +37 -0
- data/slice/Freeze/Evictor.ice +339 -0
- data/slice/Freeze/EvictorF.ice +22 -0
- data/slice/Freeze/EvictorStorage.ice +72 -0
- data/slice/Freeze/Exception.ice +100 -0
- data/slice/Freeze/Transaction.ice +57 -0
- data/slice/Freeze/TransactionalEvictor.ice +50 -0
- data/slice/Glacier2/Metrics.ice +77 -0
- data/slice/Glacier2/PermissionsVerifier.ice +105 -0
- data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
- data/slice/Glacier2/Router.ice +178 -0
- data/slice/Glacier2/RouterF.ice +20 -0
- data/slice/Glacier2/SSLInfo.ice +50 -0
- data/slice/Glacier2/Session.ice +273 -0
- data/slice/Ice/BuiltinSequences.ice +48 -0
- data/slice/Ice/Communicator.ice +567 -0
- data/slice/Ice/CommunicatorF.ice +20 -0
- data/slice/Ice/Connection.ice +323 -0
- data/slice/Ice/ConnectionF.ice +22 -0
- data/slice/Ice/Current.ice +160 -0
- data/slice/Ice/Endpoint.ice +227 -0
- data/slice/Ice/EndpointF.ice +32 -0
- data/slice/Ice/EndpointTypes.ice +38 -0
- data/slice/Ice/FacetMap.ice +25 -0
- data/slice/Ice/Identity.ice +59 -0
- data/slice/Ice/ImplicitContext.ice +109 -0
- data/slice/Ice/ImplicitContextF.ice +20 -0
- data/slice/Ice/Instrumentation.ice +499 -0
- data/slice/Ice/InstrumentationF.ice +26 -0
- data/slice/Ice/LocalException.ice +1015 -0
- data/slice/Ice/Locator.ice +227 -0
- data/slice/Ice/LocatorF.ice +21 -0
- data/slice/Ice/Logger.ice +86 -0
- data/slice/Ice/LoggerF.ice +20 -0
- data/slice/Ice/Metrics.ice +422 -0
- data/slice/Ice/ObjectAdapter.ice +673 -0
- data/slice/Ice/ObjectAdapterF.ice +20 -0
- data/slice/Ice/ObjectFactory.ice +60 -0
- data/slice/Ice/ObjectFactoryF.ice +20 -0
- data/slice/Ice/Plugin.ice +117 -0
- data/slice/Ice/PluginF.ice +21 -0
- data/slice/Ice/Process.ice +54 -0
- data/slice/Ice/ProcessF.ice +20 -0
- data/slice/Ice/Properties.ice +228 -0
- data/slice/Ice/PropertiesAdmin.ice +75 -0
- data/slice/Ice/PropertiesF.ice +21 -0
- data/slice/Ice/RemoteLogger.ice +232 -0
- data/slice/Ice/Router.ice +83 -0
- data/slice/Ice/RouterF.ice +20 -0
- data/slice/Ice/ServantLocator.ice +117 -0
- data/slice/Ice/ServantLocatorF.ice +20 -0
- data/slice/Ice/SliceChecksumDict.ice +25 -0
- data/slice/Ice/Version.ice +39 -0
- data/slice/IceBox/IceBox.ice +194 -0
- data/slice/IceDiscovery/IceDiscovery.ice +32 -0
- data/slice/IceGrid/Admin.ice +1578 -0
- data/slice/IceGrid/Descriptor.ice +1079 -0
- data/slice/IceGrid/Discovery.ice +73 -0
- data/slice/IceGrid/Exception.ice +383 -0
- data/slice/IceGrid/FileParser.ice +61 -0
- data/slice/IceGrid/Locator.ice +56 -0
- data/slice/IceGrid/Observer.ice +394 -0
- data/slice/IceGrid/PluginFacade.ice +316 -0
- data/slice/IceGrid/Query.ice +130 -0
- data/slice/IceGrid/Registry.ice +138 -0
- data/slice/IceGrid/Session.ice +124 -0
- data/slice/IceGrid/UserAccountMapper.ice +58 -0
- data/slice/IcePatch2/FileInfo.ice +49 -0
- data/slice/IcePatch2/FileServer.ice +129 -0
- data/slice/IceSSL/ConnectionInfo.ice +34 -0
- data/slice/IceSSL/EndpointInfo.ice +41 -0
- data/slice/IceStorm/IceStorm.ice +405 -0
- data/slice/IceStorm/Metrics.ice +71 -0
- metadata +737 -0
@@ -0,0 +1,1116 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#ifndef SLICE_PARSER_H
|
11
|
+
#define SLICE_PARSER_H
|
12
|
+
|
13
|
+
#include <IceUtil/Shared.h>
|
14
|
+
#include <IceUtil/Handle.h>
|
15
|
+
#include <string>
|
16
|
+
#include <vector>
|
17
|
+
#include <list>
|
18
|
+
#include <stack>
|
19
|
+
#include <map>
|
20
|
+
#include <set>
|
21
|
+
#include <stdio.h>
|
22
|
+
|
23
|
+
//
|
24
|
+
// Automatically link Slice[D].lib with Visual C++
|
25
|
+
//
|
26
|
+
#if defined(_MSC_VER) && !defined(ICE_NO_PRAGMA_COMMENT)
|
27
|
+
# if defined(ICE_STATIC_LIBS)
|
28
|
+
# pragma comment(lib, "Slice.lib")
|
29
|
+
# elif !defined(SLICE_API_EXPORTS)
|
30
|
+
# if defined(_DEBUG)
|
31
|
+
# pragma comment(lib, "SliceD.lib")
|
32
|
+
# else
|
33
|
+
# pragma comment(lib, "Slice.lib")
|
34
|
+
# endif
|
35
|
+
# endif
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#ifndef SLICE_API
|
39
|
+
# ifdef SLICE_API_EXPORTS
|
40
|
+
# define SLICE_API ICE_DECLSPEC_EXPORT
|
41
|
+
# else
|
42
|
+
# define SLICE_API ICE_DECLSPEC_IMPORT
|
43
|
+
# endif
|
44
|
+
#endif
|
45
|
+
|
46
|
+
namespace Slice
|
47
|
+
{
|
48
|
+
|
49
|
+
#if defined(_WIN32) && !defined(__MINGW32__)
|
50
|
+
|
51
|
+
const IceUtil::Int64 Int32Max = 0x7fffffffi64;
|
52
|
+
const IceUtil::Int64 Int32Min = -Int32Max - 1i64;
|
53
|
+
|
54
|
+
#else
|
55
|
+
|
56
|
+
# if defined(INT32_MIN) && defined(INT32_MAX)
|
57
|
+
|
58
|
+
const IceUtil::Int64 Int32Max = INT32_MAX;
|
59
|
+
const IceUtil::Int64 Int32Min = INT32_MIN;
|
60
|
+
|
61
|
+
# else
|
62
|
+
|
63
|
+
const IceUtil::Int64 Int32Max = 0x7fffffffLL;
|
64
|
+
const IceUtil::Int64 Int32Min = -Int32Max - 1LL;
|
65
|
+
|
66
|
+
# endif
|
67
|
+
|
68
|
+
#endif
|
69
|
+
|
70
|
+
const IceUtil::Int64 Int16Max = 0x7fff;
|
71
|
+
const IceUtil::Int64 Int16Min = -Int16Max - 1;
|
72
|
+
const IceUtil::Int64 ByteMax = 0xff;
|
73
|
+
const IceUtil::Int64 ByteMin = 0x00;
|
74
|
+
|
75
|
+
enum FeatureProfile
|
76
|
+
{
|
77
|
+
Ice,
|
78
|
+
IceE
|
79
|
+
};
|
80
|
+
|
81
|
+
enum NodeType
|
82
|
+
{
|
83
|
+
Dummy,
|
84
|
+
Real
|
85
|
+
};
|
86
|
+
|
87
|
+
//
|
88
|
+
// Format preference for classes and exceptions.
|
89
|
+
//
|
90
|
+
enum FormatType
|
91
|
+
{
|
92
|
+
DefaultFormat, // No preference was specified.
|
93
|
+
CompactFormat, // Minimal format.
|
94
|
+
SlicedFormat // Full format.
|
95
|
+
};
|
96
|
+
|
97
|
+
class GrammarBase;
|
98
|
+
class SyntaxTreeBase;
|
99
|
+
class Type;
|
100
|
+
class Builtin;
|
101
|
+
class Contained;
|
102
|
+
class Container;
|
103
|
+
class Module;
|
104
|
+
class Constructed;
|
105
|
+
class ClassDecl;
|
106
|
+
class ClassDef;
|
107
|
+
class Proxy;
|
108
|
+
class Exception;
|
109
|
+
class Struct;
|
110
|
+
class Operation;
|
111
|
+
class ParamDecl;
|
112
|
+
class DataMember;
|
113
|
+
class Sequence;
|
114
|
+
class Dictionary;
|
115
|
+
class Enum;
|
116
|
+
class Enumerator;
|
117
|
+
class Const;
|
118
|
+
class Unit;
|
119
|
+
class CICompare;
|
120
|
+
class DerivedToBaseCompare;
|
121
|
+
class ModulePartialCompare;
|
122
|
+
|
123
|
+
typedef ::IceUtil::Handle<GrammarBase> GrammarBasePtr;
|
124
|
+
typedef ::IceUtil::Handle<SyntaxTreeBase> SyntaxTreeBasePtr;
|
125
|
+
typedef ::IceUtil::Handle<Type> TypePtr;
|
126
|
+
typedef ::IceUtil::Handle<Builtin> BuiltinPtr;
|
127
|
+
typedef ::IceUtil::Handle<Contained> ContainedPtr;
|
128
|
+
typedef ::IceUtil::Handle<Container> ContainerPtr;
|
129
|
+
typedef ::IceUtil::Handle<Module> ModulePtr;
|
130
|
+
typedef ::IceUtil::Handle<Constructed> ConstructedPtr;
|
131
|
+
typedef ::IceUtil::Handle<ClassDecl> ClassDeclPtr;
|
132
|
+
typedef ::IceUtil::Handle<ClassDef> ClassDefPtr;
|
133
|
+
typedef ::IceUtil::Handle<Proxy> ProxyPtr;
|
134
|
+
typedef ::IceUtil::Handle<Exception> ExceptionPtr;
|
135
|
+
typedef ::IceUtil::Handle<Struct> StructPtr;
|
136
|
+
typedef ::IceUtil::Handle<Operation> OperationPtr;
|
137
|
+
typedef ::IceUtil::Handle<ParamDecl> ParamDeclPtr;
|
138
|
+
typedef ::IceUtil::Handle<DataMember> DataMemberPtr;
|
139
|
+
typedef ::IceUtil::Handle<Sequence> SequencePtr;
|
140
|
+
typedef ::IceUtil::Handle<Dictionary> DictionaryPtr;
|
141
|
+
typedef ::IceUtil::Handle<Enum> EnumPtr;
|
142
|
+
typedef ::IceUtil::Handle<Enumerator> EnumeratorPtr;
|
143
|
+
typedef ::IceUtil::Handle<Const> ConstPtr;
|
144
|
+
typedef ::IceUtil::Handle<Unit> UnitPtr;
|
145
|
+
|
146
|
+
typedef std::list<TypePtr> TypeList;
|
147
|
+
typedef std::list<ExceptionPtr> ExceptionList;
|
148
|
+
typedef std::set<std::string> StringSet;
|
149
|
+
typedef std::list<std::string> StringList;
|
150
|
+
typedef std::pair<TypePtr, std::string> TypeString;
|
151
|
+
typedef std::list<TypeString> TypeStringList;
|
152
|
+
typedef std::list<ContainedPtr> ContainedList;
|
153
|
+
typedef std::list<ModulePtr> ModuleList;
|
154
|
+
typedef std::list<ConstructedPtr> ConstructedList;
|
155
|
+
typedef std::list<ClassDefPtr> ClassList;
|
156
|
+
typedef std::list<ExceptionPtr> ExceptionList;
|
157
|
+
typedef std::list<StructPtr> StructList;
|
158
|
+
typedef std::list<SequencePtr> SequenceList;
|
159
|
+
typedef std::list<DictionaryPtr> DictionaryList;
|
160
|
+
typedef std::list<EnumPtr> EnumList;
|
161
|
+
typedef std::list<ConstPtr> ConstList;
|
162
|
+
typedef std::list<OperationPtr> OperationList;
|
163
|
+
typedef std::list<DataMemberPtr> DataMemberList;
|
164
|
+
typedef std::list<ParamDeclPtr> ParamDeclList;
|
165
|
+
typedef std::list<EnumeratorPtr> EnumeratorList;
|
166
|
+
|
167
|
+
struct ConstDef
|
168
|
+
{
|
169
|
+
TypePtr type;
|
170
|
+
SyntaxTreeBasePtr value;
|
171
|
+
std::string valueAsString;
|
172
|
+
std::string valueAsLiteral;
|
173
|
+
};
|
174
|
+
|
175
|
+
struct OptionalDef
|
176
|
+
{
|
177
|
+
TypePtr type;
|
178
|
+
std::string name;
|
179
|
+
bool optional;
|
180
|
+
int tag;
|
181
|
+
};
|
182
|
+
|
183
|
+
// ----------------------------------------------------------------------
|
184
|
+
// CICompare -- function object to do case-insensitive string comparison.
|
185
|
+
// ----------------------------------------------------------------------
|
186
|
+
|
187
|
+
class SLICE_API CICompare : public std::binary_function<std::string, std::string, bool>
|
188
|
+
{
|
189
|
+
public:
|
190
|
+
|
191
|
+
bool operator()(const std::string&, const std::string&) const;
|
192
|
+
};
|
193
|
+
|
194
|
+
#if defined(__SUNPRO_CC)
|
195
|
+
SLICE_API bool cICompare(const std::string&, const std::string&);
|
196
|
+
#endif
|
197
|
+
|
198
|
+
// ----------------------------------------------------------------------
|
199
|
+
// DerivedToBaseCompare -- function object to do sort exceptions into
|
200
|
+
// most-derived to least-derived order.
|
201
|
+
// ----------------------------------------------------------------------
|
202
|
+
|
203
|
+
class SLICE_API DerivedToBaseCompare : public std::binary_function<std::string, std::string, bool>
|
204
|
+
{
|
205
|
+
public:
|
206
|
+
|
207
|
+
bool operator()(const ExceptionPtr&, const ExceptionPtr&) const;
|
208
|
+
};
|
209
|
+
|
210
|
+
#if defined(__SUNPRO_CC)
|
211
|
+
SLICE_API bool derivedToBaseCompare(const ExceptionPtr&, const ExceptionPtr&);
|
212
|
+
#endif
|
213
|
+
|
214
|
+
// ----------------------------------------------------------------------
|
215
|
+
// ParserVisitor
|
216
|
+
// ----------------------------------------------------------------------
|
217
|
+
|
218
|
+
class SLICE_API ParserVisitor
|
219
|
+
{
|
220
|
+
public:
|
221
|
+
|
222
|
+
virtual ~ParserVisitor() { }
|
223
|
+
virtual bool visitUnitStart(const UnitPtr&) { return true; }
|
224
|
+
virtual void visitUnitEnd(const UnitPtr&) { }
|
225
|
+
virtual bool visitModuleStart(const ModulePtr&) { return true; }
|
226
|
+
virtual void visitModuleEnd(const ModulePtr&) { }
|
227
|
+
virtual void visitClassDecl(const ClassDeclPtr&) { }
|
228
|
+
virtual bool visitClassDefStart(const ClassDefPtr&) { return true; }
|
229
|
+
virtual void visitClassDefEnd(const ClassDefPtr&) { }
|
230
|
+
virtual bool visitExceptionStart(const ExceptionPtr&) { return true; }
|
231
|
+
virtual void visitExceptionEnd(const ExceptionPtr&) { }
|
232
|
+
virtual bool visitStructStart(const StructPtr&) { return true; }
|
233
|
+
virtual void visitStructEnd(const StructPtr&) { }
|
234
|
+
virtual void visitOperation(const OperationPtr&) { }
|
235
|
+
virtual void visitParamDecl(const ParamDeclPtr&) { }
|
236
|
+
virtual void visitDataMember(const DataMemberPtr&) { }
|
237
|
+
virtual void visitSequence(const SequencePtr&) { }
|
238
|
+
virtual void visitDictionary(const DictionaryPtr&) { }
|
239
|
+
virtual void visitEnum(const EnumPtr&) { }
|
240
|
+
virtual void visitConst(const ConstPtr&) { }
|
241
|
+
};
|
242
|
+
|
243
|
+
// ----------------------------------------------------------------------
|
244
|
+
// DefinitionContext
|
245
|
+
// ----------------------------------------------------------------------
|
246
|
+
|
247
|
+
class SLICE_API DefinitionContext : public ::IceUtil::SimpleShared
|
248
|
+
{
|
249
|
+
public:
|
250
|
+
|
251
|
+
DefinitionContext(int, const StringList&);
|
252
|
+
|
253
|
+
std::string filename() const;
|
254
|
+
int includeLevel() const;
|
255
|
+
bool seenDefinition() const;
|
256
|
+
|
257
|
+
void setFilename(const std::string&);
|
258
|
+
void setSeenDefinition();
|
259
|
+
|
260
|
+
bool hasMetaData() const;
|
261
|
+
void setMetaData(const StringList&);
|
262
|
+
std::string findMetaData(const std::string&) const;
|
263
|
+
StringList getMetaData() const;
|
264
|
+
|
265
|
+
private:
|
266
|
+
|
267
|
+
int _includeLevel;
|
268
|
+
StringList _metaData;
|
269
|
+
std::string _filename;
|
270
|
+
bool _seenDefinition;
|
271
|
+
};
|
272
|
+
typedef ::IceUtil::Handle<DefinitionContext> DefinitionContextPtr;
|
273
|
+
|
274
|
+
// ----------------------------------------------------------------------
|
275
|
+
// GrammarBase
|
276
|
+
// ----------------------------------------------------------------------
|
277
|
+
|
278
|
+
class SLICE_API GrammarBase : public ::IceUtil::SimpleShared
|
279
|
+
{
|
280
|
+
};
|
281
|
+
|
282
|
+
// ----------------------------------------------------------------------
|
283
|
+
// SyntaxTreeBase
|
284
|
+
// ----------------------------------------------------------------------
|
285
|
+
|
286
|
+
class SLICE_API SyntaxTreeBase : public GrammarBase
|
287
|
+
{
|
288
|
+
public:
|
289
|
+
|
290
|
+
virtual void destroy();
|
291
|
+
UnitPtr unit() const;
|
292
|
+
DefinitionContextPtr definitionContext() const; // May be nil
|
293
|
+
virtual void visit(ParserVisitor*, bool);
|
294
|
+
|
295
|
+
protected:
|
296
|
+
|
297
|
+
SyntaxTreeBase(const UnitPtr&);
|
298
|
+
|
299
|
+
UnitPtr _unit;
|
300
|
+
DefinitionContextPtr _definitionContext;
|
301
|
+
};
|
302
|
+
|
303
|
+
// ----------------------------------------------------------------------
|
304
|
+
// Type
|
305
|
+
// ----------------------------------------------------------------------
|
306
|
+
|
307
|
+
class SLICE_API Type : virtual public SyntaxTreeBase
|
308
|
+
{
|
309
|
+
public:
|
310
|
+
|
311
|
+
virtual bool isLocal() const = 0;
|
312
|
+
virtual std::string typeId() const = 0;
|
313
|
+
virtual bool usesClasses() const = 0;
|
314
|
+
virtual size_t minWireSize() const = 0;
|
315
|
+
virtual bool isVariableLength() const = 0;
|
316
|
+
|
317
|
+
protected:
|
318
|
+
|
319
|
+
Type(const UnitPtr&);
|
320
|
+
};
|
321
|
+
|
322
|
+
// ----------------------------------------------------------------------
|
323
|
+
// Builtin
|
324
|
+
// ----------------------------------------------------------------------
|
325
|
+
|
326
|
+
class SLICE_API Builtin : virtual public Type
|
327
|
+
{
|
328
|
+
public:
|
329
|
+
|
330
|
+
enum Kind
|
331
|
+
{
|
332
|
+
KindByte,
|
333
|
+
KindBool,
|
334
|
+
KindShort,
|
335
|
+
KindInt,
|
336
|
+
KindLong,
|
337
|
+
KindFloat,
|
338
|
+
KindDouble,
|
339
|
+
KindString,
|
340
|
+
KindObject,
|
341
|
+
KindObjectProxy,
|
342
|
+
KindLocalObject
|
343
|
+
};
|
344
|
+
|
345
|
+
virtual bool isLocal() const;
|
346
|
+
virtual std::string typeId() const;
|
347
|
+
virtual bool usesClasses() const;
|
348
|
+
virtual size_t minWireSize() const;
|
349
|
+
virtual bool isVariableLength() const;
|
350
|
+
|
351
|
+
Kind kind() const;
|
352
|
+
std::string kindAsString() const;
|
353
|
+
|
354
|
+
static const char* builtinTable[];
|
355
|
+
|
356
|
+
protected:
|
357
|
+
|
358
|
+
Builtin(const UnitPtr&, Kind);
|
359
|
+
friend class Unit;
|
360
|
+
|
361
|
+
Kind _kind;
|
362
|
+
};
|
363
|
+
|
364
|
+
// ----------------------------------------------------------------------
|
365
|
+
// Contained
|
366
|
+
// ----------------------------------------------------------------------
|
367
|
+
|
368
|
+
class SLICE_API Contained : virtual public SyntaxTreeBase
|
369
|
+
{
|
370
|
+
public:
|
371
|
+
|
372
|
+
ContainerPtr container() const;
|
373
|
+
std::string name() const;
|
374
|
+
std::string scoped() const;
|
375
|
+
std::string scope() const;
|
376
|
+
std::string flattenedScope() const;
|
377
|
+
std::string file() const;
|
378
|
+
std::string line() const;
|
379
|
+
std::string comment() const;
|
380
|
+
|
381
|
+
int includeLevel() const;
|
382
|
+
void updateIncludeLevel();
|
383
|
+
|
384
|
+
bool hasMetaData(const std::string&) const;
|
385
|
+
bool findMetaData(const std::string&, std::string&) const;
|
386
|
+
std::list<std::string> getMetaData() const;
|
387
|
+
void setMetaData(const std::list<std::string>&);
|
388
|
+
void addMetaData(const std::string&); // TODO: remove this method once "cs:" and "vb:" are hard errors.
|
389
|
+
|
390
|
+
static FormatType parseFormatMetaData(const std::list<std::string>&);
|
391
|
+
|
392
|
+
enum ContainedType
|
393
|
+
{
|
394
|
+
ContainedTypeSequence,
|
395
|
+
ContainedTypeDictionary,
|
396
|
+
ContainedTypeEnum,
|
397
|
+
ContainedTypeEnumerator,
|
398
|
+
ContainedTypeModule,
|
399
|
+
ContainedTypeClass,
|
400
|
+
ContainedTypeException,
|
401
|
+
ContainedTypeStruct,
|
402
|
+
ContainedTypeOperation,
|
403
|
+
ContainedTypeParamDecl,
|
404
|
+
ContainedTypeDataMember,
|
405
|
+
ContainedTypeConstant
|
406
|
+
};
|
407
|
+
virtual ContainedType containedType() const = 0;
|
408
|
+
|
409
|
+
virtual bool uses(const ContainedPtr&) const = 0;
|
410
|
+
virtual std::string kindOf() const = 0;
|
411
|
+
|
412
|
+
bool operator<(const Contained&) const;
|
413
|
+
bool operator==(const Contained&) const;
|
414
|
+
bool operator!=(const Contained&) const;
|
415
|
+
|
416
|
+
protected:
|
417
|
+
|
418
|
+
Contained(const ContainerPtr&, const std::string&);
|
419
|
+
friend class Container;
|
420
|
+
|
421
|
+
ContainerPtr _container;
|
422
|
+
std::string _name;
|
423
|
+
std::string _scoped;
|
424
|
+
std::string _file;
|
425
|
+
std::string _line;
|
426
|
+
std::string _comment;
|
427
|
+
int _includeLevel;
|
428
|
+
std::list<std::string> _metaData;
|
429
|
+
};
|
430
|
+
|
431
|
+
// ----------------------------------------------------------------------
|
432
|
+
// Container
|
433
|
+
// ----------------------------------------------------------------------
|
434
|
+
|
435
|
+
class SLICE_API Container : virtual public SyntaxTreeBase
|
436
|
+
{
|
437
|
+
public:
|
438
|
+
|
439
|
+
virtual void destroy();
|
440
|
+
ModulePtr createModule(const std::string&);
|
441
|
+
ClassDefPtr createClassDef(const std::string&, int, bool, const ClassList&, bool);
|
442
|
+
ClassDeclPtr createClassDecl(const std::string&, bool, bool);
|
443
|
+
ExceptionPtr createException(const std::string&, const ExceptionPtr&, bool, NodeType = Real);
|
444
|
+
StructPtr createStruct(const std::string&, bool, NodeType = Real);
|
445
|
+
SequencePtr createSequence(const std::string&, const TypePtr&, const StringList&, bool, NodeType = Real);
|
446
|
+
DictionaryPtr createDictionary(const std::string&, const TypePtr&, const StringList&, const TypePtr&,
|
447
|
+
const StringList&, bool, NodeType = Real);
|
448
|
+
EnumPtr createEnum(const std::string&, bool, NodeType = Real);
|
449
|
+
EnumeratorPtr createEnumerator(const std::string&);
|
450
|
+
EnumeratorPtr createEnumerator(const std::string&, int);
|
451
|
+
ConstPtr createConst(const std::string, const TypePtr&, const StringList&, const SyntaxTreeBasePtr&,
|
452
|
+
const std::string&, const std::string&, NodeType = Real);
|
453
|
+
TypeList lookupType(const std::string&, bool = true);
|
454
|
+
TypeList lookupTypeNoBuiltin(const std::string&, bool = true);
|
455
|
+
ContainedList lookupContained(const std::string&, bool = true);
|
456
|
+
ExceptionPtr lookupException(const std::string&, bool = true);
|
457
|
+
UnitPtr unit() const;
|
458
|
+
ModuleList modules() const;
|
459
|
+
ClassList classes() const;
|
460
|
+
ExceptionList exceptions() const;
|
461
|
+
StructList structs() const;
|
462
|
+
SequenceList sequences() const;
|
463
|
+
DictionaryList dictionaries() const;
|
464
|
+
EnumList enums() const;
|
465
|
+
ConstList consts() const;
|
466
|
+
ContainedList contents() const;
|
467
|
+
bool hasNonLocalClassDecls() const;
|
468
|
+
bool hasNonLocalClassDefs() const;
|
469
|
+
bool hasLocalClassDefsWithAsync() const;
|
470
|
+
bool hasNonLocalSequences() const;
|
471
|
+
bool hasNonLocalExceptions() const;
|
472
|
+
bool hasDictionaries() const;
|
473
|
+
bool hasOnlyDictionaries(DictionaryList&) const;
|
474
|
+
bool hasClassDecls() const;
|
475
|
+
bool hasClassDefs() const;
|
476
|
+
bool hasOnlyClassDecls() const;
|
477
|
+
bool hasAbstractClassDefs() const;
|
478
|
+
bool hasNonLocalDataOnlyClasses() const;
|
479
|
+
bool hasOtherConstructedOrExceptions() const; // Exceptions or constructed types other than classes.
|
480
|
+
bool hasContentsWithMetaData(const std::string&) const;
|
481
|
+
bool hasAsyncOps() const;
|
482
|
+
bool hasNonLocalContained(Contained::ContainedType) const;
|
483
|
+
std::string thisScope() const;
|
484
|
+
void mergeModules();
|
485
|
+
void sort();
|
486
|
+
void sortContents(bool);
|
487
|
+
virtual void visit(ParserVisitor*, bool);
|
488
|
+
void containerRecDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
489
|
+
|
490
|
+
bool checkIntroduced(const std::string&, ContainedPtr = 0);
|
491
|
+
bool nameIsLegal(const std::string&, const char *);
|
492
|
+
bool checkForGlobalDef(const std::string&, const char *);
|
493
|
+
|
494
|
+
protected:
|
495
|
+
|
496
|
+
Container(const UnitPtr&);
|
497
|
+
|
498
|
+
void checkIdentifier(const std::string&) const;
|
499
|
+
bool checkInterfaceAndLocal(const std::string&, bool, bool, bool, bool, bool);
|
500
|
+
bool checkGlobalMetaData(const StringList&, const StringList&);
|
501
|
+
bool validateConstant(const std::string&, const TypePtr&, const SyntaxTreeBasePtr&, const std::string&, bool);
|
502
|
+
EnumeratorPtr validateEnumerator(const std::string&);
|
503
|
+
|
504
|
+
ContainedList _contents;
|
505
|
+
std::map<std::string, ContainedPtr, CICompare> _introducedMap;
|
506
|
+
};
|
507
|
+
|
508
|
+
// ----------------------------------------------------------------------
|
509
|
+
// Module
|
510
|
+
// ----------------------------------------------------------------------
|
511
|
+
|
512
|
+
class SLICE_API Module : virtual public Container, virtual public Contained
|
513
|
+
{
|
514
|
+
public:
|
515
|
+
|
516
|
+
virtual ContainedType containedType() const;
|
517
|
+
virtual bool uses(const ContainedPtr&) const;
|
518
|
+
virtual std::string kindOf() const;
|
519
|
+
virtual void visit(ParserVisitor*, bool);
|
520
|
+
|
521
|
+
protected:
|
522
|
+
|
523
|
+
Module(const ContainerPtr&, const std::string&);
|
524
|
+
friend class Container;
|
525
|
+
};
|
526
|
+
|
527
|
+
// ----------------------------------------------------------------------
|
528
|
+
// Constructed
|
529
|
+
// ----------------------------------------------------------------------
|
530
|
+
|
531
|
+
class SLICE_API Constructed : virtual public Type, virtual public Contained
|
532
|
+
{
|
533
|
+
public:
|
534
|
+
|
535
|
+
virtual bool isLocal() const;
|
536
|
+
virtual std::string typeId() const;
|
537
|
+
virtual bool isVariableLength() const = 0;
|
538
|
+
ConstructedList dependencies();
|
539
|
+
virtual void recDependencies(std::set<ConstructedPtr>&) = 0; // Internal operation, don't use directly.
|
540
|
+
|
541
|
+
protected:
|
542
|
+
|
543
|
+
Constructed(const ContainerPtr&, const std::string&, bool);
|
544
|
+
|
545
|
+
bool _local;
|
546
|
+
};
|
547
|
+
|
548
|
+
// ----------------------------------------------------------------------
|
549
|
+
// ClassDecl
|
550
|
+
// ----------------------------------------------------------------------
|
551
|
+
|
552
|
+
class SLICE_API ClassDecl : virtual public Constructed
|
553
|
+
{
|
554
|
+
public:
|
555
|
+
|
556
|
+
virtual void destroy();
|
557
|
+
ClassDefPtr definition() const;
|
558
|
+
bool isInterface() const;
|
559
|
+
virtual ContainedType containedType() const;
|
560
|
+
virtual bool uses(const ContainedPtr&) const;
|
561
|
+
virtual bool usesClasses() const;
|
562
|
+
virtual size_t minWireSize() const;
|
563
|
+
virtual bool isVariableLength() const;
|
564
|
+
virtual void visit(ParserVisitor*, bool);
|
565
|
+
virtual std::string kindOf() const;
|
566
|
+
virtual void recDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
567
|
+
|
568
|
+
static void checkBasesAreLegal(const std::string&, bool, bool, const ClassList&, const UnitPtr&);
|
569
|
+
|
570
|
+
protected:
|
571
|
+
|
572
|
+
ClassDecl(const ContainerPtr&, const std::string&, bool, bool);
|
573
|
+
friend class Container;
|
574
|
+
friend class ClassDef;
|
575
|
+
|
576
|
+
ClassDefPtr _definition;
|
577
|
+
bool _interface;
|
578
|
+
|
579
|
+
private:
|
580
|
+
|
581
|
+
typedef std::list<ClassList> GraphPartitionList;
|
582
|
+
typedef std::list<StringList> StringPartitionList;
|
583
|
+
|
584
|
+
static bool isInList(const GraphPartitionList&, const ClassDefPtr);
|
585
|
+
static void addPartition(GraphPartitionList&, GraphPartitionList::reverse_iterator, const ClassDefPtr);
|
586
|
+
static StringPartitionList toStringPartitionList(const GraphPartitionList&);
|
587
|
+
static void checkPairIntersections(const StringPartitionList&, const std::string&, const UnitPtr&);
|
588
|
+
};
|
589
|
+
|
590
|
+
// ----------------------------------------------------------------------
|
591
|
+
// Operation
|
592
|
+
// ----------------------------------------------------------------------
|
593
|
+
|
594
|
+
class SLICE_API Operation : virtual public Contained, virtual public Container
|
595
|
+
{
|
596
|
+
public:
|
597
|
+
|
598
|
+
//
|
599
|
+
// Note: The order of definitions here *must* match the order of
|
600
|
+
// definitions of ::Ice::OperationMode in slice/Ice/Current.ice!
|
601
|
+
//
|
602
|
+
enum Mode
|
603
|
+
{
|
604
|
+
Normal,
|
605
|
+
Nonmutating,
|
606
|
+
Idempotent
|
607
|
+
};
|
608
|
+
|
609
|
+
TypePtr returnType() const;
|
610
|
+
bool returnIsOptional() const;
|
611
|
+
int returnTag() const;
|
612
|
+
Mode mode() const;
|
613
|
+
Mode sendMode() const;
|
614
|
+
ParamDeclPtr createParamDecl(const std::string&, const TypePtr&, bool, bool, int);
|
615
|
+
ParamDeclList parameters() const;
|
616
|
+
ExceptionList throws() const;
|
617
|
+
void setExceptionList(const ExceptionList&);
|
618
|
+
virtual ContainedType containedType() const;
|
619
|
+
virtual bool uses(const ContainedPtr&) const;
|
620
|
+
bool sendsClasses(bool) const;
|
621
|
+
bool returnsClasses(bool) const;
|
622
|
+
bool returnsData() const;
|
623
|
+
bool sendsOptionals() const;
|
624
|
+
int attributes() const;
|
625
|
+
FormatType format() const;
|
626
|
+
virtual std::string kindOf() const;
|
627
|
+
virtual void visit(ParserVisitor*, bool);
|
628
|
+
|
629
|
+
protected:
|
630
|
+
|
631
|
+
Operation(const ContainerPtr&, const std::string&, const TypePtr&, bool, int, Mode);
|
632
|
+
friend class ClassDef;
|
633
|
+
|
634
|
+
TypePtr _returnType;
|
635
|
+
bool _returnIsOptional;
|
636
|
+
int _returnTag;
|
637
|
+
ExceptionList _throws;
|
638
|
+
Mode _mode;
|
639
|
+
};
|
640
|
+
|
641
|
+
// ----------------------------------------------------------------------
|
642
|
+
// ClassDef
|
643
|
+
// ----------------------------------------------------------------------
|
644
|
+
|
645
|
+
//
|
646
|
+
// Note: For the purpose of this parser, a class definition is not
|
647
|
+
// considered to be a type, but a class declaration is. And each class
|
648
|
+
// definition has at least one class declaration (but not vice versa),
|
649
|
+
// so if you need the class as a "constructed type", use the
|
650
|
+
// declaration() operation to navigate to the class declaration.
|
651
|
+
//
|
652
|
+
class SLICE_API ClassDef : virtual public Container, virtual public Contained
|
653
|
+
{
|
654
|
+
public:
|
655
|
+
|
656
|
+
virtual void destroy();
|
657
|
+
OperationPtr createOperation(const std::string&, const TypePtr&, bool, int, Operation::Mode = Operation::Normal);
|
658
|
+
DataMemberPtr createDataMember(const std::string&, const TypePtr&, bool, int, const SyntaxTreeBasePtr&,
|
659
|
+
const std::string&, const std::string&);
|
660
|
+
ClassDeclPtr declaration() const;
|
661
|
+
ClassList bases() const;
|
662
|
+
ClassList allBases() const;
|
663
|
+
OperationList operations() const;
|
664
|
+
OperationList allOperations() const;
|
665
|
+
DataMemberList dataMembers() const;
|
666
|
+
DataMemberList orderedOptionalDataMembers() const;
|
667
|
+
DataMemberList allDataMembers() const;
|
668
|
+
DataMemberList classDataMembers() const;
|
669
|
+
DataMemberList allClassDataMembers() const;
|
670
|
+
bool canBeCyclic() const;
|
671
|
+
bool isAbstract() const;
|
672
|
+
bool isInterface() const;
|
673
|
+
bool isA(const std::string&) const;
|
674
|
+
virtual bool isLocal() const;
|
675
|
+
bool hasDataMembers() const;
|
676
|
+
bool hasOperations() const;
|
677
|
+
bool hasDefaultValues() const;
|
678
|
+
bool inheritsMetaData(const std::string&) const;
|
679
|
+
virtual ContainedType containedType() const;
|
680
|
+
virtual bool uses(const ContainedPtr&) const;
|
681
|
+
virtual std::string kindOf() const;
|
682
|
+
virtual void visit(ParserVisitor*, bool);
|
683
|
+
int compactId() const;
|
684
|
+
|
685
|
+
protected:
|
686
|
+
|
687
|
+
ClassDef(const ContainerPtr&, const std::string&, int, bool, const ClassList&, bool);
|
688
|
+
friend class Container;
|
689
|
+
|
690
|
+
ClassDeclPtr _declaration;
|
691
|
+
bool _interface;
|
692
|
+
bool _hasDataMembers;
|
693
|
+
bool _hasOperations;
|
694
|
+
ClassList _bases;
|
695
|
+
bool _local;
|
696
|
+
int _compactId;
|
697
|
+
};
|
698
|
+
|
699
|
+
// ----------------------------------------------------------------------
|
700
|
+
// Proxy
|
701
|
+
// ----------------------------------------------------------------------
|
702
|
+
|
703
|
+
class SLICE_API Proxy : virtual public Type
|
704
|
+
{
|
705
|
+
public:
|
706
|
+
|
707
|
+
virtual bool isLocal() const;
|
708
|
+
virtual std::string typeId() const;
|
709
|
+
virtual bool usesClasses() const;
|
710
|
+
virtual size_t minWireSize() const;
|
711
|
+
virtual bool isVariableLength() const;
|
712
|
+
|
713
|
+
ClassDeclPtr _class() const;
|
714
|
+
|
715
|
+
Proxy(const ClassDeclPtr&);
|
716
|
+
|
717
|
+
protected:
|
718
|
+
|
719
|
+
ClassDeclPtr __class;
|
720
|
+
};
|
721
|
+
|
722
|
+
// ----------------------------------------------------------------------
|
723
|
+
// Exception
|
724
|
+
// ----------------------------------------------------------------------
|
725
|
+
|
726
|
+
// No inheritance from Constructed, as this is not a Type
|
727
|
+
class SLICE_API Exception : virtual public Container, virtual public Contained
|
728
|
+
{
|
729
|
+
public:
|
730
|
+
|
731
|
+
virtual void destroy();
|
732
|
+
DataMemberPtr createDataMember(const std::string&, const TypePtr&, bool, int, const SyntaxTreeBasePtr&,
|
733
|
+
const std::string&, const std::string&);
|
734
|
+
DataMemberList dataMembers() const;
|
735
|
+
DataMemberList orderedOptionalDataMembers() const;
|
736
|
+
DataMemberList allDataMembers() const;
|
737
|
+
DataMemberList classDataMembers() const;
|
738
|
+
DataMemberList allClassDataMembers() const;
|
739
|
+
ExceptionPtr base() const;
|
740
|
+
ExceptionList allBases() const;
|
741
|
+
virtual bool isBaseOf(const ExceptionPtr&) const;
|
742
|
+
virtual bool isLocal() const;
|
743
|
+
virtual ContainedType containedType() const;
|
744
|
+
virtual bool uses(const ContainedPtr&) const;
|
745
|
+
bool usesClasses(bool) const;
|
746
|
+
bool hasDefaultValues() const;
|
747
|
+
bool inheritsMetaData(const std::string&) const;
|
748
|
+
virtual std::string kindOf() const;
|
749
|
+
virtual void visit(ParserVisitor*, bool);
|
750
|
+
|
751
|
+
protected:
|
752
|
+
|
753
|
+
Exception(const ContainerPtr&, const std::string&, const ExceptionPtr&, bool);
|
754
|
+
friend class Container;
|
755
|
+
|
756
|
+
ExceptionPtr _base;
|
757
|
+
bool _local;
|
758
|
+
};
|
759
|
+
|
760
|
+
// ----------------------------------------------------------------------
|
761
|
+
// Struct
|
762
|
+
// ----------------------------------------------------------------------
|
763
|
+
|
764
|
+
class SLICE_API Struct : virtual public Container, virtual public Constructed
|
765
|
+
{
|
766
|
+
public:
|
767
|
+
|
768
|
+
DataMemberPtr createDataMember(const std::string&, const TypePtr&, bool, int, const SyntaxTreeBasePtr&,
|
769
|
+
const std::string&, const std::string&);
|
770
|
+
DataMemberList dataMembers() const;
|
771
|
+
DataMemberList classDataMembers() const;
|
772
|
+
virtual ContainedType containedType() const;
|
773
|
+
virtual bool uses(const ContainedPtr&) const;
|
774
|
+
virtual bool usesClasses() const;
|
775
|
+
virtual size_t minWireSize() const;
|
776
|
+
virtual bool isVariableLength() const;
|
777
|
+
bool hasDefaultValues() const;
|
778
|
+
virtual std::string kindOf() const;
|
779
|
+
virtual void visit(ParserVisitor*, bool);
|
780
|
+
virtual void recDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
781
|
+
|
782
|
+
protected:
|
783
|
+
|
784
|
+
Struct(const ContainerPtr&, const std::string&, bool);
|
785
|
+
friend class Container;
|
786
|
+
};
|
787
|
+
|
788
|
+
// ----------------------------------------------------------------------
|
789
|
+
// Sequence
|
790
|
+
// ----------------------------------------------------------------------
|
791
|
+
|
792
|
+
class SLICE_API Sequence : virtual public Constructed
|
793
|
+
{
|
794
|
+
public:
|
795
|
+
|
796
|
+
TypePtr type() const;
|
797
|
+
StringList typeMetaData() const;
|
798
|
+
virtual ContainedType containedType() const;
|
799
|
+
virtual bool uses(const ContainedPtr&) const;
|
800
|
+
virtual bool usesClasses() const;
|
801
|
+
virtual size_t minWireSize() const;
|
802
|
+
virtual bool isVariableLength() const;
|
803
|
+
virtual std::string kindOf() const;
|
804
|
+
virtual void visit(ParserVisitor*, bool);
|
805
|
+
virtual void recDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
806
|
+
|
807
|
+
protected:
|
808
|
+
|
809
|
+
Sequence(const ContainerPtr&, const std::string&, const TypePtr&, const StringList&, bool);
|
810
|
+
friend class Container;
|
811
|
+
|
812
|
+
TypePtr _type;
|
813
|
+
StringList _typeMetaData;
|
814
|
+
};
|
815
|
+
|
816
|
+
// ----------------------------------------------------------------------
|
817
|
+
// Dictionary
|
818
|
+
// ----------------------------------------------------------------------
|
819
|
+
|
820
|
+
class SLICE_API Dictionary : virtual public Constructed
|
821
|
+
{
|
822
|
+
public:
|
823
|
+
|
824
|
+
TypePtr keyType() const;
|
825
|
+
TypePtr valueType() const;
|
826
|
+
StringList keyMetaData() const;
|
827
|
+
StringList valueMetaData() const;
|
828
|
+
virtual ContainedType containedType() const;
|
829
|
+
virtual bool uses(const ContainedPtr&) const;
|
830
|
+
virtual bool usesClasses() const;
|
831
|
+
virtual size_t minWireSize() const;
|
832
|
+
virtual bool isVariableLength() const;
|
833
|
+
virtual std::string kindOf() const;
|
834
|
+
virtual void visit(ParserVisitor*, bool);
|
835
|
+
virtual void recDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
836
|
+
|
837
|
+
static bool legalKeyType(const TypePtr&, bool&);
|
838
|
+
|
839
|
+
protected:
|
840
|
+
|
841
|
+
Dictionary(const ContainerPtr&, const std::string&, const TypePtr&, const StringList&, const TypePtr&,
|
842
|
+
const StringList&, bool);
|
843
|
+
friend class Container;
|
844
|
+
|
845
|
+
TypePtr _keyType;
|
846
|
+
TypePtr _valueType;
|
847
|
+
StringList _keyMetaData;
|
848
|
+
StringList _valueMetaData;
|
849
|
+
};
|
850
|
+
|
851
|
+
// ----------------------------------------------------------------------
|
852
|
+
// Enum
|
853
|
+
// ----------------------------------------------------------------------
|
854
|
+
|
855
|
+
class SLICE_API Enum : virtual public Constructed
|
856
|
+
{
|
857
|
+
public:
|
858
|
+
|
859
|
+
virtual void destroy();
|
860
|
+
EnumeratorList getEnumerators();
|
861
|
+
void setEnumerators(const EnumeratorList&);
|
862
|
+
bool explicitValue() const;
|
863
|
+
int minValue() const;
|
864
|
+
int maxValue() const;
|
865
|
+
virtual ContainedType containedType() const;
|
866
|
+
virtual bool uses(const ContainedPtr&) const;
|
867
|
+
virtual bool usesClasses() const;
|
868
|
+
virtual size_t minWireSize() const;
|
869
|
+
virtual bool isVariableLength() const;
|
870
|
+
virtual std::string kindOf() const;
|
871
|
+
virtual void visit(ParserVisitor*, bool);
|
872
|
+
virtual void recDependencies(std::set<ConstructedPtr>&); // Internal operation, don't use directly.
|
873
|
+
|
874
|
+
protected:
|
875
|
+
|
876
|
+
Enum(const ContainerPtr&, const std::string&, bool);
|
877
|
+
friend class Container;
|
878
|
+
|
879
|
+
EnumeratorList _enumerators;
|
880
|
+
bool _explicitValue;
|
881
|
+
IceUtil::Int64 _minValue;
|
882
|
+
IceUtil::Int64 _maxValue;
|
883
|
+
};
|
884
|
+
|
885
|
+
// ----------------------------------------------------------------------
|
886
|
+
// Enumerator
|
887
|
+
// ----------------------------------------------------------------------
|
888
|
+
|
889
|
+
class SLICE_API Enumerator : virtual public Contained
|
890
|
+
{
|
891
|
+
public:
|
892
|
+
|
893
|
+
EnumPtr type() const;
|
894
|
+
virtual bool uses(const ContainedPtr&) const;
|
895
|
+
virtual ContainedType containedType() const;
|
896
|
+
virtual std::string kindOf() const;
|
897
|
+
|
898
|
+
bool explicitValue() const;
|
899
|
+
int value() const;
|
900
|
+
|
901
|
+
protected:
|
902
|
+
|
903
|
+
Enumerator(const ContainerPtr&, const std::string&);
|
904
|
+
Enumerator(const ContainerPtr&, const std::string&, int);
|
905
|
+
friend class Container;
|
906
|
+
friend class Enum;
|
907
|
+
|
908
|
+
EnumPtr _type;
|
909
|
+
bool _explicitValue;
|
910
|
+
int _value;
|
911
|
+
};
|
912
|
+
|
913
|
+
// ----------------------------------------------------------------------
|
914
|
+
// Const
|
915
|
+
// ----------------------------------------------------------------------
|
916
|
+
|
917
|
+
class SLICE_API Const : virtual public Contained
|
918
|
+
{
|
919
|
+
public:
|
920
|
+
|
921
|
+
TypePtr type() const;
|
922
|
+
StringList typeMetaData() const;
|
923
|
+
SyntaxTreeBasePtr valueType() const;
|
924
|
+
std::string value() const;
|
925
|
+
std::string literal() const;
|
926
|
+
virtual bool uses(const ContainedPtr&) const;
|
927
|
+
virtual ContainedType containedType() const;
|
928
|
+
virtual std::string kindOf() const;
|
929
|
+
virtual void visit(ParserVisitor*, bool);
|
930
|
+
|
931
|
+
protected:
|
932
|
+
|
933
|
+
Const(const ContainerPtr&, const std::string&, const TypePtr&, const StringList&, const SyntaxTreeBasePtr&,
|
934
|
+
const std::string&, const std::string&);
|
935
|
+
friend class Container;
|
936
|
+
|
937
|
+
TypePtr _type;
|
938
|
+
StringList _typeMetaData;
|
939
|
+
SyntaxTreeBasePtr _valueType;
|
940
|
+
std::string _value;
|
941
|
+
std::string _literal;
|
942
|
+
};
|
943
|
+
|
944
|
+
// ----------------------------------------------------------------------
|
945
|
+
// ParamDecl
|
946
|
+
// ----------------------------------------------------------------------
|
947
|
+
|
948
|
+
class SLICE_API ParamDecl : virtual public Contained
|
949
|
+
{
|
950
|
+
public:
|
951
|
+
|
952
|
+
TypePtr type() const;
|
953
|
+
bool isOutParam() const;
|
954
|
+
bool optional() const;
|
955
|
+
int tag() const;
|
956
|
+
virtual ContainedType containedType() const;
|
957
|
+
virtual bool uses(const ContainedPtr&) const;
|
958
|
+
virtual std::string kindOf() const;
|
959
|
+
virtual void visit(ParserVisitor*, bool);
|
960
|
+
|
961
|
+
protected:
|
962
|
+
|
963
|
+
ParamDecl(const ContainerPtr&, const std::string&, const TypePtr&, bool, bool, int);
|
964
|
+
friend class Operation;
|
965
|
+
|
966
|
+
TypePtr _type;
|
967
|
+
bool _isOutParam;
|
968
|
+
bool _optional;
|
969
|
+
int _tag;
|
970
|
+
};
|
971
|
+
|
972
|
+
// ----------------------------------------------------------------------
|
973
|
+
// DataMember
|
974
|
+
// ----------------------------------------------------------------------
|
975
|
+
|
976
|
+
class SLICE_API DataMember : virtual public Contained
|
977
|
+
{
|
978
|
+
public:
|
979
|
+
|
980
|
+
TypePtr type() const;
|
981
|
+
bool optional() const;
|
982
|
+
int tag() const;
|
983
|
+
std::string defaultValue() const;
|
984
|
+
std::string defaultLiteral() const;
|
985
|
+
SyntaxTreeBasePtr defaultValueType() const;
|
986
|
+
virtual ContainedType containedType() const;
|
987
|
+
virtual bool uses(const ContainedPtr&) const;
|
988
|
+
virtual std::string kindOf() const;
|
989
|
+
virtual void visit(ParserVisitor*, bool);
|
990
|
+
|
991
|
+
protected:
|
992
|
+
|
993
|
+
DataMember(const ContainerPtr&, const std::string&, const TypePtr&, bool, int, const SyntaxTreeBasePtr&,
|
994
|
+
const std::string&, const std::string&);
|
995
|
+
friend class ClassDef;
|
996
|
+
friend class Struct;
|
997
|
+
friend class Exception;
|
998
|
+
|
999
|
+
TypePtr _type;
|
1000
|
+
bool _optional;
|
1001
|
+
int _tag;
|
1002
|
+
SyntaxTreeBasePtr _defaultValueType;
|
1003
|
+
std::string _defaultValue;
|
1004
|
+
std::string _defaultLiteral;
|
1005
|
+
};
|
1006
|
+
|
1007
|
+
// ----------------------------------------------------------------------
|
1008
|
+
// Unit
|
1009
|
+
// ----------------------------------------------------------------------
|
1010
|
+
|
1011
|
+
class SLICE_API Unit : virtual public Container
|
1012
|
+
{
|
1013
|
+
public:
|
1014
|
+
|
1015
|
+
static UnitPtr createUnit(bool, bool, bool, bool, const StringList& = StringList());
|
1016
|
+
|
1017
|
+
bool ignRedefs() const;
|
1018
|
+
bool allowIcePrefix() const;
|
1019
|
+
bool allowUnderscore() const;
|
1020
|
+
|
1021
|
+
void setComment(const std::string&);
|
1022
|
+
std::string currentComment(); // Not const, as this function removes the current comment.
|
1023
|
+
std::string currentFile() const;
|
1024
|
+
std::string topLevelFile() const;
|
1025
|
+
int currentLine() const;
|
1026
|
+
|
1027
|
+
void nextLine();
|
1028
|
+
bool scanPosition(const char*);
|
1029
|
+
int currentIncludeLevel() const;
|
1030
|
+
|
1031
|
+
void addGlobalMetaData(const StringList&);
|
1032
|
+
|
1033
|
+
void setSeenDefinition();
|
1034
|
+
|
1035
|
+
void error(const char*); // Not const, because error count is increased.
|
1036
|
+
void error(const std::string&); // Ditto.
|
1037
|
+
|
1038
|
+
void warning(const char*) const;
|
1039
|
+
void warning(const std::string&) const;
|
1040
|
+
|
1041
|
+
ContainerPtr currentContainer() const;
|
1042
|
+
void pushContainer(const ContainerPtr&);
|
1043
|
+
void popContainer();
|
1044
|
+
|
1045
|
+
DefinitionContextPtr currentDefinitionContext() const;
|
1046
|
+
void pushDefinitionContext();
|
1047
|
+
void popDefinitionContext();
|
1048
|
+
DefinitionContextPtr findDefinitionContext(const std::string&) const;
|
1049
|
+
|
1050
|
+
void addContent(const ContainedPtr&);
|
1051
|
+
void removeContent(const ContainedPtr&);
|
1052
|
+
ContainedList findContents(const std::string&) const;
|
1053
|
+
ClassList findDerivedClasses(const ClassDefPtr&) const;
|
1054
|
+
ExceptionList findDerivedExceptions(const ExceptionPtr&) const;
|
1055
|
+
ContainedList findUsedBy(const ContainedPtr&) const;
|
1056
|
+
|
1057
|
+
void addTypeId(int, const std::string&);
|
1058
|
+
std::string getTypeId(int);
|
1059
|
+
|
1060
|
+
bool usesNonLocals() const;
|
1061
|
+
bool usesConsts() const;
|
1062
|
+
|
1063
|
+
FeatureProfile profile() const;
|
1064
|
+
|
1065
|
+
//
|
1066
|
+
// Returns the path names of the files included directly by the top-level file.
|
1067
|
+
//
|
1068
|
+
StringList includeFiles() const;
|
1069
|
+
|
1070
|
+
//
|
1071
|
+
// Returns the path names of all files parsed by this unit.
|
1072
|
+
//
|
1073
|
+
StringList allFiles() const;
|
1074
|
+
|
1075
|
+
int parse(const std::string&, FILE*, bool, FeatureProfile profile = Ice);
|
1076
|
+
|
1077
|
+
virtual void destroy();
|
1078
|
+
virtual void visit(ParserVisitor*, bool);
|
1079
|
+
|
1080
|
+
BuiltinPtr builtin(Builtin::Kind); // Not const, as builtins are created on the fly. (Lazy initialization.)
|
1081
|
+
|
1082
|
+
void addTopLevelModule(const std::string&, const std::string&);
|
1083
|
+
std::set<std::string> getTopLevelModules(const std::string&) const;
|
1084
|
+
|
1085
|
+
private:
|
1086
|
+
|
1087
|
+
Unit(bool, bool, bool, bool, const StringList&);
|
1088
|
+
static void eraseWhiteSpace(::std::string&);
|
1089
|
+
|
1090
|
+
bool _ignRedefs;
|
1091
|
+
bool _all;
|
1092
|
+
bool _allowIcePrefix;
|
1093
|
+
bool _allowUnderscore;
|
1094
|
+
StringList _defaultGlobalMetaData;
|
1095
|
+
int _errors;
|
1096
|
+
std::string _currentComment;
|
1097
|
+
int _currentLine;
|
1098
|
+
int _currentIncludeLevel;
|
1099
|
+
std::string _currentFile;
|
1100
|
+
std::string _topLevelFile;
|
1101
|
+
std::stack<DefinitionContextPtr> _definitionContextStack;
|
1102
|
+
StringList _includeFiles;
|
1103
|
+
std::stack<ContainerPtr> _containerStack;
|
1104
|
+
std::map<Builtin::Kind, BuiltinPtr> _builtins;
|
1105
|
+
std::map<std::string, ContainedList> _contentMap;
|
1106
|
+
FeatureProfile _featureProfile;
|
1107
|
+
std::map<std::string, DefinitionContextPtr> _definitionContextMap;
|
1108
|
+
std::map<int, std::string> _typeIds;
|
1109
|
+
std::map< std::string, std::set<std::string> > _fileTopLevelModules;
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
extern SLICE_API Unit* unit; // The current parser for bison/flex
|
1113
|
+
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
#endif
|