diff options
author | Michi Henning <michi@zeroc.com> | 2008-05-13 13:47:40 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2008-05-13 13:47:40 +1000 |
commit | 5d7c1d7e91e73eee8749fa1f111b6f3d1346b9ed (patch) | |
tree | 47ddba5c73570b5a53a514d980d031786a0c6974 | |
parent | fixing perms on C# files (diff) | |
download | ice-5d7c1d7e91e73eee8749fa1f111b6f3d1346b9ed.tar.bz2 ice-5d7c1d7e91e73eee8749fa1f111b6f3d1346b9ed.tar.xz ice-5d7c1d7e91e73eee8749fa1f111b6f3d1346b9ed.zip |
Reverted changes to freeze demos.
Squashed commit of the following:
commit 8538f7592c2394757efe5770e7ee64e6c798cc54
Author: Michi Henning <michi@zeroc.com>
Date: Tue May 13 13:40:14 2008 +1000
Revert "Updated Freeze demos to align with life cycle chapter. Added interactive"
This reverts commit 3fc7fe8faf1c73e85fdb6f1274ed380155f9a8fc.
commit 4c8f5001f7488c942e6e42b4c935925b255c8de6
Author: Michi Henning <michi@zeroc.com>
Date: Tue May 13 13:39:52 2008 +1000
Revert "Removed freeze_filesystem demo (now called evictor_filesystem)."
This reverts commit 024c99e50dc0a3e2dee903d1470e028273706ace.
commit db921eebbfea02a628a6d7ac2fc3fe876005da7c
Author: Michi Henning <michi@zeroc.com>
Date: Tue May 13 13:39:33 2008 +1000
Revert "Added map filesystem demo for Java."
This reverts commit ed82a00405e11037b739b2a9e3a33d820a44d34d.
103 files changed, 450 insertions, 11845 deletions
diff --git a/config/makedepend.py b/config/makedepend.py index 20b1c79d692..1c573374dc6 100755 --- a/config/makedepend.py +++ b/config/makedepend.py @@ -14,7 +14,7 @@ previous = "" commentre = re.compile("^#") -for top_srcdir in [".", "..", "../..", "../../..", "../../../..", "../../../../.."]: +for top_srcdir in [".", "..", "../..", "../../..", "../../../.."]: top_srcdir = os.path.normpath(top_srcdir) if os.path.exists(os.path.join(top_srcdir, "..", "config", "TestUtil.py")): break diff --git a/cpp/allDemos.py b/cpp/allDemos.py index 1365143112e..e7a42b73f63 100755 --- a/cpp/allDemos.py +++ b/cpp/allDemos.py @@ -58,8 +58,7 @@ demos = [ "Freeze/backup", "Freeze/transform", "Freeze/casino", - "book/evictor_filesystem", - "book/map_filesystem", + "book/freeze_filesystem", "book/simple_filesystem", "book/printer", "book/lifecycle", diff --git a/cpp/demo/Freeze/casino/.gitignore b/cpp/demo/Freeze/casino/.gitignore index eb65911c14a..cad7a8f63f0 100644 --- a/cpp/demo/Freeze/casino/.gitignore +++ b/cpp/demo/Freeze/casino/.gitignore @@ -13,8 +13,3 @@ db/bet db/bank db/player db/log.* -db/__catalog -db/bet -db/bank -db/player -db/log.* diff --git a/cpp/demo/IceGrid/secure/.gitignore b/cpp/demo/IceGrid/secure/.gitignore index 58441e933c7..778c6285ebc 100644 --- a/cpp/demo/IceGrid/secure/.gitignore +++ b/cpp/demo/IceGrid/secure/.gitignore @@ -5,6 +5,6 @@ client server Hello.cpp Hello.h -db/registry/* db/node/* +db/registry/* certs/* diff --git a/cpp/demo/book/Makefile b/cpp/demo/book/Makefile index c7ac3a6d1a6..a781ccaf5d6 100644 --- a/cpp/demo/book/Makefile +++ b/cpp/demo/book/Makefile @@ -14,8 +14,7 @@ include $(top_srcdir)/config/Make.rules SUBDIRS = printer \ simple_filesystem \ lifecycle \ - map_filesystem \ - evictor_filesystem + freeze_filesystem $(EVERYTHING):: @for subdir in $(SUBDIRS); \ diff --git a/cpp/demo/book/Makefile.mak b/cpp/demo/book/Makefile.mak index a6244af4e40..31c8a94191b 100644 --- a/cpp/demo/book/Makefile.mak +++ b/cpp/demo/book/Makefile.mak @@ -11,7 +11,7 @@ top_srcdir = ..\.. !include $(top_srcdir)\config\Make.rules.mak
-SUBDIRS = printer simple_filesystem lifecycle map_filesystem evictor_filesystem
+SUBDIRS = printer simple_filesystem lifecycle freeze_filesystem
$(EVERYTHING)::
@for %i in ( $(SUBDIRS) ) do \
diff --git a/cpp/demo/book/README b/cpp/demo/book/README index 5876d2c345e..abc3d50b723 100644 --- a/cpp/demo/book/README +++ b/cpp/demo/book/README @@ -20,12 +20,7 @@ Demos in this directory: An implementation of the file system that supports life cycle operations. -- map_filesystem +- freeze_filesystem An implementation of the persistent version of the file system - based on Freeze maps as described in the Freeze chapter. - -- evictor_filesystem - - An implementation of the persistent version of the file system - based on a background-save evictor as described in the Freeze chapter. + example described in the Freeze chapter. diff --git a/cpp/demo/book/evictor_filesystem/.depend b/cpp/demo/book/evictor_filesystem/.depend deleted file mode 100644 index 76fe116f517..00000000000 --- a/cpp/demo/book/evictor_filesystem/.depend +++ /dev/null @@ -1,12 +0,0 @@ -Filesystem$(OBJEXT): Filesystem.cpp Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h -Scanner$(OBJEXT): Scanner.cpp Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Grammar.h -Grammar$(OBJEXT): Grammar.cpp Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Parser$(OBJEXT): Parser.cpp $(includedir)/IceUtil/DisableWarnings.h Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Parser.h -PersistentFilesystem$(OBJEXT): PersistentFilesystem.cpp PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h -PersistentFilesystemI$(OBJEXT): PersistentFilesystemI.cpp PersistentFilesystemI.h PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/Freeze/Freeze.h $(includedir)/Freeze/Initialize.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Transaction.h $(includedir)/Freeze/BackgroundSaveEvictor.h $(includedir)/Freeze/Evictor.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/TransactionalEvictor.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/TransactionHolder.h $(includedir)/Freeze/Catalog.h $(includedir)/Freeze/CatalogData.h -Server$(OBJEXT): Server.cpp PersistentFilesystemI.h PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/Freeze/Freeze.h $(includedir)/Freeze/Initialize.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Transaction.h $(includedir)/Freeze/BackgroundSaveEvictor.h $(includedir)/Freeze/Evictor.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/TransactionalEvictor.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/TransactionHolder.h $(includedir)/Freeze/Catalog.h $(includedir)/Freeze/CatalogData.h -Filesystem.cpp: Filesystem.ice -PersistentFilesystem.cpp: PersistentFilesystem.ice -Filesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) -PersistentFilesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) diff --git a/cpp/demo/book/evictor_filesystem/Client.cpp b/cpp/demo/book/evictor_filesystem/Client.cpp deleted file mode 100644 index ca7fd7a8d72..00000000000 --- a/cpp/demo/book/evictor_filesystem/Client.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Ice/Ice.h> -#include <Filesystem.h> -#include <Parser.h> - -using namespace std; -using namespace Filesystem; - -class FilesystemClient : public Ice::Application -{ -public: - FilesystemClient() : - // - // Since this is an interactive demo we don't want any signal - // handling. - // - Ice::Application(Ice::NoSignalHandling) - { - } - - virtual int run(int, char * []) { - - // Create a proxy for the root directory - // - Ice::ObjectPrx base = communicator()->stringToProxy("RootDir:default -p 10000"); - if(!base) - { - throw "Could not create proxy"; - } - - // Down-cast the proxy to a Directory proxy. - // - DirectoryPrx rootDir = DirectoryPrx::checkedCast(base); - if(!rootDir) - { - throw "Invalid proxy"; - } - - ParserPtr p = new Parser(rootDir); - return p->parse(); - } -}; - -int -main(int argc, char* argv[]) -{ - FilesystemClient client; - return client.main(argc, argv); -} diff --git a/cpp/demo/book/evictor_filesystem/Grammar.y b/cpp/demo/book/evictor_filesystem/Grammar.y deleted file mode 100644 index ec5d0f2bf8a..00000000000 --- a/cpp/demo/book/evictor_filesystem/Grammar.y +++ /dev/null @@ -1,146 +0,0 @@ -%{ - -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Parser.h> - -#ifdef _MSC_VER -// I get these warnings from some bison versions: -// warning C4102: 'yyoverflowlab' : unreferenced label -# pragma warning( disable : 4102 ) -// warning C4065: switch statement contains 'default' but no 'case' labels -# pragma warning( disable : 4065 ) -#endif - -using namespace std; - -void -yyerror(const char* s) -{ - parser->error(s); -} - -%} - -%pure_parser - -%token TOK_HELP -%token TOK_EXIT -%token TOK_STRING -%token TOK_LIST -%token TOK_LIST_RECURSIVE -%token TOK_CREATE_FILE -%token TOK_CREATE_DIR -%token TOK_PWD -%token TOK_CD -%token TOK_CAT -%token TOK_WRITE -%token TOK_RM - -%% - -// ---------------------------------------------------------------------- -start -// ---------------------------------------------------------------------- -: commands -{ -} -| -{ -} -; - -// ---------------------------------------------------------------------- -commands -// ---------------------------------------------------------------------- -: commands command -{ -} -| command -{ -} -; - -// ---------------------------------------------------------------------- -command -// ---------------------------------------------------------------------- -: TOK_HELP ';' -{ - parser->usage(); -} -| TOK_EXIT ';' -{ - return 0; -} -| TOK_LIST -{ - parser->list(false); -} -| TOK_LIST_RECURSIVE -{ - parser->list(true); -} -| TOK_CREATE_FILE strings -{ - parser->createFile($2); -} -| TOK_CREATE_DIR strings -{ - parser->createDir($2); -} -| TOK_PWD -{ - parser->pwd(); -} -| TOK_CD -{ - parser->cd("/"); -} -| TOK_CD strings -{ - parser->cd($2.front()); -} -| TOK_CAT TOK_STRING -{ - parser->cat($2.front()); -} -| TOK_WRITE strings -{ - parser->write($2); -} -| TOK_RM strings -{ - parser->destroy($2); -} -| error ';' -{ - parser->usage(); - yyerrok; -} -| ';' -{ -} -; - -// ---------------------------------------------------------------------- -strings -// ---------------------------------------------------------------------- -: TOK_STRING strings -{ - $$ = $2; - $$.push_front($1.front()); -} -| TOK_STRING -{ - $$ = $1; -} -; - -%% diff --git a/cpp/demo/book/evictor_filesystem/Parser.cpp b/cpp/demo/book/evictor_filesystem/Parser.cpp deleted file mode 100644 index 83cea62bd74..00000000000 --- a/cpp/demo/book/evictor_filesystem/Parser.cpp +++ /dev/null @@ -1,438 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <IceUtil/DisableWarnings.h> -#include <Parser.h> - -#ifdef HAVE_READLINE -# include <readline/readline.h> -# include <readline/history.h> -#endif - -using namespace std; -using namespace Filesystem; - -extern FILE* yyin; - -Parser* parser; - -Parser::Parser(const DirectoryPrx& root) -{ - _dirs.push_front(root); -} - -void -Parser::usage() -{ - cout << - "help Print this message.\n" - "pwd Print current directory (/ = root).\n" - "cd [DIR] Change directory (/ or empty = root).\n" - "ls List current directory.\n" - "lr Recursively list current directory.\n" - "mkdir DIR [DIR...] Create directories DIR in current directory.\n" - "mkfile FILE [FILE...] Create files FILE in current directory.\n" - "rm NAME [NAME...] Delete directory or file NAME (rm * to delete all).\n" - "cat FILE List the contents of FILE.\n" - "write FILE [STRING...] Write STRING to FILE.\n" - "exit, quit Exit this program.\n"; -} - -// Print the contents of directory "dir". If recursive is true, -// print in tree fashion. -// For files, show the contents of each file. The "depth" -// parameter is the current nesting level (for indentation). - -void -Parser::list(bool recursive) -{ - list(_dirs.front(), recursive, 0); -} - -void -Parser::list(const DirectoryPrx& dir, bool recursive, int depth) -{ - string indent(depth++, '\t'); - - NodeDescSeq contents = dir->list(); - - for(NodeDescSeq::const_iterator i = contents.begin(); i != contents.end(); ++i) - { - DirectoryPrx d = i->type == DirType ? DirectoryPrx::uncheckedCast(i->proxy) : (DirectoryPrx)0; - cout << indent << i->name << (d ? " (directory)" : " (file)"); - if(d && recursive) - { - cout << ":" << endl; - list(d, true, depth); - } - else - { - cout << endl; - } - } -} - -void -Parser::createFile(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "..") - { - cout << "Cannot create a file named `..'" << endl; - continue; - } - - try - { - dir->createFile(*i); - } - catch(const NameInUse&) - { - cout << "`" << *i << "' exists already" << endl; - } - } -} - -void -Parser::createDir(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "..") - { - cout << "Cannot create a directory named `.'" << endl; - continue; - } - - try - { - dir->createDirectory(*i); - } - catch(const NameInUse&) - { - cout << "`" << *i << "' exists already" << endl; - } - } -} - -void -Parser::pwd() -{ - if(_dirs.size() == 1) - { - cout << "/"; - } - else - { - // COMPILERFIX: Should be const_reverse_iterator, but that won't compile with - // gcc because operator!= is missing. - // - std::list<DirectoryPrx>::reverse_iterator i = _dirs.rbegin(); - ++i; - while(i != _dirs.rend()) - { - cout << "/" << (*i)->name(); - ++i; - } - } - cout << endl; -} - -void -Parser::cd(const string& name) -{ - if(name == "/") - { - while(_dirs.size() > 1) - { - _dirs.pop_front(); - } - return; - } - - if(name == "..") - { - if(_dirs.size() > 1) - { - _dirs.pop_front(); - } - return; - } - - DirectoryPrx dir = _dirs.front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such directory" << endl; - return; - } - if(d.type == FileType) - { - cout << "`" << name << "': not a directory" << endl; - return; - } - _dirs.push_front(DirectoryPrx::uncheckedCast(d.proxy)); -} - -void -Parser::cat(const string& name) -{ - DirectoryPrx dir = _dirs.front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such file" << endl; - return; - } - if(d.type == DirType) - { - cout << "`" << name << "': not a file" << endl; - return; - } - FilePrx f = FilePrx::uncheckedCast(d.proxy); - Lines l = f->read(); - for(Lines::const_iterator i = l.begin(); i != l.end(); ++i) - { - cout << *i << endl; - } -} - -void -Parser::write(std::list<string>& args) -{ - DirectoryPrx dir = _dirs.front(); - string name = args.front(); - args.pop_front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such file" << endl; - return; - } - if(d.type == DirType) - { - cout << "`" << name << "': not a file" << endl; - return; - } - FilePrx f = FilePrx::uncheckedCast(d.proxy); - - Lines l; - for(std::list<string>::const_iterator i = args.begin(); i != args.end(); ++i) - { - l.push_back(*i); - } - f->write(l); -} - -void -Parser::destroy(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "*") - { - NodeDescSeq nodes = dir->list(); - for(NodeDescSeq::iterator j = nodes.begin(); j != nodes.end(); ++j) - { - try - { - j->proxy->destroy(); - } - catch(const PermissionDenied& ex) - { - cout << "cannot remove `" << j->name << "': " << ex.reason << endl; - } - } - return; - } - else - { - NodeDesc d; - try - { - d = dir->find(*i); - } - catch(const NoSuchName&) - { - cout << "`" << *i << "': no such file or directory" << endl; - return; - } - try - { - d.proxy->destroy(); - } - catch(const PermissionDenied& ex) - { - cout << "cannot remove `" << *i << "': " << ex.reason << endl; - } - } - } -} - -void -Parser::getInput(char* buf, int& result, int maxSize) -{ -#ifdef HAVE_READLINE - - const char* prompt = parser->getPrompt(); - char* line = readline(const_cast<char*>(prompt)); - if(!line) - { - result = 0; - } - else - { - if(*line) - { - add_history(line); - } - - result = strlen(line) + 1; - if(result > maxSize) - { - free(line); - error("input line too long"); - result = 0; - } - else - { - strcpy(buf, line); - strcat(buf, "\n"); - free(line); - } - } - -#else - - cout << parser->getPrompt() << flush; - - string line; - while(true) - { - char c = static_cast<char>(getc(yyin)); - if(c == EOF) - { - if(line.size()) - { - line += '\n'; - } - break; - } - - line += c; - - if(c == '\n') - { - break; - } - } - - result = static_cast<int>(line.length()); - if(result > maxSize) - { - error("input line too long"); - buf[0] = EOF; - result = 1; - } - else - { - strcpy(buf, line.c_str()); - } - -#endif -} - -void -Parser::continueLine() -{ - _continue = true; -} - -const char* -Parser::getPrompt() -{ - if(_continue) - { - _continue = false; - return "(cont) "; - } - else - { - return "> "; - } -} - -void -Parser::error(const char* s) -{ - cerr << "error: " << s << endl; - _errors++; -} - -void -Parser::error(const string& s) -{ - error(s.c_str()); -} - -void -Parser::warning(const char* s) -{ - cerr << "warning: " << s << endl; -} - -void -Parser::warning(const string& s) -{ - warning(s.c_str()); -} - -int -Parser::parse(bool debug) -{ - extern int yydebug; - yydebug = debug ? 1 : 0; - - assert(!parser); - parser = this; - - _errors = 0; - yyin = stdin; - assert(yyin); - - _continue = false; - - int status = yyparse(); - if(_errors) - { - status = EXIT_FAILURE; - } - - parser = 0; - return status; -} diff --git a/cpp/demo/book/evictor_filesystem/Parser.h b/cpp/demo/book/evictor_filesystem/Parser.h deleted file mode 100644 index 7479e0f349a..00000000000 --- a/cpp/demo/book/evictor_filesystem/Parser.h +++ /dev/null @@ -1,83 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef PARSER_H -#define PARSER_H - -#include <Ice/Ice.h> -#include <Filesystem.h> -#include <list> -#include <stdio.h> - -// -// Stuff for flex and bison -// - -#define YYSTYPE std::list<std::string> -#define YY_DECL int yylex(YYSTYPE* yylvalp) -YY_DECL; -int yyparse(); - -// -// I must set the initial stack depth to the maximum stack depth to -// disable bison stack resizing. The bison stack resizing routines use -// simple malloc/alloc/memcpy calls, which do not work for the -// YYSTYPE, since YYSTYPE is a C++ type, with constructor, destructor, -// assignment operator, etc. -// -#define YYMAXDEPTH 10000 -#define YYINITDEPTH YYMAXDEPTH // Initial depth is set to max depth, for the reasons described above. - -// -// Newer bison versions allow to disable stack resizing by defining -// yyoverflow. -// -#define yyoverflow(a, b, c, d, e, f) yyerror(a) - -class Parser; -typedef IceUtil::Handle<Parser> ParserPtr; - -class Parser : public IceUtil::SimpleShared -{ -public: - Parser(const Filesystem::DirectoryPrx&); - - void usage(); - void list(bool); - void list(const Filesystem::DirectoryPrx&, bool, int); - void createFile(const ::std::list< ::std::string>&); - void createDir(const ::std::list< ::std::string>&); - void pwd(); - void cd(const ::std::string&); - void cat(const ::std::string&); - void write(::std::list< ::std::string>&); - void destroy(const ::std::list< ::std::string>&); - - void getInput(char*, int&, int); - void continueLine(); - const char* getPrompt(); - - void error(const char*); - void error(const std::string&); - - void warning(const char*); - void warning(const std::string&); - - int parse(bool = false); - -private: - ::std::list<Filesystem::DirectoryPrx> _dirs; - - bool _continue; - int _errors; -}; - -extern Parser* parser; // The current parser for bison/flex - -#endif diff --git a/cpp/demo/book/evictor_filesystem/PersistentFilesystemI.h b/cpp/demo/book/evictor_filesystem/PersistentFilesystemI.h deleted file mode 100644 index 63aaac20a24..00000000000 --- a/cpp/demo/book/evictor_filesystem/PersistentFilesystemI.h +++ /dev/null @@ -1,95 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef FILESYSTEM_I_H -#define FILESYSTEM_I_H - -#include <PersistentFilesystem.h> -#include <IceUtil/IceUtil.h> -#include <Freeze/Freeze.h> - -namespace Filesystem -{ - -class NodeI : virtual public PersistentNode, - public IceUtil::AbstractMutexI<IceUtil::Mutex> -{ -public: - - static Freeze::EvictorPtr _evictor; - -protected: - - NodeI(); - NodeI(const Ice::Identity&); - -public: - - const Ice::Identity _id; -}; -typedef IceUtil::Handle<NodeI> NodeIPtr; - -class FileI : virtual public PersistentFile, - virtual public NodeI -{ -public: - - virtual std::string name(const Ice::Current&); - virtual void destroy(const Ice::Current&); - - virtual Lines read(const Ice::Current&); - virtual void write(const Lines&, const Ice::Current&); - - FileI(); - FileI(const Ice::Identity&); -}; - -class DirectoryI : virtual public PersistentDirectory, - virtual public NodeI -{ -public: - - virtual std::string name(const Ice::Current&); - virtual void destroy(const Ice::Current&); - - virtual NodeDescSeq list(const Ice::Current&); - virtual NodeDesc find(const std::string&, const Ice::Current&); - virtual DirectoryPrx createDirectory(const std::string&, const Ice::Current&); - virtual FilePrx createFile(const std::string&, const Ice::Current&); - virtual void removeNode(const std::string&, const Ice::Current&); - - DirectoryI(); - DirectoryI(const Ice::Identity&); - -private: - - bool _destroyed; -}; - -class NodeFactory : virtual public Ice::ObjectFactory -{ -public: - - virtual Ice::ObjectPtr create(const std::string&); - virtual void destroy(); -}; - -class NodeInitializer : virtual public Freeze::ServantInitializer -{ -public: - - virtual void initialize(const Ice::ObjectAdapterPtr&, - const Ice::Identity&, - const std::string&, - const Ice::ObjectPtr&); -}; - -} - -#endif diff --git a/cpp/demo/book/evictor_filesystem/README b/cpp/demo/book/evictor_filesystem/README deleted file mode 100644 index f6abb864764..00000000000 --- a/cpp/demo/book/evictor_filesystem/README +++ /dev/null @@ -1,13 +0,0 @@ -This demo presents an implementation of the filesystem -application based on a background-save evictor, as discussed in -the Freeze chapter of the Ice manual. - -To run it, start the server in a window: - -$ server - -Then run the client in a separate window: - -$ client - -Type "help" at the client prompt to see a list of commands. diff --git a/cpp/demo/book/evictor_filesystem/Scanner.l b/cpp/demo/book/evictor_filesystem/Scanner.l deleted file mode 100644 index d1a991f8280..00000000000 --- a/cpp/demo/book/evictor_filesystem/Scanner.l +++ /dev/null @@ -1,254 +0,0 @@ -%{ - -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Parser.h> -#include <Grammar.h> - -#if defined(_MSC_VER) && defined(ICE_64) -// -// 'initializing' : conversion from '__int64' to 'int', possible loss of data -// Puts a pointer-difference into an int -// -# pragma warning( 4 : 4244 ) -#endif - -using namespace std; - -#define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize) - -%} - -WS [ \t\v\f\r] -NL [\n] - -%option noyywrap -%option always-interactive - -%% - -"//" { - // C++-style comment - int c; - do - { - c = yyinput(); - } - while(c != '\n' && c != EOF); -} - -"/*" { - // C-style comment - while(true) - { - int c = yyinput(); - if(c == '*') - { - int next = yyinput(); - if(next == '/') - { - break; - } - else - { - unput(next); - } - } - else if(c == EOF) - { - parser->warning("EOF in comment"); - break; - } - } -} - -"help" { - return TOK_HELP; -} - -"quit"|"exit" { - return TOK_EXIT; -} - -"ls" { - return TOK_LIST; -} - -"lr" { - return TOK_LIST_RECURSIVE; -} - -"mkfile" { - return TOK_CREATE_FILE; -} - -"mkdir" { - return TOK_CREATE_DIR; -} - -"pwd" { - return TOK_PWD; -} - -"cd" { - return TOK_CD; -} - -"cat" { - return TOK_CAT; -} - -"write" { - return TOK_WRITE; -} - -"rm" { - return TOK_RM; -} - -{WS}*(\\{WS}*{NL})? { - size_t len = strlen(yytext); - for(size_t i = 0; i < len; ++i) - { - if(yytext[i] == '\\') - { - parser->continueLine(); - } - } -} - -{NL}|; { - return ';'; -} - -\" { - // "..."-type strings - string s; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == '"') - { - break; - } - else if(c == EOF) - { - parser->warning("EOF in string"); - break; - } - else if(c == '\\') - { - char next = static_cast<char>(yyinput()); - switch(next) - { - case '\\': - case '"': - { - s += next; - break; - } - - case 'n': - { - s += '\n'; - break; - } - - case 'r': - { - s += '\r'; - break; - } - - case 't': - { - s += '\t'; - break; - } - - case 'v': - { - s += '\v'; - break; - } - - case 'f': - { - s += '\f'; - break; - } - - default: - { - s += c; - unput(next); - } - } - } - else - { - s += c; - } - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -\' { - // '...'-type strings - string s; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == '\'') - { - break; - } - else if(c == EOF) - { - parser->warning("EOF in string"); - break; - } - else - { - s += c; - } - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -. { - // Simple strings - string s; - s += yytext[0]; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == EOF) - { - break; - } - else if(isspace(c) || c == ';') - { - unput(c); - break; - } - - s += c; - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -%% diff --git a/cpp/demo/book/evictor_filesystem/expect.py b/cpp/demo/book/evictor_filesystem/expect.py deleted file mode 100755 index f78e0701133..00000000000 --- a/cpp/demo/book/evictor_filesystem/expect.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -import sys, os - -try: - import demoscript -except ImportError: - for toplevel in [".", "..", "../..", "../../..", "../../../.."]: - toplevel = os.path.normpath(toplevel) - if os.path.exists(os.path.join(toplevel, "demoscript")): - break - else: - raise "can't find toplevel directory!" - sys.path.append(os.path.join(toplevel)) - import demoscript - -import demoscript.Util -demoscript.Util.defaultLanguage = "C++" -import demoscript.book.evictor_filesystem - -print "cleaning databases...", -sys.stdout.flush() -demoscript.Util.cleanDbDir("db") -print "ok" - -server = demoscript.Util.spawn('./server --Ice.PrintAdapterReady') -server.expect('.* ready') -client = demoscript.Util.spawn('./client') - -demoscript.book.evictor_filesystem.run(client, server) diff --git a/cpp/demo/book/freeze_filesystem/.depend b/cpp/demo/book/freeze_filesystem/.depend new file mode 100644 index 00000000000..2d886f19c7b --- /dev/null +++ b/cpp/demo/book/freeze_filesystem/.depend @@ -0,0 +1,9 @@ +Filesystem$(OBJEXT): Filesystem.cpp ./Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h +Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h +PersistentFilesystem$(OBJEXT): PersistentFilesystem.cpp ./PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h ./Filesystem.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h +PersistentFilesystemI$(OBJEXT): PersistentFilesystemI.cpp ./PersistentFilesystemI.h ./PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h ./Filesystem.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/Freeze/Freeze.h $(includedir)/Freeze/Initialize.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Transaction.h $(includedir)/Freeze/BackgroundSaveEvictor.h $(includedir)/Freeze/Evictor.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/TransactionalEvictor.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/TransactionHolder.h $(includedir)/Freeze/Catalog.h $(includedir)/Freeze/CatalogData.h +Server$(OBJEXT): Server.cpp ./PersistentFilesystemI.h ./PersistentFilesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h ./Filesystem.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/Freeze/Freeze.h $(includedir)/Freeze/Initialize.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Transaction.h $(includedir)/Freeze/BackgroundSaveEvictor.h $(includedir)/Freeze/Evictor.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/TransactionalEvictor.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/TransactionHolder.h $(includedir)/Freeze/Catalog.h $(includedir)/Freeze/CatalogData.h +Filesystem.cpp: Filesystem.ice +PersistentFilesystem.cpp: PersistentFilesystem.ice +Filesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) +PersistentFilesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) diff --git a/cpp/demo/book/evictor_filesystem/.gitignore b/cpp/demo/book/freeze_filesystem/.gitignore index 7d2b8d0a9ea..7d2b8d0a9ea 100644 --- a/cpp/demo/book/evictor_filesystem/.gitignore +++ b/cpp/demo/book/freeze_filesystem/.gitignore diff --git a/cpp/demo/book/freeze_filesystem/Client.cpp b/cpp/demo/book/freeze_filesystem/Client.cpp new file mode 100644 index 00000000000..f9ff7944e43 --- /dev/null +++ b/cpp/demo/book/freeze_filesystem/Client.cpp @@ -0,0 +1,148 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <Filesystem.h> + +using namespace std; +using namespace Filesystem; + +// Recursively print the contents of directory "dir" in tree fashion. +// For files, show the contents of each file. The "depth" +// parameter is the current nesting level (for indentation). + +static void +listRecursive(const DirectoryPrx & dir, int depth = 0) +{ + string indent(++depth, '\t'); + + NodeDescSeq contents = dir->list(); + + for (NodeDescSeq::const_iterator i = contents.begin(); i != contents.end(); ++i) { + DirectoryPrx dir = DirectoryPrx::checkedCast(i->proxy); + FilePrx file = FilePrx::uncheckedCast(i->proxy); + cout << indent << i->name << (dir ? " (directory):" : " (file):") << endl; + if (dir) { + listRecursive(dir, depth); + } else { + Lines text = file->read(); + for (Lines::const_iterator j = text.begin(); j != text.end(); ++j) + cout << indent << "\t" << *j << endl; + } + } +} + +class FilesystemClient : public Ice::Application +{ +public: + + FilesystemClient(); + virtual int run(int argc, char* argv[]); +}; + +int +main(int argc, char* argv[]) +{ + FilesystemClient app; + return app.main(argc, argv, "config.client"); +} + +FilesystemClient::FilesystemClient() : + // + // Since this is an interactive demo we don't want any signal + // handling. + // + Ice::Application(Ice::NoSignalHandling) +{ +} + +int +FilesystemClient::run(int argc, char* argv[]) +{ + // + // Create a proxy for the root directory. + // + DirectoryPrx rootDir = DirectoryPrx::checkedCast(communicator()->propertyToProxy("RootDir.Proxy")); + if(!rootDir) + { + cerr << argv[0] << ": invalid proxy" << endl; + return EXIT_FAILURE; + } + + // + // Create a file called "README" in the root directory. + // + try + { + FilePrx readme = rootDir->createFile("README"); + Lines text; + text.push_back("This file system contains a collection of poetry."); + readme->write(text); + cout << "Created README." << endl; + } + catch(const NameInUse&) + { + // + // Ignore - file already exists. + // + } + + // + // Create a directory called "Coleridge" in the root directory. + // + DirectoryPrx coleridge; + try + { + coleridge = rootDir->createDirectory("Coleridge"); + cout << "Created Coleridge." << endl; + } + catch(const NameInUse&) + { + NodeDesc desc = rootDir->find("Coleridge"); + coleridge = DirectoryPrx::checkedCast(desc.proxy); + assert(coleridge); + } + + // + // Create a file called "Kubla_Khan" in the Coleridge directory. + // + try + { + FilePrx file = coleridge->createFile("Kubla_Khan"); + Lines text; + text.push_back("In Xanadu did Kubla Khan"); + text.push_back("A stately pleasure-dome decree:"); + text.push_back("Where Alph, the sacred river, ran"); + text.push_back("Through caverns measureless to man"); + text.push_back("Down to a sunless sea."); + file->write(text); + cout << "Created Coleridge/Kubla_Khan." << endl; + } + catch(const NameInUse&) + { + // + // Ignore - file already exists. + // + } + + cout << "Contents of filesystem:" << endl; + listRecursive(rootDir); + + // + // Destroy the filesystem. + // + NodeDescSeq contents = rootDir->list(); + for(NodeDescSeq::iterator i = contents.begin(); i != contents.end(); ++i) + { + cout << "Destroying " << i->name << endl; + i->proxy->destroy(); + } + + return EXIT_SUCCESS; +} diff --git a/cpp/demo/book/evictor_filesystem/Filesystem.ice b/cpp/demo/book/freeze_filesystem/Filesystem.ice index b8b5b38d351..b8b5b38d351 100644 --- a/cpp/demo/book/evictor_filesystem/Filesystem.ice +++ b/cpp/demo/book/freeze_filesystem/Filesystem.ice diff --git a/cpp/demo/book/evictor_filesystem/Makefile b/cpp/demo/book/freeze_filesystem/Makefile index fa71534184b..fd1e1ace7e4 100644 --- a/cpp/demo/book/evictor_filesystem/Makefile +++ b/cpp/demo/book/freeze_filesystem/Makefile @@ -16,10 +16,7 @@ TARGETS = $(CLIENT) $(SERVER) OBJS = Filesystem.o -COBJS = Scanner.o \ - Grammar.o \ - Parser.o \ - Client.o +COBJS = Client.o SOBJS = PersistentFilesystem.o \ PersistentFilesystemI.o \ @@ -45,19 +42,6 @@ $(SERVER): $(OBJS) $(SOBJS) rm -f $@ $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(SOBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS) -Scanner.cpp: Scanner.l - flex Scanner.l - rm -f $@ - echo #include "IceUtil/Config.h" > Scanner.cpp - cat lex.yy.c >> Scanner.cpp - rm -f lex.yy.c - -Grammar.cpp Grammar.h: Grammar.y - rm -f Grammar.h Grammar.cpp - bison -dvt Grammar.y - mv Grammar.tab.c Grammar.cpp - mv Grammar.tab.h Grammar.h - rm -f Grammar.output clean:: -rm -f db/* -rm -f Grammar.cpp Grammar.h diff --git a/cpp/demo/book/evictor_filesystem/Makefile.mak b/cpp/demo/book/freeze_filesystem/Makefile.mak index cd1c663b00f..59447d7eeb6 100644 --- a/cpp/demo/book/evictor_filesystem/Makefile.mak +++ b/cpp/demo/book/freeze_filesystem/Makefile.mak @@ -16,10 +16,7 @@ TARGETS = $(CLIENT) $(SERVER) OBJS = Filesystem.obj
-COBJS = Scanner.obj \
- Grammar.obj \
- Parser.obj \
- Client.obj
+COBJS = Client.obj
SOBJS = PersistentFilesystem.obj \
PersistentFilesystemI.obj \
@@ -50,25 +47,9 @@ $(SERVER): $(OBJS) $(SOBJS) @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
$(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
-Scanner.cpp: Scanner.l
- flex Scanner.l
- -del /q $@
- echo #include "IceUtil/Config.h" > Scanner.cpp
- type lex.yy.c >> Scanner.cpp
- -del /q lex.yy.c
-
-Grammar.cpp Grammar.h: Grammar.y
- -del /q Grammar.h Grammar.cpp
- bison -dvt Grammar.y
- move Grammar.tab.c Grammar.cpp
- move Grammar.tab.h Grammar.h
- -del /q Grammar.output
-
clean::
-del /q Filesystem.cpp Filesystem.h
-del /q PersistentFilesystem.cpp PersistentFilesystem.h
- -del /q Scanner.cpp Scanner.h
- -del /q Grammar.cpp
clean::
-for %f in (db\*) do if not %f == db\.gitignore del /q %f
diff --git a/cpp/demo/book/evictor_filesystem/PersistentFilesystem.ice b/cpp/demo/book/freeze_filesystem/PersistentFilesystem.ice index 2895d2f5d14..2895d2f5d14 100644 --- a/cpp/demo/book/evictor_filesystem/PersistentFilesystem.ice +++ b/cpp/demo/book/freeze_filesystem/PersistentFilesystem.ice diff --git a/cpp/demo/book/evictor_filesystem/PersistentFilesystemI.cpp b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp index cc143cbb346..984a4c282e1 100644 --- a/cpp/demo/book/evictor_filesystem/PersistentFilesystemI.cpp +++ b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.cpp @@ -88,7 +88,7 @@ Filesystem::DirectoryI::destroy(const Ice::Current& c) { if(!parent) { - throw Filesystem::PermissionDenied("Cannot destroy root directory"); + throw Filesystem::PermissionDenied("cannot destroy root directory"); } NodeDict children; @@ -101,11 +101,6 @@ Filesystem::DirectoryI::destroy(const Ice::Current& c) throw Ice::ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); } - if(!nodes.empty()) - { - throw PermissionDenied("Cannot destroy non-empty directory"); - } - children = nodes; _destroyed = true; } diff --git a/cpp/demo/book/evictor_filesystem/FilesystemI.h b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.h index bdbbea08374..bdbbea08374 100644 --- a/cpp/demo/book/evictor_filesystem/FilesystemI.h +++ b/cpp/demo/book/freeze_filesystem/PersistentFilesystemI.h diff --git a/cpp/demo/book/freeze_filesystem/README b/cpp/demo/book/freeze_filesystem/README new file mode 100644 index 00000000000..1eb77d69e29 --- /dev/null +++ b/cpp/demo/book/freeze_filesystem/README @@ -0,0 +1,10 @@ +This demo presents an alternate implementation of the filesystem +application, as discussed in the Freeze chapter of the Ice manual. + +To run it, start the server in a window: + +$ server + +Then run the client in a separate window: + +$ client diff --git a/cpp/demo/book/evictor_filesystem/Server.cpp b/cpp/demo/book/freeze_filesystem/Server.cpp index 86d7e349e3a..86d7e349e3a 100644 --- a/cpp/demo/book/evictor_filesystem/Server.cpp +++ b/cpp/demo/book/freeze_filesystem/Server.cpp diff --git a/cpp/demo/book/evictor_filesystem/config.client b/cpp/demo/book/freeze_filesystem/config.client index 6f0ba50b98f..6f0ba50b98f 100644 --- a/cpp/demo/book/evictor_filesystem/config.client +++ b/cpp/demo/book/freeze_filesystem/config.client diff --git a/cpp/demo/book/evictor_filesystem/config.server b/cpp/demo/book/freeze_filesystem/config.server index 8ee5723e944..8ee5723e944 100644 --- a/cpp/demo/book/evictor_filesystem/config.server +++ b/cpp/demo/book/freeze_filesystem/config.server diff --git a/cpp/demo/book/evictor_filesystem/db/.gitignore b/cpp/demo/book/freeze_filesystem/db/.gitignore index 39af5887579..39af5887579 100644 --- a/cpp/demo/book/evictor_filesystem/db/.gitignore +++ b/cpp/demo/book/freeze_filesystem/db/.gitignore diff --git a/cpp/demo/book/map_filesystem/expect.py b/cpp/demo/book/freeze_filesystem/expect.py index 12e1422d2fa..bdd92351ebd 100755 --- a/cpp/demo/book/map_filesystem/expect.py +++ b/cpp/demo/book/freeze_filesystem/expect.py @@ -24,7 +24,7 @@ except ImportError: import demoscript.Util demoscript.Util.defaultLanguage = "C++" -import demoscript.book.map_filesystem +import demoscript.book.freeze_filesystem print "cleaning databases...", sys.stdout.flush() @@ -35,4 +35,4 @@ server = demoscript.Util.spawn('./server --Ice.PrintAdapterReady') server.expect('.* ready') client = demoscript.Util.spawn('./client') -demoscript.book.map_filesystem.run(client, server) +demoscript.book.freeze_filesystem.run(client, server) diff --git a/cpp/demo/book/evictor_filesystem/evictorfsC.dsp b/cpp/demo/book/freeze_filesystem/freezefsC.dsp index 23dfe07a7cb..7b9a1b41e18 100644..100755 --- a/cpp/demo/book/evictor_filesystem/evictorfsC.dsp +++ b/cpp/demo/book/freeze_filesystem/freezefsC.dsp @@ -1,24 +1,24 @@ -# Microsoft Developer Studio Project File - Name="evictorfsC" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="freezefsC" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=evictorfsC - Win32 Debug
+CFG=freezefsC - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
-!MESSAGE NMAKE /f "evictorfsC.mak".
+!MESSAGE NMAKE /f "freezefsC.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "evictorfsC.mak" CFG="evictorfsC - Win32 Debug"
+!MESSAGE NMAKE /f "freezefsC.mak" CFG="freezefsC - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "evictorfsC - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "evictorfsC - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "freezefsC - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "freezefsC - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=evictorfsC - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "evictorfsC - Win32 Release"
+!IF "$(CFG)" == "freezefsC - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -53,7 +53,7 @@ LINK32=link.exe # ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "evictorfsC - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsC - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -82,8 +82,8 @@ LINK32=link.exe # Begin Target
-# Name "evictorfsC - Win32 Release"
-# Name "evictorfsC - Win32 Debug"
+# Name "freezefsC - Win32 Release"
+# Name "freezefsC - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter ""
@@ -97,20 +97,8 @@ SOURCE=.\Filesystem.cpp # End Source File
# Begin Source File
-SOURCE=.\Grammar.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Parser.cpp
-# End Source File
-# Begin Source File
-
SOURCE=.\PersistentFilesystem.cpp
# End Source File
-# Begin Source File
-
-SOURCE=.\Scanner.cpp
-# End Source File
# End Group
# Begin Group "Header Files"
@@ -121,14 +109,6 @@ SOURCE=.\Filesystem.h # End Source File
# Begin Source File
-SOURCE=.\Grammar.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Parser.h
-# End Source File
-# Begin Source File
-
SOURCE=.\PersistentFilesystem.h
# End Source File
# End Group
@@ -139,7 +119,7 @@ SOURCE=.\PersistentFilesystem.h SOURCE=.\Filesystem.ice
-!IF "$(CFG)" == "evictorfsC - Win32 Release"
+!IF "$(CFG)" == "freezefsC - Win32 Release"
USERDEP__FILES="../../../bin/slice2cpp.exe"
# Begin Custom Build
@@ -155,7 +135,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "evictorfsC - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsC - Win32 Debug"
USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
# Begin Custom Build
@@ -176,13 +156,9 @@ BuildCmds= \ # End Source File
# Begin Source File
-SOURCE=.\Grammar.y
-# End Source File
-# Begin Source File
-
SOURCE=.\PersistentFilesystem.ice
-!IF "$(CFG)" == "evictorfsC - Win32 Release"
+!IF "$(CFG)" == "freezefsC - Win32 Release"
# Begin Custom Build
InputPath=.\PersistentFilesystem.ice
@@ -197,7 +173,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "evictorfsC - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsC - Win32 Debug"
# Begin Custom Build
InputPath=.\PersistentFilesystem.ice
@@ -215,10 +191,6 @@ BuildCmds= \ !ENDIF
# End Source File
-# Begin Source File
-
-SOURCE=.\Scanner.l
-# End Source File
# End Group
# Begin Source File
diff --git a/cpp/demo/book/evictor_filesystem/evictorfsS.dsp b/cpp/demo/book/freeze_filesystem/freezefsS.dsp index e664a2f202d..a15ea1d0b46 100644..100755 --- a/cpp/demo/book/evictor_filesystem/evictorfsS.dsp +++ b/cpp/demo/book/freeze_filesystem/freezefsS.dsp @@ -1,24 +1,24 @@ -# Microsoft Developer Studio Project File - Name="evictorfsS" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="freezefsS" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=evictorfsS - Win32 Debug
+CFG=freezefsS - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
-!MESSAGE NMAKE /f "evictorfsS.mak".
+!MESSAGE NMAKE /f "freezefsS.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "evictorfsS.mak" CFG="evictorfsS - Win32 Debug"
+!MESSAGE NMAKE /f "freezefsS.mak" CFG="freezefsS - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "evictorfsS - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "evictorfsS - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "freezefsS - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "freezefsS - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=evictorfsS - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "evictorfsS - Win32 Release"
+!IF "$(CFG)" == "freezefsS - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -53,7 +53,7 @@ LINK32=link.exe # ADD LINK32 Freeze.lib Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "evictorfsS - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsS - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -82,8 +82,8 @@ LINK32=link.exe # Begin Target
-# Name "evictorfsS - Win32 Release"
-# Name "evictorfsS - Win32 Debug"
+# Name "freezefsS - Win32 Release"
+# Name "freezefsS - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -131,7 +131,7 @@ SOURCE=.\PersistentFilesystemI.h SOURCE=.\Filesystem.ice
-!IF "$(CFG)" == "evictorfsS - Win32 Release"
+!IF "$(CFG)" == "freezefsS - Win32 Release"
USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
# Begin Custom Build
@@ -147,7 +147,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "evictorfsS - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsS - Win32 Debug"
USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
# Begin Custom Build
@@ -170,7 +170,7 @@ BuildCmds= \ SOURCE=.\PersistentFilesystem.ice
-!IF "$(CFG)" == "evictorfsS - Win32 Release"
+!IF "$(CFG)" == "freezefsS - Win32 Release"
# Begin Custom Build
InputPath=.\PersistentFilesystem.ice
@@ -185,7 +185,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "evictorfsS - Win32 Debug"
+!ELSEIF "$(CFG)" == "freezefsS - Win32 Debug"
# Begin Custom Build
InputPath=.\PersistentFilesystem.ice
diff --git a/cpp/demo/book/lifecycle/.depend b/cpp/demo/book/lifecycle/.depend index d721f40278c..9b556a3aa55 100644 --- a/cpp/demo/book/lifecycle/.depend +++ b/cpp/demo/book/lifecycle/.depend @@ -1,9 +1,9 @@ -Filesystem$(OBJEXT): Filesystem.cpp Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h $(includedir)/IceUtil/DisableWarnings.h -Grammar$(OBJEXT): Grammar.cpp Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Scanner$(OBJEXT): Scanner.cpp $(includedir)/IceUtil/Config.h Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Grammar.h -Parser$(OBJEXT): Parser.cpp $(includedir)/IceUtil/DisableWarnings.h Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Parser.h -FilesystemI$(OBJEXT): FilesystemI.cpp $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/Cond.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/IceUtil/Unicode.h FilesystemI.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/Ice/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h FilesystemI.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/UUID.h Filesystem.h +Filesystem$(OBJEXT): Filesystem.cpp ./Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h $(includedir)/IceUtil/DisableWarnings.h +Grammar$(OBJEXT): Grammar.cpp ./Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h +Scanner$(OBJEXT): Scanner.cpp $(includedir)/IceUtil/Config.h ./Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h ./Grammar.h +Parser$(OBJEXT): Parser.cpp $(includedir)/IceUtil/DisableWarnings.h ./Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h +Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h ./Parser.h +FilesystemI$(OBJEXT): FilesystemI.cpp $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/Cond.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/IceUtil/Unicode.h ./FilesystemI.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/Ice/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h +Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./FilesystemI.h $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/UUID.h ./Filesystem.h Filesystem.cpp: Filesystem.ice Filesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) diff --git a/cpp/demo/book/map_filesystem/.depend b/cpp/demo/book/map_filesystem/.depend deleted file mode 100644 index 7136f8e4c09..00000000000 --- a/cpp/demo/book/map_filesystem/.depend +++ /dev/null @@ -1,8 +0,0 @@ -Filesystem$(OBJEXT): Filesystem.cpp Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h -Scanner$(OBJEXT): Scanner.cpp Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Grammar.h -Grammar$(OBJEXT): Grammar.cpp Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Parser$(OBJEXT): Parser.cpp $(includedir)/IceUtil/DisableWarnings.h Parser.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h Parser.h -FilesystemI$(OBJEXT): FilesystemI.cpp FilesystemI.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h IdentityNodeMap.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/Transaction.h $(includedir)/IceUtil/UUID.h $(includedir)/Freeze/Initialize.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h -Server$(OBJEXT): Server.cpp FilesystemI.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h IdentityNodeMap.h $(includedir)/Freeze/Map.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/Transaction.h $(includedir)/Freeze/Freeze.h $(includedir)/Freeze/Initialize.h $(includedir)/Freeze/EvictorF.h $(includedir)/Freeze/ConnectionF.h $(includedir)/Freeze/Index.h $(includedir)/Freeze/BackgroundSaveEvictor.h $(includedir)/Freeze/Evictor.h $(includedir)/Freeze/TransactionalEvictor.h $(includedir)/Freeze/TransactionHolder.h $(includedir)/Freeze/Catalog.h $(includedir)/Freeze/CatalogData.h -IdentityNodeMap$(OBJEXT): IdentityNodeMap.cpp $(includedir)/Ice/BasicStream.h $(includedir)/Ice/InstanceF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h IdentityNodeMap.h $(includedir)/Freeze/Map.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h $(includedir)/Freeze/DB.h $(includedir)/Freeze/Exception.h $(includedir)/Freeze/Connection.h $(includedir)/Freeze/Transaction.h diff --git a/cpp/demo/book/map_filesystem/.gitignore b/cpp/demo/book/map_filesystem/.gitignore deleted file mode 100644 index 3cd7d397ef3..00000000000 --- a/cpp/demo/book/map_filesystem/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by makegitignore.py - -// IMPORTANT: Do not edit this file -- any edits made here will be lost! -client -server -db/* -IdentityNodeMap.cpp -IdentityNodeMap.h -Grammar.cpp -Grammar.h -Scanner.cpp diff --git a/cpp/demo/book/map_filesystem/Client.cpp b/cpp/demo/book/map_filesystem/Client.cpp deleted file mode 100644 index ca7fd7a8d72..00000000000 --- a/cpp/demo/book/map_filesystem/Client.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Ice/Ice.h> -#include <Filesystem.h> -#include <Parser.h> - -using namespace std; -using namespace Filesystem; - -class FilesystemClient : public Ice::Application -{ -public: - FilesystemClient() : - // - // Since this is an interactive demo we don't want any signal - // handling. - // - Ice::Application(Ice::NoSignalHandling) - { - } - - virtual int run(int, char * []) { - - // Create a proxy for the root directory - // - Ice::ObjectPrx base = communicator()->stringToProxy("RootDir:default -p 10000"); - if(!base) - { - throw "Could not create proxy"; - } - - // Down-cast the proxy to a Directory proxy. - // - DirectoryPrx rootDir = DirectoryPrx::checkedCast(base); - if(!rootDir) - { - throw "Invalid proxy"; - } - - ParserPtr p = new Parser(rootDir); - return p->parse(); - } -}; - -int -main(int argc, char* argv[]) -{ - FilesystemClient client; - return client.main(argc, argv); -} diff --git a/cpp/demo/book/map_filesystem/Filesystem.cpp b/cpp/demo/book/map_filesystem/Filesystem.cpp deleted file mode 100644 index 2cf0f4bb086..00000000000 --- a/cpp/demo/book/map_filesystem/Filesystem.cpp +++ /dev/null @@ -1,3170 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -// Ice version 3.3.0 -// Generated from file `Filesystem.ice' - -#include <Filesystem.h> -#include <Ice/LocalException.h> -#include <Ice/ObjectFactory.h> -#include <Ice/BasicStream.h> -#include <IceUtil/Iterator.h> -#include <IceUtil/ScopedArray.h> - -#ifndef ICE_IGNORE_VERSION -# if ICE_INT_VERSION / 100 != 303 -# error Ice version mismatch! -# endif -# if ICE_INT_VERSION % 100 > 50 -# error Beta header file detected -# endif -# if ICE_INT_VERSION % 100 < 0 -# error Ice patch level mismatch! -# endif -#endif - -static const ::std::string __Filesystem__Node__name_name = "name"; - -static const ::std::string __Filesystem__Node__destroy_name = "destroy"; - -static const ::std::string __Filesystem__File__read_name = "read"; - -static const ::std::string __Filesystem__File__write_name = "write"; - -static const ::std::string __Filesystem__Directory__list_name = "list"; - -static const ::std::string __Filesystem__Directory__find_name = "find"; - -static const ::std::string __Filesystem__Directory__createFile_name = "createFile"; - -static const ::std::string __Filesystem__Directory__createDirectory_name = "createDirectory"; - -::Ice::Object* IceInternal::upCast(::Filesystem::Node* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::Node* p) { return p; } - -::Ice::Object* IceInternal::upCast(::Filesystem::File* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::File* p) { return p; } - -::Ice::Object* IceInternal::upCast(::Filesystem::Directory* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::Directory* p) { return p; } - -::Ice::Object* IceInternal::upCast(::Filesystem::PersistentNode* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::PersistentNode* p) { return p; } - -::Ice::Object* IceInternal::upCast(::Filesystem::PersistentFile* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::PersistentFile* p) { return p; } - -::Ice::Object* IceInternal::upCast(::Filesystem::PersistentDirectory* p) { return p; } -::IceProxy::Ice::Object* IceInternal::upCast(::IceProxy::Filesystem::PersistentDirectory* p) { return p; } - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::NodePrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::Node; - v->__copyFrom(proxy); - } -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::FilePrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::File; - v->__copyFrom(proxy); - } -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::DirectoryPrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::Directory; - v->__copyFrom(proxy); - } -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::PersistentNodePrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::PersistentNode; - v->__copyFrom(proxy); - } -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::PersistentFilePrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::PersistentFile; - v->__copyFrom(proxy); - } -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::PersistentDirectoryPrx& v) -{ - ::Ice::ObjectPrx proxy; - __is->read(proxy); - if(!proxy) - { - v = 0; - } - else - { - v = new ::IceProxy::Filesystem::PersistentDirectory; - v->__copyFrom(proxy); - } -} - -Filesystem::GenericError::GenericError(const ::std::string& __ice_reason) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - UserException(), -#else - ::Ice::UserException(), -#endif - reason(__ice_reason) -{ -} - -Filesystem::GenericError::~GenericError() throw() -{ -} - -static const char* __Filesystem__GenericError_name = "Filesystem::GenericError"; - -::std::string -Filesystem::GenericError::ice_name() const -{ - return __Filesystem__GenericError_name; -} - -::Ice::Exception* -Filesystem::GenericError::ice_clone() const -{ - return new GenericError(*this); -} - -void -Filesystem::GenericError::ice_throw() const -{ - throw *this; -} - -void -Filesystem::GenericError::__write(::IceInternal::BasicStream* __os) const -{ - __os->write(::std::string("::Filesystem::GenericError"), false); - __os->startWriteSlice(); - __os->write(reason); - __os->endWriteSlice(); -} - -void -Filesystem::GenericError::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->read(myId, false); - } - __is->startReadSlice(); - __is->read(reason); - __is->endReadSlice(); -} - -void -Filesystem::GenericError::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::GenericError was not generated with stream support"; - throw ex; -} - -void -Filesystem::GenericError::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::GenericError was not generated with stream support"; - throw ex; -} - -struct __F__Filesystem__GenericError : public ::IceInternal::UserExceptionFactory -{ - virtual void - createAndThrow() - { - throw ::Filesystem::GenericError(); - } -}; - -static ::IceInternal::UserExceptionFactoryPtr __F__Filesystem__GenericError__Ptr = new __F__Filesystem__GenericError; - -const ::IceInternal::UserExceptionFactoryPtr& -Filesystem::GenericError::ice_factory() -{ - return __F__Filesystem__GenericError__Ptr; -} - -class __F__Filesystem__GenericError__Init -{ -public: - - __F__Filesystem__GenericError__Init() - { - ::IceInternal::factoryTable->addExceptionFactory("::Filesystem::GenericError", ::Filesystem::GenericError::ice_factory()); - } - - ~__F__Filesystem__GenericError__Init() - { - ::IceInternal::factoryTable->removeExceptionFactory("::Filesystem::GenericError"); - } -}; - -static __F__Filesystem__GenericError__Init __F__Filesystem__GenericError__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__GenericError__initializer() {} } -#endif - -Filesystem::PermissionDenied::PermissionDenied(const ::std::string& __ice_reason) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError(__ice_reason) -#else - ::Filesystem::GenericError(__ice_reason) -#endif -{ -} - -Filesystem::PermissionDenied::~PermissionDenied() throw() -{ -} - -static const char* __Filesystem__PermissionDenied_name = "Filesystem::PermissionDenied"; - -::std::string -Filesystem::PermissionDenied::ice_name() const -{ - return __Filesystem__PermissionDenied_name; -} - -::Ice::Exception* -Filesystem::PermissionDenied::ice_clone() const -{ - return new PermissionDenied(*this); -} - -void -Filesystem::PermissionDenied::ice_throw() const -{ - throw *this; -} - -void -Filesystem::PermissionDenied::__write(::IceInternal::BasicStream* __os) const -{ - __os->write(::std::string("::Filesystem::PermissionDenied"), false); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__write(__os); -#else - ::Filesystem::GenericError::__write(__os); -#endif -} - -void -Filesystem::PermissionDenied::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->read(myId, false); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__read(__is, true); -#else - ::Filesystem::GenericError::__read(__is, true); -#endif -} - -void -Filesystem::PermissionDenied::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::PermissionDenied was not generated with stream support"; - throw ex; -} - -void -Filesystem::PermissionDenied::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::PermissionDenied was not generated with stream support"; - throw ex; -} - -struct __F__Filesystem__PermissionDenied : public ::IceInternal::UserExceptionFactory -{ - virtual void - createAndThrow() - { - throw ::Filesystem::PermissionDenied(); - } -}; - -static ::IceInternal::UserExceptionFactoryPtr __F__Filesystem__PermissionDenied__Ptr = new __F__Filesystem__PermissionDenied; - -const ::IceInternal::UserExceptionFactoryPtr& -Filesystem::PermissionDenied::ice_factory() -{ - return __F__Filesystem__PermissionDenied__Ptr; -} - -class __F__Filesystem__PermissionDenied__Init -{ -public: - - __F__Filesystem__PermissionDenied__Init() - { - ::IceInternal::factoryTable->addExceptionFactory("::Filesystem::PermissionDenied", ::Filesystem::PermissionDenied::ice_factory()); - } - - ~__F__Filesystem__PermissionDenied__Init() - { - ::IceInternal::factoryTable->removeExceptionFactory("::Filesystem::PermissionDenied"); - } -}; - -static __F__Filesystem__PermissionDenied__Init __F__Filesystem__PermissionDenied__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__PermissionDenied__initializer() {} } -#endif - -Filesystem::NameInUse::NameInUse(const ::std::string& __ice_reason) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError(__ice_reason) -#else - ::Filesystem::GenericError(__ice_reason) -#endif -{ -} - -Filesystem::NameInUse::~NameInUse() throw() -{ -} - -static const char* __Filesystem__NameInUse_name = "Filesystem::NameInUse"; - -::std::string -Filesystem::NameInUse::ice_name() const -{ - return __Filesystem__NameInUse_name; -} - -::Ice::Exception* -Filesystem::NameInUse::ice_clone() const -{ - return new NameInUse(*this); -} - -void -Filesystem::NameInUse::ice_throw() const -{ - throw *this; -} - -void -Filesystem::NameInUse::__write(::IceInternal::BasicStream* __os) const -{ - __os->write(::std::string("::Filesystem::NameInUse"), false); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__write(__os); -#else - ::Filesystem::GenericError::__write(__os); -#endif -} - -void -Filesystem::NameInUse::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->read(myId, false); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__read(__is, true); -#else - ::Filesystem::GenericError::__read(__is, true); -#endif -} - -void -Filesystem::NameInUse::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::NameInUse was not generated with stream support"; - throw ex; -} - -void -Filesystem::NameInUse::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::NameInUse was not generated with stream support"; - throw ex; -} - -struct __F__Filesystem__NameInUse : public ::IceInternal::UserExceptionFactory -{ - virtual void - createAndThrow() - { - throw ::Filesystem::NameInUse(); - } -}; - -static ::IceInternal::UserExceptionFactoryPtr __F__Filesystem__NameInUse__Ptr = new __F__Filesystem__NameInUse; - -const ::IceInternal::UserExceptionFactoryPtr& -Filesystem::NameInUse::ice_factory() -{ - return __F__Filesystem__NameInUse__Ptr; -} - -class __F__Filesystem__NameInUse__Init -{ -public: - - __F__Filesystem__NameInUse__Init() - { - ::IceInternal::factoryTable->addExceptionFactory("::Filesystem::NameInUse", ::Filesystem::NameInUse::ice_factory()); - } - - ~__F__Filesystem__NameInUse__Init() - { - ::IceInternal::factoryTable->removeExceptionFactory("::Filesystem::NameInUse"); - } -}; - -static __F__Filesystem__NameInUse__Init __F__Filesystem__NameInUse__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__NameInUse__initializer() {} } -#endif - -Filesystem::NoSuchName::NoSuchName(const ::std::string& __ice_reason) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError(__ice_reason) -#else - ::Filesystem::GenericError(__ice_reason) -#endif -{ -} - -Filesystem::NoSuchName::~NoSuchName() throw() -{ -} - -static const char* __Filesystem__NoSuchName_name = "Filesystem::NoSuchName"; - -::std::string -Filesystem::NoSuchName::ice_name() const -{ - return __Filesystem__NoSuchName_name; -} - -::Ice::Exception* -Filesystem::NoSuchName::ice_clone() const -{ - return new NoSuchName(*this); -} - -void -Filesystem::NoSuchName::ice_throw() const -{ - throw *this; -} - -void -Filesystem::NoSuchName::__write(::IceInternal::BasicStream* __os) const -{ - __os->write(::std::string("::Filesystem::NoSuchName"), false); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__write(__os); -#else - ::Filesystem::GenericError::__write(__os); -#endif -} - -void -Filesystem::NoSuchName::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->read(myId, false); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - GenericError::__read(__is, true); -#else - ::Filesystem::GenericError::__read(__is, true); -#endif -} - -void -Filesystem::NoSuchName::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::NoSuchName was not generated with stream support"; - throw ex; -} - -void -Filesystem::NoSuchName::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "exception Filesystem::NoSuchName was not generated with stream support"; - throw ex; -} - -struct __F__Filesystem__NoSuchName : public ::IceInternal::UserExceptionFactory -{ - virtual void - createAndThrow() - { - throw ::Filesystem::NoSuchName(); - } -}; - -static ::IceInternal::UserExceptionFactoryPtr __F__Filesystem__NoSuchName__Ptr = new __F__Filesystem__NoSuchName; - -const ::IceInternal::UserExceptionFactoryPtr& -Filesystem::NoSuchName::ice_factory() -{ - return __F__Filesystem__NoSuchName__Ptr; -} - -class __F__Filesystem__NoSuchName__Init -{ -public: - - __F__Filesystem__NoSuchName__Init() - { - ::IceInternal::factoryTable->addExceptionFactory("::Filesystem::NoSuchName", ::Filesystem::NoSuchName::ice_factory()); - } - - ~__F__Filesystem__NoSuchName__Init() - { - ::IceInternal::factoryTable->removeExceptionFactory("::Filesystem::NoSuchName"); - } -}; - -static __F__Filesystem__NoSuchName__Init __F__Filesystem__NoSuchName__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__NoSuchName__initializer() {} } -#endif - -void -Filesystem::__write(::IceInternal::BasicStream* __os, ::Filesystem::NodeType v) -{ - __os->write(static_cast< ::Ice::Byte>(v), 2); -} - -void -Filesystem::__read(::IceInternal::BasicStream* __is, ::Filesystem::NodeType& v) -{ - ::Ice::Byte val; - __is->read(val, 2); - v = static_cast< ::Filesystem::NodeType>(val); -} - -bool -Filesystem::NodeDesc::operator==(const NodeDesc& __rhs) const -{ - if(this == &__rhs) - { - return true; - } - if(name != __rhs.name) - { - return false; - } - if(type != __rhs.type) - { - return false; - } - if(proxy != __rhs.proxy) - { - return false; - } - return true; -} - -bool -Filesystem::NodeDesc::operator<(const NodeDesc& __rhs) const -{ - if(this == &__rhs) - { - return false; - } - if(name < __rhs.name) - { - return true; - } - else if(__rhs.name < name) - { - return false; - } - if(type < __rhs.type) - { - return true; - } - else if(__rhs.type < type) - { - return false; - } - if(proxy < __rhs.proxy) - { - return true; - } - else if(__rhs.proxy < proxy) - { - return false; - } - return false; -} - -void -Filesystem::NodeDesc::__write(::IceInternal::BasicStream* __os) const -{ - __os->write(name); - ::Filesystem::__write(__os, type); - __os->write(::Ice::ObjectPrx(::IceInternal::upCast(proxy.get()))); -} - -void -Filesystem::NodeDesc::__read(::IceInternal::BasicStream* __is) -{ - __is->read(name); - ::Filesystem::__read(__is, type); - ::Filesystem::__read(__is, proxy); -} - -void -Filesystem::__writeNodeDescSeq(::IceInternal::BasicStream* __os, const ::Filesystem::NodeDesc* begin, const ::Filesystem::NodeDesc* end) -{ - ::Ice::Int size = static_cast< ::Ice::Int>(end - begin); - __os->writeSize(size); - for(int i = 0; i < size; ++i) - { - begin[i].__write(__os); - } -} - -void -Filesystem::__readNodeDescSeq(::IceInternal::BasicStream* __is, ::Filesystem::NodeDescSeq& v) -{ - ::Ice::Int sz; - __is->readSize(sz); - __is->startSeq(sz, 4); - v.resize(sz); - for(int i = 0; i < sz; ++i) - { - v[i].__read(__is); - __is->checkSeq(); - __is->endElement(); - } - __is->endSeq(sz); -} - -void -Filesystem::__writeNodeDict(::IceInternal::BasicStream* __os, const ::Filesystem::NodeDict& v) -{ - __os->writeSize(::Ice::Int(v.size())); - ::Filesystem::NodeDict::const_iterator p; - for(p = v.begin(); p != v.end(); ++p) - { - __os->write(p->first); - p->second.__write(__os); - } -} - -void -Filesystem::__readNodeDict(::IceInternal::BasicStream* __is, ::Filesystem::NodeDict& v) -{ - ::Ice::Int sz; - __is->readSize(sz); - while(sz--) - { - ::std::pair<const ::std::string, ::Filesystem::NodeDesc> pair; - __is->read(const_cast< ::std::string&>(pair.first)); - ::Filesystem::NodeDict::iterator __i = v.insert(v.end(), pair); - __i->second.__read(__is); - } -} - -::std::string -IceProxy::Filesystem::Node::name(const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Node__name_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Node* __del = dynamic_cast< ::IceDelegate::Filesystem::Node*>(__delBase.get()); - return __del->name(__ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapperRelaxed(__delBase, __ex, 0, __cnt); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -void -IceProxy::Filesystem::Node::destroy(const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Node__destroy_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Node* __del = dynamic_cast< ::IceDelegate::Filesystem::Node*>(__delBase.get()); - __del->destroy(__ctx); - return; - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapper(__delBase, __ex, 0); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -const ::std::string& -IceProxy::Filesystem::Node::ice_staticId() -{ - return ::Filesystem::Node::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::Node::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::Node); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::Node::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::Node); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::Node::__newInstance() const -{ - return new Node; -} - -::Filesystem::Lines -IceProxy::Filesystem::File::read(const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__File__read_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::File* __del = dynamic_cast< ::IceDelegate::Filesystem::File*>(__delBase.get()); - return __del->read(__ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapperRelaxed(__delBase, __ex, 0, __cnt); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -void -IceProxy::Filesystem::File::write(const ::Filesystem::Lines& text, const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__File__write_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::File* __del = dynamic_cast< ::IceDelegate::Filesystem::File*>(__delBase.get()); - __del->write(text, __ctx); - return; - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapperRelaxed(__delBase, __ex, 0, __cnt); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -const ::std::string& -IceProxy::Filesystem::File::ice_staticId() -{ - return ::Filesystem::File::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::File::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::File); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::File::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::File); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::File::__newInstance() const -{ - return new File; -} - -::Filesystem::NodeDescSeq -IceProxy::Filesystem::Directory::list(const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Directory__list_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Directory* __del = dynamic_cast< ::IceDelegate::Filesystem::Directory*>(__delBase.get()); - return __del->list(__ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapperRelaxed(__delBase, __ex, 0, __cnt); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -::Filesystem::NodeDesc -IceProxy::Filesystem::Directory::find(const ::std::string& name, const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Directory__find_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Directory* __del = dynamic_cast< ::IceDelegate::Filesystem::Directory*>(__delBase.get()); - return __del->find(name, __ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapperRelaxed(__delBase, __ex, 0, __cnt); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -::Filesystem::FilePrx -IceProxy::Filesystem::Directory::createFile(const ::std::string& name, const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Directory__createFile_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Directory* __del = dynamic_cast< ::IceDelegate::Filesystem::Directory*>(__delBase.get()); - return __del->createFile(name, __ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapper(__delBase, __ex, 0); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -::Filesystem::DirectoryPrx -IceProxy::Filesystem::Directory::createDirectory(const ::std::string& name, const ::Ice::Context* __ctx) -{ - int __cnt = 0; - while(true) - { - ::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase; - try - { - __checkTwowayOnly(__Filesystem__Directory__createDirectory_name); - __delBase = __getDelegate(false); - ::IceDelegate::Filesystem::Directory* __del = dynamic_cast< ::IceDelegate::Filesystem::Directory*>(__delBase.get()); - return __del->createDirectory(name, __ctx); - } - catch(const ::IceInternal::LocalExceptionWrapper& __ex) - { - __handleExceptionWrapper(__delBase, __ex, 0); - } - catch(const ::Ice::LocalException& __ex) - { - __handleException(__delBase, __ex, 0, __cnt); - } - } -} - -const ::std::string& -IceProxy::Filesystem::Directory::ice_staticId() -{ - return ::Filesystem::Directory::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::Directory::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::Directory); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::Directory::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::Directory); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::Directory::__newInstance() const -{ - return new Directory; -} - -const ::std::string& -IceProxy::Filesystem::PersistentNode::ice_staticId() -{ - return ::Filesystem::PersistentNode::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::PersistentNode::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::PersistentNode); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::PersistentNode::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::PersistentNode); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::PersistentNode::__newInstance() const -{ - return new PersistentNode; -} - -const ::std::string& -IceProxy::Filesystem::PersistentFile::ice_staticId() -{ - return ::Filesystem::PersistentFile::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::PersistentFile::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::PersistentFile); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::PersistentFile::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::PersistentFile); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::PersistentFile::__newInstance() const -{ - return new PersistentFile; -} - -const ::std::string& -IceProxy::Filesystem::PersistentDirectory::ice_staticId() -{ - return ::Filesystem::PersistentDirectory::ice_staticId(); -} - -::IceInternal::Handle< ::IceDelegateM::Ice::Object> -IceProxy::Filesystem::PersistentDirectory::__createDelegateM() -{ - return ::IceInternal::Handle< ::IceDelegateM::Ice::Object>(new ::IceDelegateM::Filesystem::PersistentDirectory); -} - -::IceInternal::Handle< ::IceDelegateD::Ice::Object> -IceProxy::Filesystem::PersistentDirectory::__createDelegateD() -{ - return ::IceInternal::Handle< ::IceDelegateD::Ice::Object>(new ::IceDelegateD::Filesystem::PersistentDirectory); -} - -::IceProxy::Ice::Object* -IceProxy::Filesystem::PersistentDirectory::__newInstance() const -{ - return new PersistentDirectory; -} - -::std::string -IceDelegateM::Filesystem::Node::name(const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Node__name_name, ::Ice::Idempotent, __context); - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::std::string __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - __is->read(__ret); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -void -IceDelegateM::Filesystem::Node::destroy(const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Node__destroy_name, ::Ice::Normal, __context); - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Filesystem::PermissionDenied&) - { - throw; - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - __is->endReadEncaps(); - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::Filesystem::Lines -IceDelegateM::Filesystem::File::read(const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__File__read_name, ::Ice::Idempotent, __context); - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::Filesystem::Lines __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - __is->read(__ret); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -void -IceDelegateM::Filesystem::File::write(const ::Filesystem::Lines& text, const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__File__write_name, ::Ice::Idempotent, __context); - try - { - ::IceInternal::BasicStream* __os = __og.os(); - if(text.size() == 0) - { - __os->writeSize(0); - } - else - { - __os->write(&text[0], &text[0] + text.size()); - } - } - catch(const ::Ice::LocalException& __ex) - { - __og.abort(__ex); - } - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Filesystem::GenericError&) - { - throw; - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - __is->endReadEncaps(); - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::Filesystem::NodeDescSeq -IceDelegateM::Filesystem::Directory::list(const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Directory__list_name, ::Ice::Idempotent, __context); - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::Filesystem::NodeDescSeq __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - ::Filesystem::__readNodeDescSeq(__is, __ret); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::Filesystem::NodeDesc -IceDelegateM::Filesystem::Directory::find(const ::std::string& name, const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Directory__find_name, ::Ice::Idempotent, __context); - try - { - ::IceInternal::BasicStream* __os = __og.os(); - __os->write(name); - } - catch(const ::Ice::LocalException& __ex) - { - __og.abort(__ex); - } - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Filesystem::NoSuchName&) - { - throw; - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::Filesystem::NodeDesc __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - __ret.__read(__is); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::Filesystem::FilePrx -IceDelegateM::Filesystem::Directory::createFile(const ::std::string& name, const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Directory__createFile_name, ::Ice::Normal, __context); - try - { - ::IceInternal::BasicStream* __os = __og.os(); - __os->write(name); - } - catch(const ::Ice::LocalException& __ex) - { - __og.abort(__ex); - } - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Filesystem::NameInUse&) - { - throw; - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::Filesystem::FilePrx __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - ::Filesystem::__read(__is, __ret); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::Filesystem::DirectoryPrx -IceDelegateM::Filesystem::Directory::createDirectory(const ::std::string& name, const ::Ice::Context* __context) -{ - ::IceInternal::Outgoing __og(__handler.get(), __Filesystem__Directory__createDirectory_name, ::Ice::Normal, __context); - try - { - ::IceInternal::BasicStream* __os = __og.os(); - __os->write(name); - } - catch(const ::Ice::LocalException& __ex) - { - __og.abort(__ex); - } - bool __ok = __og.invoke(); - try - { - if(!__ok) - { - try - { - __og.throwUserException(); - } - catch(const ::Filesystem::NameInUse&) - { - throw; - } - catch(const ::Ice::UserException& __ex) - { - ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name()); - throw __uue; - } - } - ::Filesystem::DirectoryPrx __ret; - ::IceInternal::BasicStream* __is = __og.is(); - __is->startReadEncaps(); - ::Filesystem::__read(__is, __ret); - __is->endReadEncaps(); - return __ret; - } - catch(const ::Ice::LocalException& __ex) - { - throw ::IceInternal::LocalExceptionWrapper(__ex, false); - } -} - -::std::string -IceDelegateD::Filesystem::Node::name(const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::std::string& __result, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Node* servant = dynamic_cast< ::Filesystem::Node*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - _result = servant->name(_current); - return ::Ice::DispatchOK; - } - - private: - - ::std::string& _result; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Node__name_name, ::Ice::Idempotent, __context); - ::std::string __result; - try - { - _DirectI __direct(__result, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -void -IceDelegateD::Filesystem::Node::destroy(const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(const ::Ice::Current& __current) : - ::IceInternal::Direct(__current) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Node* servant = dynamic_cast< ::Filesystem::Node*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - try - { - servant->destroy(_current); - return ::Ice::DispatchOK; - } - catch(const ::Ice::UserException& __ex) - { - setUserException(__ex); - return ::Ice::DispatchUserException; - } - } - - private: - - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Node__destroy_name, ::Ice::Normal, __context); - try - { - _DirectI __direct(__current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Filesystem::PermissionDenied&) - { - throw; - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } -} - -::Filesystem::Lines -IceDelegateD::Filesystem::File::read(const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::Filesystem::Lines& __result, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::File* servant = dynamic_cast< ::Filesystem::File*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - _result = servant->read(_current); - return ::Ice::DispatchOK; - } - - private: - - ::Filesystem::Lines& _result; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__File__read_name, ::Ice::Idempotent, __context); - ::Filesystem::Lines __result; - try - { - _DirectI __direct(__result, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -void -IceDelegateD::Filesystem::File::write(const ::Filesystem::Lines& text, const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(const ::Filesystem::Lines& text, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _m_text(text) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::File* servant = dynamic_cast< ::Filesystem::File*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - try - { - servant->write(_m_text, _current); - return ::Ice::DispatchOK; - } - catch(const ::Ice::UserException& __ex) - { - setUserException(__ex); - return ::Ice::DispatchUserException; - } - } - - private: - - const ::Filesystem::Lines& _m_text; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__File__write_name, ::Ice::Idempotent, __context); - try - { - _DirectI __direct(text, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Filesystem::GenericError&) - { - throw; - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } -} - -::Filesystem::NodeDescSeq -IceDelegateD::Filesystem::Directory::list(const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::Filesystem::NodeDescSeq& __result, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Directory* servant = dynamic_cast< ::Filesystem::Directory*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - _result = servant->list(_current); - return ::Ice::DispatchOK; - } - - private: - - ::Filesystem::NodeDescSeq& _result; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Directory__list_name, ::Ice::Idempotent, __context); - ::Filesystem::NodeDescSeq __result; - try - { - _DirectI __direct(__result, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -::Filesystem::NodeDesc -IceDelegateD::Filesystem::Directory::find(const ::std::string& name, const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::Filesystem::NodeDesc& __result, const ::std::string& name, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result), - _m_name(name) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Directory* servant = dynamic_cast< ::Filesystem::Directory*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - try - { - _result = servant->find(_m_name, _current); - return ::Ice::DispatchOK; - } - catch(const ::Ice::UserException& __ex) - { - setUserException(__ex); - return ::Ice::DispatchUserException; - } - } - - private: - - ::Filesystem::NodeDesc& _result; - const ::std::string& _m_name; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Directory__find_name, ::Ice::Idempotent, __context); - ::Filesystem::NodeDesc __result; - try - { - _DirectI __direct(__result, name, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Filesystem::NoSuchName&) - { - throw; - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -::Filesystem::FilePrx -IceDelegateD::Filesystem::Directory::createFile(const ::std::string& name, const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::Filesystem::FilePrx& __result, const ::std::string& name, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result), - _m_name(name) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Directory* servant = dynamic_cast< ::Filesystem::Directory*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - try - { - _result = servant->createFile(_m_name, _current); - return ::Ice::DispatchOK; - } - catch(const ::Ice::UserException& __ex) - { - setUserException(__ex); - return ::Ice::DispatchUserException; - } - } - - private: - - ::Filesystem::FilePrx& _result; - const ::std::string& _m_name; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Directory__createFile_name, ::Ice::Normal, __context); - ::Filesystem::FilePrx __result; - try - { - _DirectI __direct(__result, name, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Filesystem::NameInUse&) - { - throw; - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -::Filesystem::DirectoryPrx -IceDelegateD::Filesystem::Directory::createDirectory(const ::std::string& name, const ::Ice::Context* __context) -{ - class _DirectI : public ::IceInternal::Direct - { - public: - - _DirectI(::Filesystem::DirectoryPrx& __result, const ::std::string& name, const ::Ice::Current& __current) : - ::IceInternal::Direct(__current), - _result(__result), - _m_name(name) - { - } - - virtual ::Ice::DispatchStatus - run(::Ice::Object* object) - { - ::Filesystem::Directory* servant = dynamic_cast< ::Filesystem::Directory*>(object); - if(!servant) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, _current.id, _current.facet, _current.operation); - } - try - { - _result = servant->createDirectory(_m_name, _current); - return ::Ice::DispatchOK; - } - catch(const ::Ice::UserException& __ex) - { - setUserException(__ex); - return ::Ice::DispatchUserException; - } - } - - private: - - ::Filesystem::DirectoryPrx& _result; - const ::std::string& _m_name; - }; - - ::Ice::Current __current; - __initCurrent(__current, __Filesystem__Directory__createDirectory_name, ::Ice::Normal, __context); - ::Filesystem::DirectoryPrx __result; - try - { - _DirectI __direct(__result, name, __current); - try - { - __direct.servant()->__collocDispatch(__direct); - } - catch(...) - { - __direct.destroy(); - throw; - } - __direct.destroy(); - } - catch(const ::Filesystem::NameInUse&) - { - throw; - } - catch(const ::Ice::SystemException&) - { - throw; - } - catch(const ::IceInternal::LocalExceptionWrapper&) - { - throw; - } - catch(const ::std::exception& __ex) - { - ::IceInternal::LocalExceptionWrapper::throwWrapper(__ex); - } - catch(...) - { - throw ::IceInternal::LocalExceptionWrapper(::Ice::UnknownException(__FILE__, __LINE__, "unknown c++ exception"), false); - } - return __result; -} - -::Ice::ObjectPtr -Filesystem::Node::ice_clone() const -{ - throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__); - return 0; // to avoid a warning with some compilers -} - -static const ::std::string __Filesystem__Node_ids[2] = -{ - "::Filesystem::Node", - "::Ice::Object" -}; - -bool -Filesystem::Node::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__Node_ids, __Filesystem__Node_ids + 2, _s); -} - -::std::vector< ::std::string> -Filesystem::Node::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__Node_ids[0], &__Filesystem__Node_ids[2]); -} - -const ::std::string& -Filesystem::Node::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__Node_ids[0]; -} - -const ::std::string& -Filesystem::Node::ice_staticId() -{ - return __Filesystem__Node_ids[0]; -} - -::Ice::DispatchStatus -Filesystem::Node::___name(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Idempotent, __current.mode); - __inS.is()->skipEmptyEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - ::std::string __ret = name(__current); - __os->write(__ret); - return ::Ice::DispatchOK; -} - -::Ice::DispatchStatus -Filesystem::Node::___destroy(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Normal, __current.mode); - __inS.is()->skipEmptyEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - try - { - destroy(__current); - } - catch(const ::Filesystem::PermissionDenied& __ex) - { - __os->write(__ex); - return ::Ice::DispatchUserException; - } - return ::Ice::DispatchOK; -} - -static ::std::string __Filesystem__Node_all[] = -{ - "destroy", - "ice_id", - "ice_ids", - "ice_isA", - "ice_ping", - "name" -}; - -::Ice::DispatchStatus -Filesystem::Node::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) -{ - ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__Filesystem__Node_all, __Filesystem__Node_all + 6, current.operation); - if(r.first == r.second) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); - } - - switch(r.first - __Filesystem__Node_all) - { - case 0: - { - return ___destroy(in, current); - } - case 1: - { - return ___ice_id(in, current); - } - case 2: - { - return ___ice_ids(in, current); - } - case 3: - { - return ___ice_isA(in, current); - } - case 4: - { - return ___ice_ping(in, current); - } - case 5: - { - return ___name(in, current); - } - } - - assert(false); - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); -} - -void -Filesystem::Node::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__write(__os); -#else - ::Ice::Object::__write(__os); -#endif -} - -void -Filesystem::Node::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__read(__is, true); -#else - ::Ice::Object::__read(__is, true); -#endif -} - -void -Filesystem::Node::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::Node was not generated with stream support"; - throw ex; -} - -void -Filesystem::Node::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::Node was not generated with stream support"; - throw ex; -} - -void -Filesystem::__patch__NodePtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::NodePtr* p = static_cast< ::Filesystem::NodePtr*>(__addr); - assert(p); - *p = ::Filesystem::NodePtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::Node::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::Node& l, const ::Filesystem::Node& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::Node& l, const ::Filesystem::Node& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} - -::Ice::ObjectPtr -Filesystem::File::ice_clone() const -{ - throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__); - return 0; // to avoid a warning with some compilers -} - -static const ::std::string __Filesystem__File_ids[3] = -{ - "::Filesystem::File", - "::Filesystem::Node", - "::Ice::Object" -}; - -bool -Filesystem::File::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__File_ids, __Filesystem__File_ids + 3, _s); -} - -::std::vector< ::std::string> -Filesystem::File::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__File_ids[0], &__Filesystem__File_ids[3]); -} - -const ::std::string& -Filesystem::File::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__File_ids[0]; -} - -const ::std::string& -Filesystem::File::ice_staticId() -{ - return __Filesystem__File_ids[0]; -} - -::Ice::DispatchStatus -Filesystem::File::___read(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Idempotent, __current.mode); - __inS.is()->skipEmptyEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - ::Filesystem::Lines __ret = read(__current); - if(__ret.size() == 0) - { - __os->writeSize(0); - } - else - { - __os->write(&__ret[0], &__ret[0] + __ret.size()); - } - return ::Ice::DispatchOK; -} - -::Ice::DispatchStatus -Filesystem::File::___write(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Idempotent, __current.mode); - ::IceInternal::BasicStream* __is = __inS.is(); - __is->startReadEncaps(); - ::Filesystem::Lines text; - __is->read(text); - __is->endReadEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - try - { - write(text, __current); - } - catch(const ::Filesystem::GenericError& __ex) - { - __os->write(__ex); - return ::Ice::DispatchUserException; - } - return ::Ice::DispatchOK; -} - -static ::std::string __Filesystem__File_all[] = -{ - "destroy", - "ice_id", - "ice_ids", - "ice_isA", - "ice_ping", - "name", - "read", - "write" -}; - -::Ice::DispatchStatus -Filesystem::File::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) -{ - ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__Filesystem__File_all, __Filesystem__File_all + 8, current.operation); - if(r.first == r.second) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); - } - - switch(r.first - __Filesystem__File_all) - { - case 0: - { - return ___destroy(in, current); - } - case 1: - { - return ___ice_id(in, current); - } - case 2: - { - return ___ice_ids(in, current); - } - case 3: - { - return ___ice_isA(in, current); - } - case 4: - { - return ___ice_ping(in, current); - } - case 5: - { - return ___name(in, current); - } - case 6: - { - return ___read(in, current); - } - case 7: - { - return ___write(in, current); - } - } - - assert(false); - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); -} - -void -Filesystem::File::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__write(__os); -#else - ::Ice::Object::__write(__os); -#endif -} - -void -Filesystem::File::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__read(__is, true); -#else - ::Ice::Object::__read(__is, true); -#endif -} - -void -Filesystem::File::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::File was not generated with stream support"; - throw ex; -} - -void -Filesystem::File::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::File was not generated with stream support"; - throw ex; -} - -void -Filesystem::__patch__FilePtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::FilePtr* p = static_cast< ::Filesystem::FilePtr*>(__addr); - assert(p); - *p = ::Filesystem::FilePtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::File::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::File& l, const ::Filesystem::File& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::File& l, const ::Filesystem::File& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} - -::Ice::ObjectPtr -Filesystem::Directory::ice_clone() const -{ - throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__); - return 0; // to avoid a warning with some compilers -} - -static const ::std::string __Filesystem__Directory_ids[3] = -{ - "::Filesystem::Directory", - "::Filesystem::Node", - "::Ice::Object" -}; - -bool -Filesystem::Directory::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__Directory_ids, __Filesystem__Directory_ids + 3, _s); -} - -::std::vector< ::std::string> -Filesystem::Directory::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__Directory_ids[0], &__Filesystem__Directory_ids[3]); -} - -const ::std::string& -Filesystem::Directory::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__Directory_ids[0]; -} - -const ::std::string& -Filesystem::Directory::ice_staticId() -{ - return __Filesystem__Directory_ids[0]; -} - -::Ice::DispatchStatus -Filesystem::Directory::___list(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Idempotent, __current.mode); - __inS.is()->skipEmptyEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - ::Filesystem::NodeDescSeq __ret = list(__current); - if(__ret.size() == 0) - { - __os->writeSize(0); - } - else - { - ::Filesystem::__writeNodeDescSeq(__os, &__ret[0], &__ret[0] + __ret.size()); - } - return ::Ice::DispatchOK; -} - -::Ice::DispatchStatus -Filesystem::Directory::___find(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Idempotent, __current.mode); - ::IceInternal::BasicStream* __is = __inS.is(); - __is->startReadEncaps(); - ::std::string name; - __is->read(name); - __is->endReadEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - try - { - ::Filesystem::NodeDesc __ret = find(name, __current); - __ret.__write(__os); - } - catch(const ::Filesystem::NoSuchName& __ex) - { - __os->write(__ex); - return ::Ice::DispatchUserException; - } - return ::Ice::DispatchOK; -} - -::Ice::DispatchStatus -Filesystem::Directory::___createFile(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Normal, __current.mode); - ::IceInternal::BasicStream* __is = __inS.is(); - __is->startReadEncaps(); - ::std::string name; - __is->read(name); - __is->endReadEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - try - { - ::Filesystem::FilePrx __ret = createFile(name, __current); - __os->write(::Ice::ObjectPrx(::IceInternal::upCast(__ret.get()))); - } - catch(const ::Filesystem::NameInUse& __ex) - { - __os->write(__ex); - return ::Ice::DispatchUserException; - } - return ::Ice::DispatchOK; -} - -::Ice::DispatchStatus -Filesystem::Directory::___createDirectory(::IceInternal::Incoming& __inS, const ::Ice::Current& __current) -{ - __checkMode(::Ice::Normal, __current.mode); - ::IceInternal::BasicStream* __is = __inS.is(); - __is->startReadEncaps(); - ::std::string name; - __is->read(name); - __is->endReadEncaps(); - ::IceInternal::BasicStream* __os = __inS.os(); - try - { - ::Filesystem::DirectoryPrx __ret = createDirectory(name, __current); - __os->write(::Ice::ObjectPrx(::IceInternal::upCast(__ret.get()))); - } - catch(const ::Filesystem::NameInUse& __ex) - { - __os->write(__ex); - return ::Ice::DispatchUserException; - } - return ::Ice::DispatchOK; -} - -static ::std::string __Filesystem__Directory_all[] = -{ - "createDirectory", - "createFile", - "destroy", - "find", - "ice_id", - "ice_ids", - "ice_isA", - "ice_ping", - "list", - "name" -}; - -::Ice::DispatchStatus -Filesystem::Directory::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) -{ - ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__Filesystem__Directory_all, __Filesystem__Directory_all + 10, current.operation); - if(r.first == r.second) - { - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); - } - - switch(r.first - __Filesystem__Directory_all) - { - case 0: - { - return ___createDirectory(in, current); - } - case 1: - { - return ___createFile(in, current); - } - case 2: - { - return ___destroy(in, current); - } - case 3: - { - return ___find(in, current); - } - case 4: - { - return ___ice_id(in, current); - } - case 5: - { - return ___ice_ids(in, current); - } - case 6: - { - return ___ice_isA(in, current); - } - case 7: - { - return ___ice_ping(in, current); - } - case 8: - { - return ___list(in, current); - } - case 9: - { - return ___name(in, current); - } - } - - assert(false); - throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); -} - -void -Filesystem::Directory::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__write(__os); -#else - ::Ice::Object::__write(__os); -#endif -} - -void -Filesystem::Directory::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__read(__is, true); -#else - ::Ice::Object::__read(__is, true); -#endif -} - -void -Filesystem::Directory::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::Directory was not generated with stream support"; - throw ex; -} - -void -Filesystem::Directory::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::Directory was not generated with stream support"; - throw ex; -} - -void -Filesystem::__patch__DirectoryPtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::DirectoryPtr* p = static_cast< ::Filesystem::DirectoryPtr*>(__addr); - assert(p); - *p = ::Filesystem::DirectoryPtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::Directory::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::Directory& l, const ::Filesystem::Directory& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::Directory& l, const ::Filesystem::Directory& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} - -Filesystem::PersistentNode::PersistentNode(const ::std::string& __ice_name) : - name(__ice_name) -{ -} - -::Ice::ObjectPtr -Filesystem::PersistentNode::ice_clone() const -{ - ::Filesystem::PersistentNodePtr __p = new ::Filesystem::PersistentNode(*this); - return __p; -} - -static const ::std::string __Filesystem__PersistentNode_ids[2] = -{ - "::Filesystem::PersistentNode", - "::Ice::Object" -}; - -bool -Filesystem::PersistentNode::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__PersistentNode_ids, __Filesystem__PersistentNode_ids + 2, _s); -} - -::std::vector< ::std::string> -Filesystem::PersistentNode::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__PersistentNode_ids[0], &__Filesystem__PersistentNode_ids[2]); -} - -const ::std::string& -Filesystem::PersistentNode::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__PersistentNode_ids[0]; -} - -const ::std::string& -Filesystem::PersistentNode::ice_staticId() -{ - return __Filesystem__PersistentNode_ids[0]; -} - -void -Filesystem::PersistentNode::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - __os->write(name); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__write(__os); -#else - ::Ice::Object::__write(__os); -#endif -} - -void -Filesystem::PersistentNode::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - __is->read(name); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - Object::__read(__is, true); -#else - ::Ice::Object::__read(__is, true); -#endif -} - -void -Filesystem::PersistentNode::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentNode was not generated with stream support"; - throw ex; -} - -void -Filesystem::PersistentNode::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentNode was not generated with stream support"; - throw ex; -} - -class __F__Filesystem__PersistentNode : public ::Ice::ObjectFactory -{ -public: - - virtual ::Ice::ObjectPtr - create(const ::std::string& type) - { - assert(type == ::Filesystem::PersistentNode::ice_staticId()); - return new ::Filesystem::PersistentNode; - } - - virtual void - destroy() - { - } -}; - -static ::Ice::ObjectFactoryPtr __F__Filesystem__PersistentNode_Ptr = new __F__Filesystem__PersistentNode; - -const ::Ice::ObjectFactoryPtr& -Filesystem::PersistentNode::ice_factory() -{ - return __F__Filesystem__PersistentNode_Ptr; -} - -class __F__Filesystem__PersistentNode__Init -{ -public: - - __F__Filesystem__PersistentNode__Init() - { - ::IceInternal::factoryTable->addObjectFactory(::Filesystem::PersistentNode::ice_staticId(), ::Filesystem::PersistentNode::ice_factory()); - } - - ~__F__Filesystem__PersistentNode__Init() - { - ::IceInternal::factoryTable->removeObjectFactory(::Filesystem::PersistentNode::ice_staticId()); - } -}; - -static __F__Filesystem__PersistentNode__Init __F__Filesystem__PersistentNode__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__PersistentNode__initializer() {} } -#endif - -void -Filesystem::__patch__PersistentNodePtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::PersistentNodePtr* p = static_cast< ::Filesystem::PersistentNodePtr*>(__addr); - assert(p); - *p = ::Filesystem::PersistentNodePtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::PersistentNode::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::PersistentNode& l, const ::Filesystem::PersistentNode& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::PersistentNode& l, const ::Filesystem::PersistentNode& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} - -Filesystem::PersistentFile::PersistentFile(const ::std::string& __ice_name, const ::Filesystem::Lines& __ice_text) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode(__ice_name) -#else - ::Filesystem::PersistentNode(__ice_name) -#endif -, - text(__ice_text) -{ -} - -::Ice::ObjectPtr -Filesystem::PersistentFile::ice_clone() const -{ - ::Filesystem::PersistentFilePtr __p = new ::Filesystem::PersistentFile(*this); - return __p; -} - -static const ::std::string __Filesystem__PersistentFile_ids[3] = -{ - "::Filesystem::PersistentFile", - "::Filesystem::PersistentNode", - "::Ice::Object" -}; - -bool -Filesystem::PersistentFile::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__PersistentFile_ids, __Filesystem__PersistentFile_ids + 3, _s); -} - -::std::vector< ::std::string> -Filesystem::PersistentFile::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__PersistentFile_ids[0], &__Filesystem__PersistentFile_ids[3]); -} - -const ::std::string& -Filesystem::PersistentFile::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__PersistentFile_ids[0]; -} - -const ::std::string& -Filesystem::PersistentFile::ice_staticId() -{ - return __Filesystem__PersistentFile_ids[0]; -} - -void -Filesystem::PersistentFile::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - if(text.size() == 0) - { - __os->writeSize(0); - } - else - { - __os->write(&text[0], &text[0] + text.size()); - } - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode::__write(__os); -#else - ::Filesystem::PersistentNode::__write(__os); -#endif -} - -void -Filesystem::PersistentFile::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - __is->read(text); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode::__read(__is, true); -#else - ::Filesystem::PersistentNode::__read(__is, true); -#endif -} - -void -Filesystem::PersistentFile::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentFile was not generated with stream support"; - throw ex; -} - -void -Filesystem::PersistentFile::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentFile was not generated with stream support"; - throw ex; -} - -class __F__Filesystem__PersistentFile : public ::Ice::ObjectFactory -{ -public: - - virtual ::Ice::ObjectPtr - create(const ::std::string& type) - { - assert(type == ::Filesystem::PersistentFile::ice_staticId()); - return new ::Filesystem::PersistentFile; - } - - virtual void - destroy() - { - } -}; - -static ::Ice::ObjectFactoryPtr __F__Filesystem__PersistentFile_Ptr = new __F__Filesystem__PersistentFile; - -const ::Ice::ObjectFactoryPtr& -Filesystem::PersistentFile::ice_factory() -{ - return __F__Filesystem__PersistentFile_Ptr; -} - -class __F__Filesystem__PersistentFile__Init -{ -public: - - __F__Filesystem__PersistentFile__Init() - { - ::IceInternal::factoryTable->addObjectFactory(::Filesystem::PersistentFile::ice_staticId(), ::Filesystem::PersistentFile::ice_factory()); - } - - ~__F__Filesystem__PersistentFile__Init() - { - ::IceInternal::factoryTable->removeObjectFactory(::Filesystem::PersistentFile::ice_staticId()); - } -}; - -static __F__Filesystem__PersistentFile__Init __F__Filesystem__PersistentFile__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__PersistentFile__initializer() {} } -#endif - -void -Filesystem::__patch__PersistentFilePtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::PersistentFilePtr* p = static_cast< ::Filesystem::PersistentFilePtr*>(__addr); - assert(p); - *p = ::Filesystem::PersistentFilePtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::PersistentFile::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::PersistentFile& l, const ::Filesystem::PersistentFile& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::PersistentFile& l, const ::Filesystem::PersistentFile& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} - -Filesystem::PersistentDirectory::PersistentDirectory(const ::std::string& __ice_name, const ::Filesystem::NodeDict& __ice_nodes) : -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode(__ice_name) -#else - ::Filesystem::PersistentNode(__ice_name) -#endif -, - nodes(__ice_nodes) -{ -} - -::Ice::ObjectPtr -Filesystem::PersistentDirectory::ice_clone() const -{ - ::Filesystem::PersistentDirectoryPtr __p = new ::Filesystem::PersistentDirectory(*this); - return __p; -} - -static const ::std::string __Filesystem__PersistentDirectory_ids[3] = -{ - "::Filesystem::PersistentDirectory", - "::Filesystem::PersistentNode", - "::Ice::Object" -}; - -bool -Filesystem::PersistentDirectory::ice_isA(const ::std::string& _s, const ::Ice::Current&) const -{ - return ::std::binary_search(__Filesystem__PersistentDirectory_ids, __Filesystem__PersistentDirectory_ids + 3, _s); -} - -::std::vector< ::std::string> -Filesystem::PersistentDirectory::ice_ids(const ::Ice::Current&) const -{ - return ::std::vector< ::std::string>(&__Filesystem__PersistentDirectory_ids[0], &__Filesystem__PersistentDirectory_ids[3]); -} - -const ::std::string& -Filesystem::PersistentDirectory::ice_id(const ::Ice::Current&) const -{ - return __Filesystem__PersistentDirectory_ids[0]; -} - -const ::std::string& -Filesystem::PersistentDirectory::ice_staticId() -{ - return __Filesystem__PersistentDirectory_ids[0]; -} - -void -Filesystem::PersistentDirectory::__write(::IceInternal::BasicStream* __os) const -{ - __os->writeTypeId(ice_staticId()); - __os->startWriteSlice(); - ::Filesystem::__writeNodeDict(__os, nodes); - __os->endWriteSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode::__write(__os); -#else - ::Filesystem::PersistentNode::__write(__os); -#endif -} - -void -Filesystem::PersistentDirectory::__read(::IceInternal::BasicStream* __is, bool __rid) -{ - if(__rid) - { - ::std::string myId; - __is->readTypeId(myId); - } - __is->startReadSlice(); - ::Filesystem::__readNodeDict(__is, nodes); - __is->endReadSlice(); -#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - PersistentNode::__read(__is, true); -#else - ::Filesystem::PersistentNode::__read(__is, true); -#endif -} - -void -Filesystem::PersistentDirectory::__write(const ::Ice::OutputStreamPtr&) const -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentDirectory was not generated with stream support"; - throw ex; -} - -void -Filesystem::PersistentDirectory::__read(const ::Ice::InputStreamPtr&, bool) -{ - Ice::MarshalException ex(__FILE__, __LINE__); - ex.reason = "type Filesystem::PersistentDirectory was not generated with stream support"; - throw ex; -} - -class __F__Filesystem__PersistentDirectory : public ::Ice::ObjectFactory -{ -public: - - virtual ::Ice::ObjectPtr - create(const ::std::string& type) - { - assert(type == ::Filesystem::PersistentDirectory::ice_staticId()); - return new ::Filesystem::PersistentDirectory; - } - - virtual void - destroy() - { - } -}; - -static ::Ice::ObjectFactoryPtr __F__Filesystem__PersistentDirectory_Ptr = new __F__Filesystem__PersistentDirectory; - -const ::Ice::ObjectFactoryPtr& -Filesystem::PersistentDirectory::ice_factory() -{ - return __F__Filesystem__PersistentDirectory_Ptr; -} - -class __F__Filesystem__PersistentDirectory__Init -{ -public: - - __F__Filesystem__PersistentDirectory__Init() - { - ::IceInternal::factoryTable->addObjectFactory(::Filesystem::PersistentDirectory::ice_staticId(), ::Filesystem::PersistentDirectory::ice_factory()); - } - - ~__F__Filesystem__PersistentDirectory__Init() - { - ::IceInternal::factoryTable->removeObjectFactory(::Filesystem::PersistentDirectory::ice_staticId()); - } -}; - -static __F__Filesystem__PersistentDirectory__Init __F__Filesystem__PersistentDirectory__i; - -#ifdef __APPLE__ -extern "C" { void __F__Filesystem__PersistentDirectory__initializer() {} } -#endif - -void -Filesystem::__patch__PersistentDirectoryPtr(void* __addr, ::Ice::ObjectPtr& v) -{ - ::Filesystem::PersistentDirectoryPtr* p = static_cast< ::Filesystem::PersistentDirectoryPtr*>(__addr); - assert(p); - *p = ::Filesystem::PersistentDirectoryPtr::dynamicCast(v); - if(v && !*p) - { - IceInternal::Ex::throwUOE(::Filesystem::PersistentDirectory::ice_staticId(), v->ice_id()); - } -} - -bool -Filesystem::operator==(const ::Filesystem::PersistentDirectory& l, const ::Filesystem::PersistentDirectory& r) -{ - return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r); -} - -bool -Filesystem::operator<(const ::Filesystem::PersistentDirectory& l, const ::Filesystem::PersistentDirectory& r) -{ - return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r); -} diff --git a/cpp/demo/book/map_filesystem/Filesystem.h b/cpp/demo/book/map_filesystem/Filesystem.h deleted file mode 100644 index 8a714c58706..00000000000 --- a/cpp/demo/book/map_filesystem/Filesystem.h +++ /dev/null @@ -1,2028 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -// Ice version 3.3.0 -// Generated from file `Filesystem.ice' - -#ifndef __Filesystem_h__ -#define __Filesystem_h__ - -#include <Ice/LocalObjectF.h> -#include <Ice/ProxyF.h> -#include <Ice/ObjectF.h> -#include <Ice/Exception.h> -#include <Ice/LocalObject.h> -#include <Ice/Proxy.h> -#include <Ice/Object.h> -#include <Ice/Outgoing.h> -#include <Ice/Incoming.h> -#include <Ice/Direct.h> -#include <Ice/UserExceptionFactory.h> -#include <Ice/FactoryTable.h> -#include <Ice/StreamF.h> -#include <Ice/UndefSysMacros.h> - -#ifndef ICE_IGNORE_VERSION -# if ICE_INT_VERSION / 100 != 303 -# error Ice version mismatch! -# endif -# if ICE_INT_VERSION % 100 > 50 -# error Beta header file detected -# endif -# if ICE_INT_VERSION % 100 < 0 -# error Ice patch level mismatch! -# endif -#endif - -namespace IceProxy -{ - -namespace Filesystem -{ - -class Node; - -class File; - -class Directory; - -class PersistentNode; - -class PersistentFile; - -class PersistentDirectory; - -} - -} - -namespace Filesystem -{ - -class Node; -bool operator==(const Node&, const Node&); -bool operator<(const Node&, const Node&); - -class File; -bool operator==(const File&, const File&); -bool operator<(const File&, const File&); - -class Directory; -bool operator==(const Directory&, const Directory&); -bool operator<(const Directory&, const Directory&); - -class PersistentNode; -bool operator==(const PersistentNode&, const PersistentNode&); -bool operator<(const PersistentNode&, const PersistentNode&); - -class PersistentFile; -bool operator==(const PersistentFile&, const PersistentFile&); -bool operator<(const PersistentFile&, const PersistentFile&); - -class PersistentDirectory; -bool operator==(const PersistentDirectory&, const PersistentDirectory&); -bool operator<(const PersistentDirectory&, const PersistentDirectory&); - -} - -namespace IceInternal -{ - -::Ice::Object* upCast(::Filesystem::Node*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::Node*); - -::Ice::Object* upCast(::Filesystem::File*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::File*); - -::Ice::Object* upCast(::Filesystem::Directory*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::Directory*); - -::Ice::Object* upCast(::Filesystem::PersistentNode*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::PersistentNode*); - -::Ice::Object* upCast(::Filesystem::PersistentFile*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::PersistentFile*); - -::Ice::Object* upCast(::Filesystem::PersistentDirectory*); -::IceProxy::Ice::Object* upCast(::IceProxy::Filesystem::PersistentDirectory*); - -} - -namespace Filesystem -{ - -typedef ::IceInternal::Handle< ::Filesystem::Node> NodePtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::Node> NodePrx; - -void __read(::IceInternal::BasicStream*, NodePrx&); -void __patch__NodePtr(void*, ::Ice::ObjectPtr&); - -typedef ::IceInternal::Handle< ::Filesystem::File> FilePtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::File> FilePrx; - -void __read(::IceInternal::BasicStream*, FilePrx&); -void __patch__FilePtr(void*, ::Ice::ObjectPtr&); - -typedef ::IceInternal::Handle< ::Filesystem::Directory> DirectoryPtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::Directory> DirectoryPrx; - -void __read(::IceInternal::BasicStream*, DirectoryPrx&); -void __patch__DirectoryPtr(void*, ::Ice::ObjectPtr&); - -typedef ::IceInternal::Handle< ::Filesystem::PersistentNode> PersistentNodePtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::PersistentNode> PersistentNodePrx; - -void __read(::IceInternal::BasicStream*, PersistentNodePrx&); -void __patch__PersistentNodePtr(void*, ::Ice::ObjectPtr&); - -typedef ::IceInternal::Handle< ::Filesystem::PersistentFile> PersistentFilePtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::PersistentFile> PersistentFilePrx; - -void __read(::IceInternal::BasicStream*, PersistentFilePrx&); -void __patch__PersistentFilePtr(void*, ::Ice::ObjectPtr&); - -typedef ::IceInternal::Handle< ::Filesystem::PersistentDirectory> PersistentDirectoryPtr; -typedef ::IceInternal::ProxyHandle< ::IceProxy::Filesystem::PersistentDirectory> PersistentDirectoryPrx; - -void __read(::IceInternal::BasicStream*, PersistentDirectoryPrx&); -void __patch__PersistentDirectoryPtr(void*, ::Ice::ObjectPtr&); - -} - -namespace Filesystem -{ - -class GenericError : public ::Ice::UserException -{ -public: - - GenericError() {} - explicit GenericError(const ::std::string&); - virtual ~GenericError() throw(); - - virtual ::std::string ice_name() const; - virtual ::Ice::Exception* ice_clone() const; - virtual void ice_throw() const; - - static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); - - ::std::string reason; - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -static GenericError __GenericError_init; - -class PermissionDenied : public ::Filesystem::GenericError -{ -public: - - PermissionDenied() {} - explicit PermissionDenied(const ::std::string&); - virtual ~PermissionDenied() throw(); - - virtual ::std::string ice_name() const; - virtual ::Ice::Exception* ice_clone() const; - virtual void ice_throw() const; - - static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -class NameInUse : public ::Filesystem::GenericError -{ -public: - - NameInUse() {} - explicit NameInUse(const ::std::string&); - virtual ~NameInUse() throw(); - - virtual ::std::string ice_name() const; - virtual ::Ice::Exception* ice_clone() const; - virtual void ice_throw() const; - - static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -class NoSuchName : public ::Filesystem::GenericError -{ -public: - - NoSuchName() {} - explicit NoSuchName(const ::std::string&); - virtual ~NoSuchName() throw(); - - virtual ::std::string ice_name() const; - virtual ::Ice::Exception* ice_clone() const; - virtual void ice_throw() const; - - static const ::IceInternal::UserExceptionFactoryPtr& ice_factory(); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -typedef ::std::vector< ::std::string> Lines; - -enum NodeType -{ - DirType, - FileType -}; - -void __write(::IceInternal::BasicStream*, NodeType); -void __read(::IceInternal::BasicStream*, NodeType&); - -struct NodeDesc -{ - ::std::string name; - ::Filesystem::NodeType type; - ::Filesystem::NodePrx proxy; - - bool operator==(const NodeDesc&) const; - bool operator<(const NodeDesc&) const; - bool operator!=(const NodeDesc& __rhs) const - { - return !operator==(__rhs); - } - bool operator<=(const NodeDesc& __rhs) const - { - return operator<(__rhs) || operator==(__rhs); - } - bool operator>(const NodeDesc& __rhs) const - { - return !operator<(__rhs) && !operator==(__rhs); - } - bool operator>=(const NodeDesc& __rhs) const - { - return !operator<(__rhs); - } - - void __write(::IceInternal::BasicStream*) const; - void __read(::IceInternal::BasicStream*); -}; - -typedef ::std::vector< ::Filesystem::NodeDesc> NodeDescSeq; -void __writeNodeDescSeq(::IceInternal::BasicStream*, const ::Filesystem::NodeDesc*, const ::Filesystem::NodeDesc*); -void __readNodeDescSeq(::IceInternal::BasicStream*, NodeDescSeq&); - -typedef ::std::map< ::std::string, ::Filesystem::NodeDesc> NodeDict; -void __writeNodeDict(::IceInternal::BasicStream*, const NodeDict&); -void __readNodeDict(::IceInternal::BasicStream*, NodeDict&); - -} - -namespace IceProxy -{ - -namespace Filesystem -{ - -class Node : virtual public ::IceProxy::Ice::Object -{ -public: - - ::std::string name() - { - return name(0); - } - ::std::string name(const ::Ice::Context& __ctx) - { - return name(&__ctx); - } - -private: - - ::std::string name(const ::Ice::Context*); - -public: - - void destroy() - { - destroy(0); - } - void destroy(const ::Ice::Context& __ctx) - { - destroy(&__ctx); - } - -private: - - void destroy(const ::Ice::Context*); - -public: - - ::IceInternal::ProxyHandle<Node> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<Node> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Node*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<Node*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -class File : virtual public ::IceProxy::Filesystem::Node -{ -public: - - ::Filesystem::Lines read() - { - return read(0); - } - ::Filesystem::Lines read(const ::Ice::Context& __ctx) - { - return read(&__ctx); - } - -private: - - ::Filesystem::Lines read(const ::Ice::Context*); - -public: - - void write(const ::Filesystem::Lines& text) - { - write(text, 0); - } - void write(const ::Filesystem::Lines& text, const ::Ice::Context& __ctx) - { - write(text, &__ctx); - } - -private: - - void write(const ::Filesystem::Lines&, const ::Ice::Context*); - -public: - - ::IceInternal::ProxyHandle<File> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<File> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<File*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<File*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -class Directory : virtual public ::IceProxy::Filesystem::Node -{ -public: - - ::Filesystem::NodeDescSeq list() - { - return list(0); - } - ::Filesystem::NodeDescSeq list(const ::Ice::Context& __ctx) - { - return list(&__ctx); - } - -private: - - ::Filesystem::NodeDescSeq list(const ::Ice::Context*); - -public: - - ::Filesystem::NodeDesc find(const ::std::string& name) - { - return find(name, 0); - } - ::Filesystem::NodeDesc find(const ::std::string& name, const ::Ice::Context& __ctx) - { - return find(name, &__ctx); - } - -private: - - ::Filesystem::NodeDesc find(const ::std::string&, const ::Ice::Context*); - -public: - - ::Filesystem::FilePrx createFile(const ::std::string& name) - { - return createFile(name, 0); - } - ::Filesystem::FilePrx createFile(const ::std::string& name, const ::Ice::Context& __ctx) - { - return createFile(name, &__ctx); - } - -private: - - ::Filesystem::FilePrx createFile(const ::std::string&, const ::Ice::Context*); - -public: - - ::Filesystem::DirectoryPrx createDirectory(const ::std::string& name) - { - return createDirectory(name, 0); - } - ::Filesystem::DirectoryPrx createDirectory(const ::std::string& name, const ::Ice::Context& __ctx) - { - return createDirectory(name, &__ctx); - } - -private: - - ::Filesystem::DirectoryPrx createDirectory(const ::std::string&, const ::Ice::Context*); - -public: - - ::IceInternal::ProxyHandle<Directory> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<Directory> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<Directory*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<Directory*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -class PersistentNode : virtual public ::IceProxy::Ice::Object -{ -public: - - ::IceInternal::ProxyHandle<PersistentNode> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentNode> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentNode*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<PersistentNode*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -class PersistentFile : virtual public ::IceProxy::Filesystem::PersistentNode -{ -public: - - ::IceInternal::ProxyHandle<PersistentFile> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentFile> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentFile*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<PersistentFile*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -class PersistentDirectory : virtual public ::IceProxy::Filesystem::PersistentNode -{ -public: - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_context(const ::Ice::Context& __context) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_context(__context).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_context(__context).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_adapterId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_adapterId(__id).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_endpoints(__endpoints).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_locatorCacheTimeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_locatorCacheTimeout(__timeout).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_connectionCached(bool __cached) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_connectionCached(__cached).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_endpointSelection(::Ice::EndpointSelectionType __est) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_endpointSelection(__est).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_secure(bool __secure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_secure(__secure).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_preferSecure(bool __preferSecure) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_preferSecure(__preferSecure).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_router(const ::Ice::RouterPrx& __router) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_router(__router).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_router(__router).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_locator(const ::Ice::LocatorPrx& __locator) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_locator(__locator).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_collocationOptimized(bool __co) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_collocationOptimized(__co).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_twoway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_twoway().get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_twoway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_oneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_oneway().get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_oneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_batchOneway() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_batchOneway().get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_batchOneway().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_datagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_datagram().get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_datagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_batchDatagram() const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_batchDatagram().get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_compress(bool __compress) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_compress(__compress).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_timeout(int __timeout) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_timeout(__timeout).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); - #endif - } - - ::IceInternal::ProxyHandle<PersistentDirectory> ice_connectionId(const std::string& __id) const - { - #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug - typedef ::IceProxy::Ice::Object _Base; - return dynamic_cast<PersistentDirectory*>(_Base::ice_connectionId(__id).get()); - #else - return dynamic_cast<PersistentDirectory*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); - #endif - } - - static const ::std::string& ice_staticId(); - -private: - - virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); - virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); - virtual ::IceProxy::Ice::Object* __newInstance() const; -}; - -} - -} - -namespace IceDelegate -{ - -namespace Filesystem -{ - -class Node : virtual public ::IceDelegate::Ice::Object -{ -public: - - virtual ::std::string name(const ::Ice::Context*) = 0; - - virtual void destroy(const ::Ice::Context*) = 0; -}; - -class File : virtual public ::IceDelegate::Filesystem::Node -{ -public: - - virtual ::Filesystem::Lines read(const ::Ice::Context*) = 0; - - virtual void write(const ::Filesystem::Lines&, const ::Ice::Context*) = 0; -}; - -class Directory : virtual public ::IceDelegate::Filesystem::Node -{ -public: - - virtual ::Filesystem::NodeDescSeq list(const ::Ice::Context*) = 0; - - virtual ::Filesystem::NodeDesc find(const ::std::string&, const ::Ice::Context*) = 0; - - virtual ::Filesystem::FilePrx createFile(const ::std::string&, const ::Ice::Context*) = 0; - - virtual ::Filesystem::DirectoryPrx createDirectory(const ::std::string&, const ::Ice::Context*) = 0; -}; - -class PersistentNode : virtual public ::IceDelegate::Ice::Object -{ -public: -}; - -class PersistentFile : virtual public ::IceDelegate::Filesystem::PersistentNode -{ -public: -}; - -class PersistentDirectory : virtual public ::IceDelegate::Filesystem::PersistentNode -{ -public: -}; - -} - -} - -namespace IceDelegateM -{ - -namespace Filesystem -{ - -class Node : virtual public ::IceDelegate::Filesystem::Node, - virtual public ::IceDelegateM::Ice::Object -{ -public: - - virtual ::std::string name(const ::Ice::Context*); - - virtual void destroy(const ::Ice::Context*); -}; - -class File : virtual public ::IceDelegate::Filesystem::File, - virtual public ::IceDelegateM::Filesystem::Node -{ -public: - - virtual ::Filesystem::Lines read(const ::Ice::Context*); - - virtual void write(const ::Filesystem::Lines&, const ::Ice::Context*); -}; - -class Directory : virtual public ::IceDelegate::Filesystem::Directory, - virtual public ::IceDelegateM::Filesystem::Node -{ -public: - - virtual ::Filesystem::NodeDescSeq list(const ::Ice::Context*); - - virtual ::Filesystem::NodeDesc find(const ::std::string&, const ::Ice::Context*); - - virtual ::Filesystem::FilePrx createFile(const ::std::string&, const ::Ice::Context*); - - virtual ::Filesystem::DirectoryPrx createDirectory(const ::std::string&, const ::Ice::Context*); -}; - -class PersistentNode : virtual public ::IceDelegate::Filesystem::PersistentNode, - virtual public ::IceDelegateM::Ice::Object -{ -public: -}; - -class PersistentFile : virtual public ::IceDelegate::Filesystem::PersistentFile, - virtual public ::IceDelegateM::Filesystem::PersistentNode -{ -public: -}; - -class PersistentDirectory : virtual public ::IceDelegate::Filesystem::PersistentDirectory, - virtual public ::IceDelegateM::Filesystem::PersistentNode -{ -public: -}; - -} - -} - -namespace IceDelegateD -{ - -namespace Filesystem -{ - -class Node : virtual public ::IceDelegate::Filesystem::Node, - virtual public ::IceDelegateD::Ice::Object -{ -public: - - virtual ::std::string name(const ::Ice::Context*); - - virtual void destroy(const ::Ice::Context*); -}; - -class File : virtual public ::IceDelegate::Filesystem::File, - virtual public ::IceDelegateD::Filesystem::Node -{ -public: - - virtual ::Filesystem::Lines read(const ::Ice::Context*); - - virtual void write(const ::Filesystem::Lines&, const ::Ice::Context*); -}; - -class Directory : virtual public ::IceDelegate::Filesystem::Directory, - virtual public ::IceDelegateD::Filesystem::Node -{ -public: - - virtual ::Filesystem::NodeDescSeq list(const ::Ice::Context*); - - virtual ::Filesystem::NodeDesc find(const ::std::string&, const ::Ice::Context*); - - virtual ::Filesystem::FilePrx createFile(const ::std::string&, const ::Ice::Context*); - - virtual ::Filesystem::DirectoryPrx createDirectory(const ::std::string&, const ::Ice::Context*); -}; - -class PersistentNode : virtual public ::IceDelegate::Filesystem::PersistentNode, - virtual public ::IceDelegateD::Ice::Object -{ -public: -}; - -class PersistentFile : virtual public ::IceDelegate::Filesystem::PersistentFile, - virtual public ::IceDelegateD::Filesystem::PersistentNode -{ -public: -}; - -class PersistentDirectory : virtual public ::IceDelegate::Filesystem::PersistentDirectory, - virtual public ::IceDelegateD::Filesystem::PersistentNode -{ -public: -}; - -} - -} - -namespace Filesystem -{ - -class Node : virtual public ::Ice::Object -{ -public: - - typedef NodePrx ProxyType; - typedef NodePtr PointerType; - - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - virtual ::std::string name(const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___name(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual void destroy(const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___destroy(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -class File : virtual public ::Filesystem::Node -{ -public: - - typedef FilePrx ProxyType; - typedef FilePtr PointerType; - - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - virtual ::Filesystem::Lines read(const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___read(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual void write(const ::Filesystem::Lines&, const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___write(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -class Directory : virtual public ::Filesystem::Node -{ -public: - - typedef DirectoryPrx ProxyType; - typedef DirectoryPtr PointerType; - - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - virtual ::Filesystem::NodeDescSeq list(const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___list(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Filesystem::NodeDesc find(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___find(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Filesystem::FilePrx createFile(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___createFile(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Filesystem::DirectoryPrx createDirectory(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0; - ::Ice::DispatchStatus ___createDirectory(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); -}; - -class PersistentNode : virtual public ::Ice::Object -{ -public: - - typedef PersistentNodePrx ProxyType; - typedef PersistentNodePtr PointerType; - - PersistentNode() {} - explicit PersistentNode(const ::std::string&); - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); - - static const ::Ice::ObjectFactoryPtr& ice_factory(); - -protected: - - virtual ~PersistentNode() {} - - friend class PersistentNode__staticInit; - -public: - - ::std::string name; -}; - -class PersistentNode__staticInit -{ -public: - - ::Filesystem::PersistentNode _init; -}; - -static ::Filesystem::PersistentNode__staticInit _PersistentNode_init; - -class PersistentFile : virtual public ::Filesystem::PersistentNode -{ -public: - - typedef PersistentFilePrx ProxyType; - typedef PersistentFilePtr PointerType; - - PersistentFile() {} - PersistentFile(const ::std::string&, const ::Filesystem::Lines&); - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); - - static const ::Ice::ObjectFactoryPtr& ice_factory(); - -protected: - - virtual ~PersistentFile() {} - -public: - - ::Filesystem::Lines text; -}; - -class PersistentDirectory : virtual public ::Filesystem::PersistentNode -{ -public: - - typedef PersistentDirectoryPrx ProxyType; - typedef PersistentDirectoryPtr PointerType; - - PersistentDirectory() {} - PersistentDirectory(const ::std::string&, const ::Filesystem::NodeDict&); - virtual ::Ice::ObjectPtr ice_clone() const; - - virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; - virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; - virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; - static const ::std::string& ice_staticId(); - - - virtual void __write(::IceInternal::BasicStream*) const; - virtual void __read(::IceInternal::BasicStream*, bool); - virtual void __write(const ::Ice::OutputStreamPtr&) const; - virtual void __read(const ::Ice::InputStreamPtr&, bool); - - static const ::Ice::ObjectFactoryPtr& ice_factory(); - -protected: - - virtual ~PersistentDirectory() {} - -public: - - ::Filesystem::NodeDict nodes; -}; - -} - -#endif diff --git a/cpp/demo/book/map_filesystem/Filesystem.ice b/cpp/demo/book/map_filesystem/Filesystem.ice deleted file mode 100644 index fea080b38dd..00000000000 --- a/cpp/demo/book/map_filesystem/Filesystem.ice +++ /dev/null @@ -1,69 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -module Filesystem -{ - exception GenericError - { - string reason; - }; - exception PermissionDenied extends GenericError {}; - exception NameInUse extends GenericError {}; - exception NoSuchName extends GenericError {}; - - interface Node - { - idempotent string name(); - void destroy() throws PermissionDenied; - }; - - sequence<string> Lines; - - interface File extends Node - { - idempotent Lines read(); - idempotent void write(Lines text) throws GenericError; - }; - - enum NodeType { DirType, FileType }; - - struct NodeDesc - { - string name; - NodeType type; - Node* proxy; - }; - - sequence<NodeDesc> NodeDescSeq; - - interface Directory extends Node - { - idempotent NodeDescSeq list(); - idempotent NodeDesc find(string name) throws NoSuchName; - File* createFile(string name) throws NameInUse; - Directory* createDirectory(string name) throws NameInUse; - }; - - class PersistentNode - { - string name; - }; - - class PersistentFile extends PersistentNode - { - Lines text; - }; - - dictionary<string, NodeDesc> NodeDict; - - class PersistentDirectory extends PersistentNode - { - NodeDict nodes; - }; -}; diff --git a/cpp/demo/book/map_filesystem/FilesystemI.cpp b/cpp/demo/book/map_filesystem/FilesystemI.cpp deleted file mode 100644 index 6cf7f3dd386..00000000000 --- a/cpp/demo/book/map_filesystem/FilesystemI.cpp +++ /dev/null @@ -1,414 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <FilesystemI.h> -#include <IceUtil/UUID.h> -#include <Freeze/Initialize.h> - -using namespace std; -using namespace Ice; -using namespace Filesystem; -using namespace FilesystemI; - -// Static members - -string FilesystemI::NodeI::_envName; -string FilesystemI::NodeI::_dbName; -IceUtil::StaticMutex FilesystemI::DirectoryI::_lcMutex = ICE_STATIC_MUTEX_INITIALIZER; -FilesystemI::DirectoryI::ReapMap FilesystemI::DirectoryI::_reapMap; - -// Slice Node::name() operation - -std::string -FilesystemI::NodeI::name(const Current& c) -{ - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - - return getPersistentNode()->name; -} - -// NodeI id() member - -Ice::Identity -FilesystemI::NodeI::id() const -{ - return _id; -} - -// NodeI activate() member. Adds a servant to the ASM. - -ObjectPrx -FilesystemI::NodeI::activate(const ObjectAdapterPtr& a) -{ - return a->add(this, _id); -} - -// NodeI constructor - -FilesystemI::NodeI::NodeI(const CommunicatorPtr& communicator, const Identity& id, const DirectoryIPtr& parent) - : _map(Freeze::createConnection(communicator, _envName), _dbName), - _parent(parent), _destroyed(false), _id(id) -{ -} - -// Look for the node in the map and take care of deadlocks - -PersistentNodePtr -FilesystemI::NodeI::findNode(const Identity& id) const -{ - for(;;) - { - try - { - IdentityNodeMap::const_iterator p = _map.find(id); - if(p == _map.end()) - return 0; - else - return p->second; - } - catch(const Freeze::DeadlockException&) - { - // Try again - // - } - } -} - -// Slice File::read() operation - -Lines -FilesystemI::FileI::read(const Current& c) -{ - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - - return _file->text; -} - -// Slice File::write() operation - -void -FilesystemI::FileI::write(const Lines& text, const Current& c) -{ - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - - _file->text = text; - _map.put(IdentityNodeMap::value_type(_id, _file)); -} - -// Slice File::destroy() operation - -void -FilesystemI::FileI::destroy(const Current& c) -{ - { - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - _destroyed = true; - } - - IceUtil::StaticMutex::Lock lock(DirectoryI::_lcMutex); - - c.adapter->remove(c.id); - _parent->addReapEntry(_file->name); - _map.erase(c.id); -} - -// FileI constructor - -FilesystemI::FileI::FileI(const ObjectAdapterPtr& adapter, const Identity& id, - const PersistentFilePtr& file, const DirectoryIPtr& parent) : - NodeI(adapter->getCommunicator(), id, parent), _file(file) -{ -} - -PersistentNodePtr -FilesystemI::FileI::getPersistentNode() const -{ - return _file; -} - -// Slice Directory::list() operation - -NodeDescSeq -FilesystemI::DirectoryI::list(const Current& c) -{ - { - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - } - - IceUtil::StaticMutex::Lock lock(_lcMutex); - - reap(); - - NodeDescSeq result; - for(NodeDict::const_iterator i = _dir->nodes.begin(); i != _dir->nodes.end(); ++i) - { - result.push_back(i->second); - } - return result; -} - -// Slice Directory::find() operation - -NodeDesc -FilesystemI::DirectoryI::find(const std::string& name, const Current& c) -{ - { - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - } - - IceUtil::StaticMutex::Lock lock(_lcMutex); - - reap(); - - NodeDict::const_iterator i = _dir->nodes.find(name); - if(i == _dir->nodes.end()) - { - throw NoSuchName(name); - } - return i->second; -} - -// Slice Directory::createFile() operation - -FilePrx -FilesystemI::DirectoryI::createFile(const std::string& name, const Current& c) -{ - { - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - } - - IceUtil::StaticMutex::Lock lock(_lcMutex); - - reap(); - - if(name.empty() || _dir->nodes.find(name) != _dir->nodes.end()) - { - throw NameInUse(name); - } - - PersistentFilePtr persistentFile = new PersistentFile; - persistentFile->name = name; - CommunicatorPtr communicator = c.adapter->getCommunicator(); - FileIPtr file = new FileI(c.adapter, communicator->stringToIdentity(IceUtil::generateUUID()), - persistentFile, this); - assert(findNode(file->id()) == 0); - _map.put(IdentityNodeMap::value_type(file->id(), persistentFile)); - - FilePrx proxy = FilePrx::uncheckedCast(c.adapter->createProxy(file->id())); - - NodeDesc nd; - nd.name = name; - nd.type = FileType; - nd.proxy = proxy; - _dir->nodes[name] = nd; - _map.put(IdentityNodeMap::value_type(_id, _dir)); - - file->activate(c.adapter); - - return proxy; -} - -// Slice Directory::createDirectory() operation - -DirectoryPrx -FilesystemI::DirectoryI::createDirectory(const std::string& name, const Current& c) -{ - { - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - } - - IceUtil::StaticMutex::Lock lock(_lcMutex); - - reap(); - - if(name.empty() || _dir->nodes.find(name) != _dir->nodes.end()) - { - throw NameInUse(name); - } - - PersistentDirectoryPtr persistentDir = new PersistentDirectory; - persistentDir->name = name; - CommunicatorPtr communicator = c.adapter->getCommunicator(); - DirectoryIPtr dir = new DirectoryI(c.adapter, communicator->stringToIdentity(IceUtil::generateUUID()), - persistentDir, this); - assert(findNode(dir->_id) == 0); - _map.put(IdentityNodeMap::value_type(dir->_id, persistentDir)); - - DirectoryPrx proxy = DirectoryPrx::uncheckedCast(c.adapter->createProxy(dir->_id)); - - NodeDesc nd; - nd.name = name; - nd.type = DirType; - nd.proxy = proxy; - _dir->nodes[name] = nd; - _map.put(IdentityNodeMap::value_type(_id, _dir)); - - dir->activate(c.adapter); - - return proxy; -} - -// Slice Directory::destroy() operation (inherited from Node) - -void -FilesystemI::DirectoryI::destroy(const Current& c) -{ - if(!_parent) - { - throw Filesystem::PermissionDenied("Cannot destroy root directory"); - } - - IceUtil::Mutex::Lock lock(_m); - - if(_destroyed) - { - throw ObjectNotExistException(__FILE__, __LINE__, c.id, c.facet, c.operation); - } - - IceUtil::StaticMutex::Lock lcLock(DirectoryI::_lcMutex); - - reap(); - - if(!_dir->nodes.empty()) - { - throw PermissionDenied("Cannot destroy non-empty directory"); - } - - c.adapter->remove(c.id); - _parent->addReapEntry(_dir->name); - _map.erase(c.id); - _destroyed = true; -} - -// DirectoryI constructor - -FilesystemI::DirectoryI::DirectoryI(const ObjectAdapterPtr& adapter, const Identity& id, - const PersistentDirectoryPtr& dir, const DirectoryIPtr& parent) - : NodeI(adapter->getCommunicator(), id, parent), _dir(dir) -{ - // - // Instantiate the child nodes - // - vector<string> staleEntries; - - for(NodeDict::iterator p = dir->nodes.begin(); p != dir->nodes.end(); ++p) - { - Identity id = p->second.proxy->ice_getIdentity(); - PersistentNodePtr node = findNode(id); - NodeIPtr servant; - if(node) - { - if(p->second.type == DirType) - { - PersistentDirectoryPtr pDir = PersistentDirectoryPtr::dynamicCast(node); - assert(pDir); - servant = new DirectoryI(adapter, id, pDir, this); - } - else - { - PersistentFilePtr pFile = PersistentFilePtr::dynamicCast(node); - assert(pFile); - servant = new FileI(adapter, id, pFile, this); - } - servant->activate(adapter); - } - else - { - staleEntries.push_back(p->first); - } - } - - for(vector<string>::const_iterator i = staleEntries.begin(); i != staleEntries.end(); ++i) - { - dir->nodes.erase(*i); - } - if(!staleEntries.empty()) - { - _map.put(IdentityNodeMap::value_type(id, dir)); - } -} - -// Add this directory and the name of a deleted entry to the reap map. - -void -FilesystemI::DirectoryI::addReapEntry(const string& name) -{ - ReapMap::iterator pos = _reapMap.find(this); - if(pos != _reapMap.end()) - { - pos->second.push_back(name); - } - else - { - vector<string> v; - v.push_back(name); - _reapMap[this] = v; - } -} - -// Remove all names in the reap map from the corresponding directory contents. - -void -FilesystemI::DirectoryI::reap() -{ - for(ReapMap::const_iterator i = _reapMap.begin(); i != _reapMap.end(); ++i) - { - for(vector<string>::const_iterator j = i->second.begin(); j != i->second.end(); ++j) - { - i->first->_dir->nodes.erase(*j); - } - } - _reapMap.clear(); -} - -PersistentNodePtr -FilesystemI::DirectoryI::getPersistentNode() const -{ - return _dir; -} diff --git a/cpp/demo/book/map_filesystem/FilesystemI.h b/cpp/demo/book/map_filesystem/FilesystemI.h deleted file mode 100644 index afca6869313..00000000000 --- a/cpp/demo/book/map_filesystem/FilesystemI.h +++ /dev/null @@ -1,102 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef __FilesystemI_h__ -#define __FilesystemI_h__ - -#include <IceUtil/Mutex.h> -#include <Ice/Ice.h> -#include <Filesystem.h> -#include <IdentityNodeMap.h> - -namespace FilesystemI -{ - -class DirectoryI; -typedef IceUtil::Handle<DirectoryI> DirectoryIPtr; - -class NodeI : virtual public Filesystem::Node -{ -public: - - virtual ::std::string name(const Ice::Current&); - Ice::Identity id() const; - Ice::ObjectPrx activate(const Ice::ObjectAdapterPtr&); - - static ::std::string _envName; - static ::std::string _dbName; - -protected: - - NodeI(const Ice::CommunicatorPtr&, const Ice::Identity&, const DirectoryIPtr&); - - virtual Filesystem::PersistentNodePtr getPersistentNode() const = 0; - Filesystem::PersistentNodePtr findNode(const Ice::Identity&) const; - - IdentityNodeMap _map; - DirectoryIPtr _parent; - bool _destroyed; - const Ice::Identity _id; - IceUtil::Mutex _m; -}; - -typedef IceUtil::Handle<NodeI> NodeIPtr; - -class FileI : virtual public Filesystem::File, virtual public NodeI -{ -public: - - virtual Filesystem::Lines read(const Ice::Current&); - virtual void write(const Filesystem::Lines&, const Ice::Current&); - virtual void destroy(const Ice::Current&); - - FileI(const Ice::ObjectAdapterPtr&, const Ice::Identity&, - const Filesystem::PersistentFilePtr&, const DirectoryIPtr&); - -private: - - virtual Filesystem::PersistentNodePtr getPersistentNode() const; - - Filesystem::PersistentFilePtr _file; -}; - -typedef IceUtil::Handle<FileI> FileIPtr; - -class DirectoryI : virtual public Filesystem::Directory, virtual public NodeI -{ -public: - - virtual Filesystem::NodeDescSeq list(const Ice::Current&); - virtual Filesystem::NodeDesc find(const ::std::string&, const Ice::Current&); - virtual Filesystem::FilePrx createFile(const ::std::string&, const Ice::Current&); - virtual Filesystem::DirectoryPrx createDirectory(const ::std::string&, const Ice::Current&); - virtual void destroy(const Ice::Current&); - - DirectoryI(const Ice::ObjectAdapterPtr&, const Ice::Identity&, - const Filesystem::PersistentDirectoryPtr&, const DirectoryIPtr&); - - void addReapEntry(const std::string&); - - static void reap(); - - static IceUtil::StaticMutex _lcMutex; - -private: - - virtual Filesystem::PersistentNodePtr getPersistentNode() const; - - Filesystem::PersistentDirectoryPtr _dir; - - typedef std::map<DirectoryIPtr, std::vector<std::string> > ReapMap; - static ReapMap _reapMap; -}; - -} - -#endif diff --git a/cpp/demo/book/map_filesystem/Grammar.y b/cpp/demo/book/map_filesystem/Grammar.y deleted file mode 100644 index ec5d0f2bf8a..00000000000 --- a/cpp/demo/book/map_filesystem/Grammar.y +++ /dev/null @@ -1,146 +0,0 @@ -%{ - -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Parser.h> - -#ifdef _MSC_VER -// I get these warnings from some bison versions: -// warning C4102: 'yyoverflowlab' : unreferenced label -# pragma warning( disable : 4102 ) -// warning C4065: switch statement contains 'default' but no 'case' labels -# pragma warning( disable : 4065 ) -#endif - -using namespace std; - -void -yyerror(const char* s) -{ - parser->error(s); -} - -%} - -%pure_parser - -%token TOK_HELP -%token TOK_EXIT -%token TOK_STRING -%token TOK_LIST -%token TOK_LIST_RECURSIVE -%token TOK_CREATE_FILE -%token TOK_CREATE_DIR -%token TOK_PWD -%token TOK_CD -%token TOK_CAT -%token TOK_WRITE -%token TOK_RM - -%% - -// ---------------------------------------------------------------------- -start -// ---------------------------------------------------------------------- -: commands -{ -} -| -{ -} -; - -// ---------------------------------------------------------------------- -commands -// ---------------------------------------------------------------------- -: commands command -{ -} -| command -{ -} -; - -// ---------------------------------------------------------------------- -command -// ---------------------------------------------------------------------- -: TOK_HELP ';' -{ - parser->usage(); -} -| TOK_EXIT ';' -{ - return 0; -} -| TOK_LIST -{ - parser->list(false); -} -| TOK_LIST_RECURSIVE -{ - parser->list(true); -} -| TOK_CREATE_FILE strings -{ - parser->createFile($2); -} -| TOK_CREATE_DIR strings -{ - parser->createDir($2); -} -| TOK_PWD -{ - parser->pwd(); -} -| TOK_CD -{ - parser->cd("/"); -} -| TOK_CD strings -{ - parser->cd($2.front()); -} -| TOK_CAT TOK_STRING -{ - parser->cat($2.front()); -} -| TOK_WRITE strings -{ - parser->write($2); -} -| TOK_RM strings -{ - parser->destroy($2); -} -| error ';' -{ - parser->usage(); - yyerrok; -} -| ';' -{ -} -; - -// ---------------------------------------------------------------------- -strings -// ---------------------------------------------------------------------- -: TOK_STRING strings -{ - $$ = $2; - $$.push_front($1.front()); -} -| TOK_STRING -{ - $$ = $1; -} -; - -%% diff --git a/cpp/demo/book/map_filesystem/Makefile b/cpp/demo/book/map_filesystem/Makefile deleted file mode 100644 index 81bb93fae31..00000000000 --- a/cpp/demo/book/map_filesystem/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -# ********************************************************************** -# -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -top_srcdir = ../../.. - -CLIENT = client -SERVER = server - -TARGETS = $(CLIENT) $(SERVER) - -OBJS = Filesystem.o - -COBJS = Scanner.o \ - Grammar.o \ - Parser.o \ - Client.o - -SOBJS = FilesystemI.o \ - Server.o \ - IdentityNodeMap.o - -SRCS = $(OBJS:.o=.cpp) \ - $(COBJS:.o=.cpp) \ - $(SOBJS:.o=.cpp) - -include $(top_srcdir)/config/Make.rules - -CPPFLAGS := -I. $(READLINE_FLAGS) $(CPPFLAGS) -SLICE2CPPFLAGS := -I. $(SLICE2CPPFLAGS) - -$(CLIENT): $(OBJS) $(COBJS) - rm -f $@ - $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LIBS) $(READLINE_LIBS) - -$(SERVER): $(OBJS) $(SOBJS) - rm -f $@ - $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(SOBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS) - -Scanner.cpp: Scanner.l - flex Scanner.l - rm -f $@ - echo #include "IceUtil/Config.h" > Scanner.cpp - cat lex.yy.c >> Scanner.cpp - rm -f lex.yy.c - -Grammar.cpp Grammar.h: Grammar.y - rm -f Grammar.h Grammar.cpp - bison -dvt Grammar.y - mv Grammar.tab.c Grammar.cpp - mv Grammar.tab.h Grammar.h - rm -f Grammar.output - -IdentityNodeMap.h IdentityNodeMap.cpp: $(SLICE2FREEZE) $(SLICE_GEN) - rm -f IdentityNodeMap.h IdentityNodeMap.cpp - $(SLICE2FREEZE) --ice -I$(top_srcdir)/../slice \ - --dict IdentityNodeMap,Ice::Identity,Filesystem::PersistentNode \ - IdentityNodeMap Filesystem.ice $(top_srcdir)/../slice/Ice/Identity.ice - -clean:: - -rm -f db/* - -rm -f IdentityNodeMap.cpp IdentityNodeMap.h - -rm -f Grammar.cpp Grammar.h - -rm -f Scanner.cpp - -include .depend diff --git a/cpp/demo/book/map_filesystem/Makefile.mak b/cpp/demo/book/map_filesystem/Makefile.mak deleted file mode 100644 index 6874f9c8ebf..00000000000 --- a/cpp/demo/book/map_filesystem/Makefile.mak +++ /dev/null @@ -1,81 +0,0 @@ -# **********************************************************************
-#
-# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
-#
-# This copy of Ice is licensed to you under the terms described in the
-# ICE_LICENSE file included in this distribution.
-#
-# **********************************************************************
-
-top_srcdir = ..\..\..
-
-CLIENT = client.exe
-SERVER = server.exe
-
-TARGETS = $(CLIENT) $(SERVER)
-
-OBJS = Filesystem.obj
-
-COBJS = Scanner.obj \
- Grammar.obj \
- Parser.obj \
- Client.obj
-
-SOBJS = FilesystemI.obj \
- Server.obj \
- IdentityNodeMap.obj
-
-SRCS = $(OBJS:.obj=.cpp) \
- $(COBJS:.obj=.cpp) \
- $(SOBJS:.obj=.cpp)
-
-!include $(top_srcdir)/config/Make.rules.mak
-
-CPPFLAGS = -I. -Idummyinclude $(CPPFLAGS) -DWIN32_LEAN_AND_MEAN
-SLICE2CPPFLAGS = -I. $(SLICE2CPPFLAGS)
-
-!if "$(GENERATE_PDB)" == "yes"
-CPDBFLAGS = /pdb:$(CLIENT:.exe=.pdb)
-SPDBFLAGS = /pdb:$(SERVER:.exe=.pdb)
-!endif
-
-$(CLIENT): $(OBJS) $(COBJS)
- $(LINK) $(LD_EXEFLAGS) $(CPDBFLAGS) $(SETARGV) $(OBJS) $(COBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
- @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
- $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
-
-$(SERVER): $(OBJS) $(SOBJS)
- $(LINK) $(LD_EXEFLAGS) $(SPDBFLAGS) $(SETARGV) $(OBJS) $(SOBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS) freeze$(LIBSUFFIX).lib
- @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
- $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
-
-Scanner.cpp: Scanner.l
- flex Scanner.l
- -del /q $@
- echo #include "IceUtil/Config.h" > Scanner.cpp
- type lex.yy.c >> Scanner.cpp
- -del /q lex.yy.c
-
-Grammar.cpp Grammar.h: Grammar.y
- -del /q Grammar.h Grammar.cpp
- bison -dvt Grammar.y
- move Grammar.tab.c Grammar.cpp
- move Grammar.tab.h Grammar.h
- -del /q Grammar.output
-
-IdentityNodeMap.h IdentityNodeMap.cpp: $(SLICE2FREEZE) $(SLICE_GEN)
- rm -f IdentityNodeMap.h IdentityNodeMap.cpp
- $(SLICE2FREEZE) --ice -I$(top_srcdir)/../slice \
- --dict IdentityNodeMap,Ice::Identity,Filesystem::PersistentNode \
- IdentityNodeMap Filesystem.ice $(top_srcdir)/../slice/Ice/Identity.ice
-
-clean::
- -del /q Filesystem.cpp Filesystem.h
- -del /q IdentityNodeMap.cpp IdentityNodeMap.h
- -del /q Scanner.cpp Scanner.h
- -del /q Grammar.cpp
-
-clean::
- -for %f in (db\*) do if not %f == db\.gitignore del /q %f
-
-!include .depend
diff --git a/cpp/demo/book/map_filesystem/Parser.cpp b/cpp/demo/book/map_filesystem/Parser.cpp deleted file mode 100644 index 83cea62bd74..00000000000 --- a/cpp/demo/book/map_filesystem/Parser.cpp +++ /dev/null @@ -1,438 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <IceUtil/DisableWarnings.h> -#include <Parser.h> - -#ifdef HAVE_READLINE -# include <readline/readline.h> -# include <readline/history.h> -#endif - -using namespace std; -using namespace Filesystem; - -extern FILE* yyin; - -Parser* parser; - -Parser::Parser(const DirectoryPrx& root) -{ - _dirs.push_front(root); -} - -void -Parser::usage() -{ - cout << - "help Print this message.\n" - "pwd Print current directory (/ = root).\n" - "cd [DIR] Change directory (/ or empty = root).\n" - "ls List current directory.\n" - "lr Recursively list current directory.\n" - "mkdir DIR [DIR...] Create directories DIR in current directory.\n" - "mkfile FILE [FILE...] Create files FILE in current directory.\n" - "rm NAME [NAME...] Delete directory or file NAME (rm * to delete all).\n" - "cat FILE List the contents of FILE.\n" - "write FILE [STRING...] Write STRING to FILE.\n" - "exit, quit Exit this program.\n"; -} - -// Print the contents of directory "dir". If recursive is true, -// print in tree fashion. -// For files, show the contents of each file. The "depth" -// parameter is the current nesting level (for indentation). - -void -Parser::list(bool recursive) -{ - list(_dirs.front(), recursive, 0); -} - -void -Parser::list(const DirectoryPrx& dir, bool recursive, int depth) -{ - string indent(depth++, '\t'); - - NodeDescSeq contents = dir->list(); - - for(NodeDescSeq::const_iterator i = contents.begin(); i != contents.end(); ++i) - { - DirectoryPrx d = i->type == DirType ? DirectoryPrx::uncheckedCast(i->proxy) : (DirectoryPrx)0; - cout << indent << i->name << (d ? " (directory)" : " (file)"); - if(d && recursive) - { - cout << ":" << endl; - list(d, true, depth); - } - else - { - cout << endl; - } - } -} - -void -Parser::createFile(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "..") - { - cout << "Cannot create a file named `..'" << endl; - continue; - } - - try - { - dir->createFile(*i); - } - catch(const NameInUse&) - { - cout << "`" << *i << "' exists already" << endl; - } - } -} - -void -Parser::createDir(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "..") - { - cout << "Cannot create a directory named `.'" << endl; - continue; - } - - try - { - dir->createDirectory(*i); - } - catch(const NameInUse&) - { - cout << "`" << *i << "' exists already" << endl; - } - } -} - -void -Parser::pwd() -{ - if(_dirs.size() == 1) - { - cout << "/"; - } - else - { - // COMPILERFIX: Should be const_reverse_iterator, but that won't compile with - // gcc because operator!= is missing. - // - std::list<DirectoryPrx>::reverse_iterator i = _dirs.rbegin(); - ++i; - while(i != _dirs.rend()) - { - cout << "/" << (*i)->name(); - ++i; - } - } - cout << endl; -} - -void -Parser::cd(const string& name) -{ - if(name == "/") - { - while(_dirs.size() > 1) - { - _dirs.pop_front(); - } - return; - } - - if(name == "..") - { - if(_dirs.size() > 1) - { - _dirs.pop_front(); - } - return; - } - - DirectoryPrx dir = _dirs.front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such directory" << endl; - return; - } - if(d.type == FileType) - { - cout << "`" << name << "': not a directory" << endl; - return; - } - _dirs.push_front(DirectoryPrx::uncheckedCast(d.proxy)); -} - -void -Parser::cat(const string& name) -{ - DirectoryPrx dir = _dirs.front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such file" << endl; - return; - } - if(d.type == DirType) - { - cout << "`" << name << "': not a file" << endl; - return; - } - FilePrx f = FilePrx::uncheckedCast(d.proxy); - Lines l = f->read(); - for(Lines::const_iterator i = l.begin(); i != l.end(); ++i) - { - cout << *i << endl; - } -} - -void -Parser::write(std::list<string>& args) -{ - DirectoryPrx dir = _dirs.front(); - string name = args.front(); - args.pop_front(); - NodeDesc d; - try - { - d = dir->find(name); - } - catch(const NoSuchName&) - { - cout << "`" << name << "': no such file" << endl; - return; - } - if(d.type == DirType) - { - cout << "`" << name << "': not a file" << endl; - return; - } - FilePrx f = FilePrx::uncheckedCast(d.proxy); - - Lines l; - for(std::list<string>::const_iterator i = args.begin(); i != args.end(); ++i) - { - l.push_back(*i); - } - f->write(l); -} - -void -Parser::destroy(const std::list<string>& names) -{ - DirectoryPrx dir = _dirs.front(); - - for(std::list<string>::const_iterator i = names.begin(); i != names.end(); ++i) - { - if(*i == "*") - { - NodeDescSeq nodes = dir->list(); - for(NodeDescSeq::iterator j = nodes.begin(); j != nodes.end(); ++j) - { - try - { - j->proxy->destroy(); - } - catch(const PermissionDenied& ex) - { - cout << "cannot remove `" << j->name << "': " << ex.reason << endl; - } - } - return; - } - else - { - NodeDesc d; - try - { - d = dir->find(*i); - } - catch(const NoSuchName&) - { - cout << "`" << *i << "': no such file or directory" << endl; - return; - } - try - { - d.proxy->destroy(); - } - catch(const PermissionDenied& ex) - { - cout << "cannot remove `" << *i << "': " << ex.reason << endl; - } - } - } -} - -void -Parser::getInput(char* buf, int& result, int maxSize) -{ -#ifdef HAVE_READLINE - - const char* prompt = parser->getPrompt(); - char* line = readline(const_cast<char*>(prompt)); - if(!line) - { - result = 0; - } - else - { - if(*line) - { - add_history(line); - } - - result = strlen(line) + 1; - if(result > maxSize) - { - free(line); - error("input line too long"); - result = 0; - } - else - { - strcpy(buf, line); - strcat(buf, "\n"); - free(line); - } - } - -#else - - cout << parser->getPrompt() << flush; - - string line; - while(true) - { - char c = static_cast<char>(getc(yyin)); - if(c == EOF) - { - if(line.size()) - { - line += '\n'; - } - break; - } - - line += c; - - if(c == '\n') - { - break; - } - } - - result = static_cast<int>(line.length()); - if(result > maxSize) - { - error("input line too long"); - buf[0] = EOF; - result = 1; - } - else - { - strcpy(buf, line.c_str()); - } - -#endif -} - -void -Parser::continueLine() -{ - _continue = true; -} - -const char* -Parser::getPrompt() -{ - if(_continue) - { - _continue = false; - return "(cont) "; - } - else - { - return "> "; - } -} - -void -Parser::error(const char* s) -{ - cerr << "error: " << s << endl; - _errors++; -} - -void -Parser::error(const string& s) -{ - error(s.c_str()); -} - -void -Parser::warning(const char* s) -{ - cerr << "warning: " << s << endl; -} - -void -Parser::warning(const string& s) -{ - warning(s.c_str()); -} - -int -Parser::parse(bool debug) -{ - extern int yydebug; - yydebug = debug ? 1 : 0; - - assert(!parser); - parser = this; - - _errors = 0; - yyin = stdin; - assert(yyin); - - _continue = false; - - int status = yyparse(); - if(_errors) - { - status = EXIT_FAILURE; - } - - parser = 0; - return status; -} diff --git a/cpp/demo/book/map_filesystem/Parser.h b/cpp/demo/book/map_filesystem/Parser.h deleted file mode 100644 index 7479e0f349a..00000000000 --- a/cpp/demo/book/map_filesystem/Parser.h +++ /dev/null @@ -1,83 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef PARSER_H -#define PARSER_H - -#include <Ice/Ice.h> -#include <Filesystem.h> -#include <list> -#include <stdio.h> - -// -// Stuff for flex and bison -// - -#define YYSTYPE std::list<std::string> -#define YY_DECL int yylex(YYSTYPE* yylvalp) -YY_DECL; -int yyparse(); - -// -// I must set the initial stack depth to the maximum stack depth to -// disable bison stack resizing. The bison stack resizing routines use -// simple malloc/alloc/memcpy calls, which do not work for the -// YYSTYPE, since YYSTYPE is a C++ type, with constructor, destructor, -// assignment operator, etc. -// -#define YYMAXDEPTH 10000 -#define YYINITDEPTH YYMAXDEPTH // Initial depth is set to max depth, for the reasons described above. - -// -// Newer bison versions allow to disable stack resizing by defining -// yyoverflow. -// -#define yyoverflow(a, b, c, d, e, f) yyerror(a) - -class Parser; -typedef IceUtil::Handle<Parser> ParserPtr; - -class Parser : public IceUtil::SimpleShared -{ -public: - Parser(const Filesystem::DirectoryPrx&); - - void usage(); - void list(bool); - void list(const Filesystem::DirectoryPrx&, bool, int); - void createFile(const ::std::list< ::std::string>&); - void createDir(const ::std::list< ::std::string>&); - void pwd(); - void cd(const ::std::string&); - void cat(const ::std::string&); - void write(::std::list< ::std::string>&); - void destroy(const ::std::list< ::std::string>&); - - void getInput(char*, int&, int); - void continueLine(); - const char* getPrompt(); - - void error(const char*); - void error(const std::string&); - - void warning(const char*); - void warning(const std::string&); - - int parse(bool = false); - -private: - ::std::list<Filesystem::DirectoryPrx> _dirs; - - bool _continue; - int _errors; -}; - -extern Parser* parser; // The current parser for bison/flex - -#endif diff --git a/cpp/demo/book/map_filesystem/README b/cpp/demo/book/map_filesystem/README deleted file mode 100644 index bb7408ec72e..00000000000 --- a/cpp/demo/book/map_filesystem/README +++ /dev/null @@ -1,13 +0,0 @@ -This demo presents an implementation of the filesystem -application based on a Freeze map, as discussed in -the Freeze chapter of the Ice manual. - -To run it, start the server in a window: - -$ server - -Then run the client in a separate window: - -$ client - -Type "help" at the client prompt to see a list of commands. diff --git a/cpp/demo/book/map_filesystem/Scanner.l b/cpp/demo/book/map_filesystem/Scanner.l deleted file mode 100644 index d1a991f8280..00000000000 --- a/cpp/demo/book/map_filesystem/Scanner.l +++ /dev/null @@ -1,254 +0,0 @@ -%{ - -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Parser.h> -#include <Grammar.h> - -#if defined(_MSC_VER) && defined(ICE_64) -// -// 'initializing' : conversion from '__int64' to 'int', possible loss of data -// Puts a pointer-difference into an int -// -# pragma warning( 4 : 4244 ) -#endif - -using namespace std; - -#define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize) - -%} - -WS [ \t\v\f\r] -NL [\n] - -%option noyywrap -%option always-interactive - -%% - -"//" { - // C++-style comment - int c; - do - { - c = yyinput(); - } - while(c != '\n' && c != EOF); -} - -"/*" { - // C-style comment - while(true) - { - int c = yyinput(); - if(c == '*') - { - int next = yyinput(); - if(next == '/') - { - break; - } - else - { - unput(next); - } - } - else if(c == EOF) - { - parser->warning("EOF in comment"); - break; - } - } -} - -"help" { - return TOK_HELP; -} - -"quit"|"exit" { - return TOK_EXIT; -} - -"ls" { - return TOK_LIST; -} - -"lr" { - return TOK_LIST_RECURSIVE; -} - -"mkfile" { - return TOK_CREATE_FILE; -} - -"mkdir" { - return TOK_CREATE_DIR; -} - -"pwd" { - return TOK_PWD; -} - -"cd" { - return TOK_CD; -} - -"cat" { - return TOK_CAT; -} - -"write" { - return TOK_WRITE; -} - -"rm" { - return TOK_RM; -} - -{WS}*(\\{WS}*{NL})? { - size_t len = strlen(yytext); - for(size_t i = 0; i < len; ++i) - { - if(yytext[i] == '\\') - { - parser->continueLine(); - } - } -} - -{NL}|; { - return ';'; -} - -\" { - // "..."-type strings - string s; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == '"') - { - break; - } - else if(c == EOF) - { - parser->warning("EOF in string"); - break; - } - else if(c == '\\') - { - char next = static_cast<char>(yyinput()); - switch(next) - { - case '\\': - case '"': - { - s += next; - break; - } - - case 'n': - { - s += '\n'; - break; - } - - case 'r': - { - s += '\r'; - break; - } - - case 't': - { - s += '\t'; - break; - } - - case 'v': - { - s += '\v'; - break; - } - - case 'f': - { - s += '\f'; - break; - } - - default: - { - s += c; - unput(next); - } - } - } - else - { - s += c; - } - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -\' { - // '...'-type strings - string s; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == '\'') - { - break; - } - else if(c == EOF) - { - parser->warning("EOF in string"); - break; - } - else - { - s += c; - } - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -. { - // Simple strings - string s; - s += yytext[0]; - while(true) - { - char c = static_cast<char>(yyinput()); - if(c == EOF) - { - break; - } - else if(isspace(c) || c == ';') - { - unput(c); - break; - } - - s += c; - } - yylvalp->clear(); - yylvalp->push_back(s); - return TOK_STRING; -} - -%% diff --git a/cpp/demo/book/map_filesystem/Server.cpp b/cpp/demo/book/map_filesystem/Server.cpp deleted file mode 100644 index d2a35b13003..00000000000 --- a/cpp/demo/book/map_filesystem/Server.cpp +++ /dev/null @@ -1,104 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <FilesystemI.h> -#include <Ice/Application.h> -#include <Freeze/Freeze.h> - -using namespace std; -using namespace Filesystem; -using namespace FilesystemI; - -class FilesystemApp : virtual public Ice::Application -{ -public: - - FilesystemApp(const string& envName) : - _envName(envName) - { - } - - virtual int run(int, char*[]) - { - // - // Terminate cleanly on receipt of a signal. - // - shutdownOnInterrupt(); - - // - // Install object factories. - // - communicator()->addObjectFactory(PersistentFile::ice_factory(), PersistentFile::ice_staticId()); - communicator()->addObjectFactory(PersistentDirectory::ice_factory(), PersistentDirectory::ice_staticId()); - - // - // Create an object adapter. - // - Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints( - "MapFilesystem", "default -p 10000"); - - NodeI::_envName = _envName; - NodeI::_dbName = "mapfs"; - - // - // Find the persistent node for the root directory, - // or create it if not found. - // - Freeze::ConnectionPtr connection = - Freeze::createConnection(communicator(), _envName); - IdentityNodeMap persistentMap(connection, NodeI::_dbName); - - Ice::Identity rootId = communicator()->stringToIdentity("RootDir"); - PersistentDirectoryPtr pRoot; - { - IdentityNodeMap::iterator p = persistentMap.find(rootId); - - if(p != persistentMap.end()) - { - pRoot = PersistentDirectoryPtr::dynamicCast(p->second); - assert(pRoot); - } - else - { - pRoot = new PersistentDirectory; - pRoot->name = "/"; - persistentMap.insert(IdentityNodeMap::value_type(rootId, pRoot)); - } - DirectoryIPtr dir = new DirectoryI(adapter, rootId, pRoot, 0); - dir->activate(adapter); - } - - // - // Ready to accept requests now. - // - adapter->activate(); - - // - // Wait until we are done. - // - communicator()->waitForShutdown(); - if(interrupted()) - { - cerr << appName() << ": received signal, shutting down" << endl; - } - - return 0; - } - -private: - - string _envName; -}; - -int -main(int argc, char* argv[]) -{ - FilesystemApp app("db"); - return app.main(argc, argv, "config.server"); -} diff --git a/cpp/demo/book/map_filesystem/mapfsC.dsp b/cpp/demo/book/map_filesystem/mapfsC.dsp deleted file mode 100644 index f32d14ecf9d..00000000000 --- a/cpp/demo/book/map_filesystem/mapfsC.dsp +++ /dev/null @@ -1,175 +0,0 @@ -# Microsoft Developer Studio Project File - Name="mapfsC" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=mapfsC - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "mapfsC.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "mapfsC.mak" CFG="mapfsC - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "mapfsC - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "mapfsC - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "mapfsC - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /WX /GR /GX /O2 /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_UNICODE" /D "NDEBUG" /D "WIN32_LEAN_AND_MEAN" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
-# SUBTRACT LINK32 /debug
-
-!ELSEIF "$(CFG)" == "mapfsC - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /WX /Gm /GR /GX /Zi /Od /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_DEBUG" /D "WIN32_LEAN_AND_MEAN" /Fp"Debug/Filesystem.pch" /YX /FD /GZ /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 Iced.lib IceUtild.lib setargv.obj /nologo /subsystem:console /debug /machine:I386 /out:"client.exe" /pdbtype:sept /libpath:"../../../lib" /FIXED:no
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF
-
-# Begin Target
-
-# Name "mapfsC - Win32 Release"
-# Name "mapfsC - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Client.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Filesystem.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Grammar.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Parser.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Scanner.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Filesystem.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Grammar.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Parser.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Filesystem.ice
-
-!IF "$(CFG)" == "mapfsC - Win32 Release"
-
-USERDEP__FILES="../../../bin/slice2cpp.exe"
-# Begin Custom Build
-InputPath=.\Filesystem.ice
-
-BuildCmds= \
- ..\..\..\bin\slice2cpp.exe Filesystem.ice
-
-"Filesystem.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"Filesystem.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ELSEIF "$(CFG)" == "mapfsC - Win32 Debug"
-
-USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
-# Begin Custom Build
-InputPath=.\Filesystem.ice
-
-BuildCmds= \
- ..\..\..\bin\slice2cpp.exe Filesystem.ice
-
-"Filesystem.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"Filesystem.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\README
-# End Source File
-# End Target
-# End Project
diff --git a/cpp/demo/book/map_filesystem/mapfsS.dsp b/cpp/demo/book/map_filesystem/mapfsS.dsp deleted file mode 100644 index 49096c83f8d..00000000000 --- a/cpp/demo/book/map_filesystem/mapfsS.dsp +++ /dev/null @@ -1,171 +0,0 @@ -# Microsoft Developer Studio Project File - Name="mapfsS" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=mapfsS - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "mapfsS.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "mapfsS.mak" CFG="mapfsS - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "mapfsS - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "mapfsS - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "mapfsS - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /WX /GR /GX /O2 /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_UNICODE" /D "NDEBUG" /D "WIN32_LEAN_AND_MEAN" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Freeze.lib Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
-# SUBTRACT LINK32 /debug
-
-!ELSEIF "$(CFG)" == "mapfsS - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /WX /Gm /GR /GX /Zi /Od /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_DEBUG" /D "WIN32_LEAN_AND_MEAN" /Fp"Debug/Filesystem.pch" /YX /FD /GZ /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 Freezed.lib Iced.lib IceUtild.lib setargv.obj /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"server.exe" /pdbtype:sept /libpath:"../../../lib" /FIXED:no
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF
-
-# Begin Target
-
-# Name "mapfsS - Win32 Release"
-# Name "mapfsS - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\Filesystem.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\FilesystemI.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\IdentityNodeMap.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Server.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\Filesystem.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\FilesystemI.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\IdentityNodeMap.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=.\Filesystem.ice
-
-!IF "$(CFG)" == "mapfsS - Win32 Release"
-
-USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
-# Begin Custom Build
-InputPath=.\Filesystem.ice
-
-BuildCmds= \
- ..\..\..\bin\slice2cpp.exe Filesystem.ice
-
-"Filesystem.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"Filesystem.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ELSEIF "$(CFG)" == "mapfsS - Win32 Debug"
-
-USERDEP__FILES="..\..\..\bin\slice2cpp.exe"
-# Begin Custom Build
-InputPath=.\Filesystem.ice
-
-BuildCmds= \
- ..\..\..\bin\slice2cpp.exe Filesystem.ice
-
-"Filesystem.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"Filesystem.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\README
-# End Source File
-# End Target
-# End Project
diff --git a/cpp/demo/book/printer/.depend b/cpp/demo/book/printer/.depend index e81b5d9b21a..e2fbcbf748c 100644 --- a/cpp/demo/book/printer/.depend +++ b/cpp/demo/book/printer/.depend @@ -1,5 +1,5 @@ -Printer$(OBJEXT): Printer.cpp Printer.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h -Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Printer.h -Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Printer.h +Printer$(OBJEXT): Printer.cpp ./Printer.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h +Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Printer.h +Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Printer.h Printer.cpp: Printer.ice Printer.ice: $(SLICE2CPP) $(SLICEPARSERLIB) diff --git a/cpp/demo/book/simple_filesystem/.depend b/cpp/demo/book/simple_filesystem/.depend index 442a3273f74..2623ee93269 100644 --- a/cpp/demo/book/simple_filesystem/.depend +++ b/cpp/demo/book/simple_filesystem/.depend @@ -1,6 +1,6 @@ -Filesystem$(OBJEXT): Filesystem.cpp Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h -Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h -Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h FilesystemI.h Filesystem.h -FilesystemI$(OBJEXT): FilesystemI.cpp $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/Cond.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/IceUtil/Unicode.h FilesystemI.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/Ice/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h Filesystem.h +Filesystem$(OBJEXT): Filesystem.cpp ./Filesystem.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h +Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h +Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./FilesystemI.h ./Filesystem.h +FilesystemI$(OBJEXT): FilesystemI.cpp $(includedir)/IceUtil/IceUtil.h $(includedir)/IceUtil/Config.h $(includedir)/IceUtil/AbstractMutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Exception.h $(includedir)/IceUtil/Time.h $(includedir)/IceUtil/Cache.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/CountDownLatch.h $(includedir)/IceUtil/Cond.h $(includedir)/IceUtil/CtrlCHandler.h $(includedir)/IceUtil/Functional.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/RWRecMutex.h $(includedir)/IceUtil/Thread.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/RecMutex.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/UUID.h $(includedir)/IceUtil/Unicode.h ./FilesystemI.h $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/Ice/Handle.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTable.h $(includedir)/Ice/FactoryTableDef.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/IconvStringConverter.h ./Filesystem.h Filesystem.cpp: Filesystem.ice Filesystem.ice: $(SLICE2CPP) $(SLICEPARSERLIB) diff --git a/cpp/demo/demo.dsw b/cpp/demo/demo.dsw index d82c6c63325..141266d0df9 100755 --- a/cpp/demo/demo.dsw +++ b/cpp/demo/demo.dsw @@ -192,16 +192,10 @@ Package=<4> Project_Dep_Name replicationS
End Project Dependency
Begin Project Dependency
- Project_Dep_Name mapfsC
+ Project_Dep_Name freezefsC
End Project Dependency
Begin Project Dependency
- Project_Dep_Name mapfsS
- End Project Dependency
- Begin Project Dependency
- Project_Dep_Name evictorfsC
- End Project Dependency
- Begin Project Dependency
- Project_Dep_Name evictorfsS
+ Project_Dep_Name freezefsS
End Project Dependency
Begin Project Dependency
Project_Dep_Name lifecyclefsC
@@ -558,34 +552,7 @@ Package=<4> ###############################################################################
-Project: "mapfsC"=".\book\map_filesystem\mapfsC.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name mapfsS
- End Project Dependency
-}}}
-
-###############################################################################
-
-Project: "mapfsS"=".\book\map_filesystem\mapfsS.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "evictorfsC"=".\book\evictor_filesystem\evictorfsC.dsp" - Package Owner=<4>
+Project: "freezefsC"=".\book\freeze_filesystem\freezefsC.dsp" - Package Owner=<4>
Package=<5>
{{{
@@ -594,13 +561,13 @@ Package=<5> Package=<4>
{{{
Begin Project Dependency
- Project_Dep_Name evictorfsS
+ Project_Dep_Name freezefsS
End Project Dependency
}}}
###############################################################################
-Project: "evictorfsS"=".\book\evictor_filesystem\evictorfsS.dsp" - Package Owner=<4>
+Project: "freezefsS"=".\book\freeze_filesystem\freezefsS.dsp" - Package Owner=<4>
Package=<5>
{{{
diff --git a/cppe/include/IceE/.gitignore b/cppe/include/IceE/.gitignore index ade540b55ca..eeff85136d1 100644 --- a/cppe/include/IceE/.gitignore +++ b/cppe/include/IceE/.gitignore @@ -3,13 +3,13 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! BuiltinSequences.h Identity.h -LocatorF.h Locator.h -RouterF.h +LocatorF.h Router.h +RouterF.h BuiltinSequences.h Identity.h -Locator.h LocatorF.h -Router.h +Locator.h RouterF.h +Router.h diff --git a/demoscript/book/evictor_filesystem.py b/demoscript/book/evictor_filesystem.py deleted file mode 100755 index e611cd1869f..00000000000 --- a/demoscript/book/evictor_filesystem.py +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -import sys, signal - -def run(client, server): - print "testing...", - sys.stdout.flush() - client.expect('>') - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('cd x') - client.expect('cd x') - client.expect('`x\': no such directory') - client.expect('\r{1,2}\n>') - - client.sendline('cd') - client.expect('cd') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('mkfile a') - client.expect('mkfile a') - client.expect('\r{1,2}\n>') - - client.sendline('cd a') - client.expect('cd a') - client.expect('`a\': not a directory') - client.expect('\r{1,2}\n>') - - client.sendline('mkdir a') - client.expect('mkdir a') - client.expect('`a\' exists already') - client.expect('\r{1,2}\n>') - - client.sendline('mkdir b') - client.expect('mkdir b') - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b\r{1,2}\n>') - - client.sendline('cd') - client.expect('cd') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b\r{1,2}\n>') - - client.sendline('cd /') - client.expect('cd /') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - j = client.expect(['a \(file\)', 'b \(directory\)']) - assert i != j - client.expect('\r{1,2}\n>') - - client.sendline('lr') - client.expect('lr\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - j = client.expect(['a \(file\)', 'b \(directory\)']) - assert i != j - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b\r{1,2}\n>') - - client.sendline('mkdir c') - client.expect('mkdir c\r{1,2}\n>') - - client.sendline('cd c') - client.expect('cd c\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b/c\r{1,2}\n>') - - client.sendline('cd /') - client.expect('cd /\r{1,2}\n>') - - client.sendline('lr') - client.expect('lr\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - if i == 1: - client.expect('c \(directory\):') - client.expect('a \(file\)') - else: - client.expect('b \(directory\)') - client.expect('c \(directory\):') - - client.sendline('mkfile c') - client.expect('mkfile c\r{1,2}\n>') - - client.sendline('write c blah c') - client.expect('write c blah c\r{1,2}\n>') - - client.sendline('cat c') - client.expect('cat c\r{1,2}\n') - client.expect('blah\r{1,2}\n') - client.expect('c') - client.expect('\r{1,2}\n>') - - client.sendline('rm b') - client.expect('rm b\r{1,2}\n') - client.expect('cannot remove `b\': Cannot destroy non-empty directory') - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('rm *') - client.expect('rm \*') - client.expect('\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n>') - - client.sendline('cd ..') - client.expect('cd \.\.\r{1,2}\n>') - - client.sendline('rm b') - client.expect('rm b\r{1,2}\n>') - - client.sendline('rm a c') - client.expect('rm a c\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n>') - - client.sendline('exit') - client.waitTestSuccess() - - server.kill(signal.SIGINT) - server.waitTestSuccess() - print "ok" diff --git a/demoscript/book/freeze_filesystem.py b/demoscript/book/freeze_filesystem.py new file mode 100755 index 00000000000..fe3032277b2 --- /dev/null +++ b/demoscript/book/freeze_filesystem.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import sys, signal + +def run(client, server): + print "testing...", + sys.stdout.flush() + client.expect('Created Coleridge/Kubla_Khan') + server.expect('added') + client.expect('Contents of filesystem:') + server.expect('added') + server.expect('added') + server.expect('locate') + server.expect('locate') + client.expect('Down to a sunless sea') + server.expect('locate') + i = client.expect(['Destroying Coleridge', 'Destroying README']) + server.expect('removed object') + j = client.expect(['Destroying Coleridge', 'Destroying README']) + assert i != j + server.expect('removed object') + client.waitTestSuccess() + print "ok" + + server.kill(signal.SIGINT) + server.waitTestSuccess() diff --git a/demoscript/book/map_filesystem.py b/demoscript/book/map_filesystem.py deleted file mode 100755 index e611cd1869f..00000000000 --- a/demoscript/book/map_filesystem.py +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -import sys, signal - -def run(client, server): - print "testing...", - sys.stdout.flush() - client.expect('>') - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('cd x') - client.expect('cd x') - client.expect('`x\': no such directory') - client.expect('\r{1,2}\n>') - - client.sendline('cd') - client.expect('cd') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('mkfile a') - client.expect('mkfile a') - client.expect('\r{1,2}\n>') - - client.sendline('cd a') - client.expect('cd a') - client.expect('`a\': not a directory') - client.expect('\r{1,2}\n>') - - client.sendline('mkdir a') - client.expect('mkdir a') - client.expect('`a\' exists already') - client.expect('\r{1,2}\n>') - - client.sendline('mkdir b') - client.expect('mkdir b') - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b\r{1,2}\n>') - - client.sendline('cd') - client.expect('cd') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b\r{1,2}\n>') - - client.sendline('cd /') - client.expect('cd /') - client.expect('\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - j = client.expect(['a \(file\)', 'b \(directory\)']) - assert i != j - client.expect('\r{1,2}\n>') - - client.sendline('lr') - client.expect('lr\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - j = client.expect(['a \(file\)', 'b \(directory\)']) - assert i != j - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b\r{1,2}\n>') - - client.sendline('mkdir c') - client.expect('mkdir c\r{1,2}\n>') - - client.sendline('cd c') - client.expect('cd c\r{1,2}\n>') - - client.sendline('pwd') - client.expect('pwd') - client.expect('/b/c\r{1,2}\n>') - - client.sendline('cd /') - client.expect('cd /\r{1,2}\n>') - - client.sendline('lr') - client.expect('lr\r{1,2}\n') - i = client.expect(['a \(file\)', 'b \(directory\)']) - if i == 1: - client.expect('c \(directory\):') - client.expect('a \(file\)') - else: - client.expect('b \(directory\)') - client.expect('c \(directory\):') - - client.sendline('mkfile c') - client.expect('mkfile c\r{1,2}\n>') - - client.sendline('write c blah c') - client.expect('write c blah c\r{1,2}\n>') - - client.sendline('cat c') - client.expect('cat c\r{1,2}\n') - client.expect('blah\r{1,2}\n') - client.expect('c') - client.expect('\r{1,2}\n>') - - client.sendline('rm b') - client.expect('rm b\r{1,2}\n') - client.expect('cannot remove `b\': Cannot destroy non-empty directory') - client.expect('\r{1,2}\n>') - - client.sendline('cd b') - client.expect('cd b') - client.expect('\r{1,2}\n>') - - client.sendline('rm *') - client.expect('rm \*') - client.expect('\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n>') - - client.sendline('cd ..') - client.expect('cd \.\.\r{1,2}\n>') - - client.sendline('rm b') - client.expect('rm b\r{1,2}\n>') - - client.sendline('rm a c') - client.expect('rm a c\r{1,2}\n>') - - client.sendline('ls') - client.expect('ls\r{1,2}\n>') - - client.sendline('exit') - client.waitTestSuccess() - - server.kill(signal.SIGINT) - server.waitTestSuccess() - print "ok" diff --git a/java/allDemos.py b/java/allDemos.py index ff6722e2a41..fbe050a51c4 100755 --- a/java/allDemos.py +++ b/java/allDemos.py @@ -46,8 +46,7 @@ demos = [ "Freeze/library", "Freeze/transform", "Freeze/casino", - "book/map_filesystem", - "book/evictor_filesystem", + "book/freeze_filesystem", "book/simple_filesystem", "book/printer", "book/lifecycle", diff --git a/java/demo/book/README b/java/demo/book/README index 5876d2c345e..bbace203f6d 100644 --- a/java/demo/book/README +++ b/java/demo/book/README @@ -3,8 +3,8 @@ Demos in this directory: - evictor This is the source code for the evictor implementation described in - the Ice Run Time chapter. You can copy and modify this code to suit - your needs. + the Ice Run Time chapter. You can copy and modify this code to + suit your needs. - printer @@ -20,12 +20,7 @@ Demos in this directory: An implementation of the file system that supports life cycle operations. -- map_filesystem +- freeze_filesystem An implementation of the persistent version of the file system - based on Freeze maps as described in the Freeze chapter. - -- evictor_filesystem - - An implementation of the persistent version of the file system - based on a background-save evictor as described in the Freeze chapter. + example described in the Freeze chapter. diff --git a/java/demo/book/build.xml b/java/demo/book/build.xml index e44df524923..aa71c1ae517 100644 --- a/java/demo/book/build.xml +++ b/java/demo/book/build.xml @@ -14,8 +14,7 @@ <target name="all"> <ant dir="printer"/> <ant dir="simple_filesystem"/> - <ant dir="map_filesystem"/> - <ant dir="evictor_filesystem"/> + <ant dir="freeze_filesystem"/> <ant dir="lifecycle"/> </target> @@ -23,8 +22,8 @@ <ant dir="printer" target="clean"/> <ant dir="simple_filesystem" target="clean"/> <ant dir="lifecycle" target="clean"/> - <ant dir="map_filesystem" target="clean"/> - <ant dir="evictor_filesystem" target="clean"/> + <ant dir="freeze_filesystem" target="clean"/> + <ant dir="lifecycle" target="clean"/> </target> </project> diff --git a/java/demo/book/evictor_filesystem/Client.java b/java/demo/book/evictor_filesystem/Client.java deleted file mode 100644 index 8599d43e81d..00000000000 --- a/java/demo/book/evictor_filesystem/Client.java +++ /dev/null @@ -1,56 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Filesystem.*; - -public class Client extends Ice.Application -{ - public int - run(String[] args) - { - // Terminate cleanly on receipt of a signal. - // - shutdownOnInterrupt(); - - // Create a proxy for the root directory - // - Ice.ObjectPrx base = communicator().stringToProxy("RootDir:default -p 10000"); - if(base == null) - { - throw new Error("Could not create proxy"); - } - - // Down-cast the proxy to a Directory proxy. - // - DirectoryPrx rootDir = DirectoryPrxHelper.checkedCast(base); - if(rootDir == null) - { - throw new Error("Invalid proxy"); - } - - Parser p = new Parser(rootDir); - return p.parse(); - } - - static public void - main(String[] args) - { - Client app = new Client(); - app.main("demo.book.lifecycle.Client", args); - } - - static private class Error extends RuntimeException - { - public Error(String msg) - { - super(msg); - } - } - -} diff --git a/java/demo/book/evictor_filesystem/Grammar.java b/java/demo/book/evictor_filesystem/Grammar.java deleted file mode 100644 index 92da79a56d0..00000000000 --- a/java/demo/book/evictor_filesystem/Grammar.java +++ /dev/null @@ -1,202 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Grammar -{ - Grammar(Parser p) - { - _parser = p; - _scanner = new Scanner(_parser); - } - - void - parse() - { - while(true) - { - try - { - _token = _scanner.nextToken(); - if(_token == null) - { - return; - } - else if(_token.type == Token.TOK_SEMI) - { - // Continue - } - else if(_token.type == Token.TOK_HELP) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.usage(); - } - else if(_token.type == Token.TOK_EXIT) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - return; - } - else if(_token.type == Token.TOK_LIST) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.list(false); - } - else if(_token.type == Token.TOK_LIST_RECURSIVE) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.list(true); - } - else if(_token.type == Token.TOK_CREATE_FILE) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: mkfile FILE [FILE...]"); - } - _parser.createFile(s); - } - else if(_token.type == Token.TOK_CREATE_DIR) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: mkdir DIR [DIR...]"); - } - _parser.createDir(s); - } - else if(_token.type == Token.TOK_PWD) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.pwd(); - } - else if(_token.type == Token.TOK_CD) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() > 1) - { - throw new ParseError("usage: cd [DIR]"); - } - else if(s.size() == 0) - { - _parser.cd("/"); - } - else - { - _parser.cd((String)s.get(0)); - } - } - else if(_token.type == Token.TOK_CAT) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() != 1) - { - throw new ParseError("usage: cat FILE"); - } - _parser.cat((String)s.get(0)); - } - else if(_token.type == Token.TOK_WRITE) - { - java.util.LinkedList<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: write FILE [STRING...]"); - } - _parser.write(s); - } - else if(_token.type == Token.TOK_RM) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: rm NAME [NAME...]"); - } - _parser.destroy(s); - } - else - { - _parser.error("parse error"); - } - } - catch(ParseError e) - { - _parser.error("Parse error: " + e.getMessage()); - } - } - } - - private java.util.LinkedList<String> - strings() - { - java.util.LinkedList<String> l = new java.util.LinkedList<String>(); - while(true) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_STRING) - { - return l; - } - l.add(_token.value); - } - } - - static private class ParseError extends RuntimeException - { - ParseError(String msg) - { - super(msg); - } - } - - private Parser _parser; - private Scanner _scanner; - private Token _token; -} diff --git a/java/demo/book/evictor_filesystem/Parser.java b/java/demo/book/evictor_filesystem/Parser.java deleted file mode 100644 index 94e4af53654..00000000000 --- a/java/demo/book/evictor_filesystem/Parser.java +++ /dev/null @@ -1,361 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Filesystem.*; - -class Parser -{ - Parser(DirectoryPrx root) - { - _dirs = new java.util.LinkedList<DirectoryPrx>(); - _dirs.addFirst(root); - } - - void - usage() - { - System.err.print( - "help Print this message.\n" + - "pwd Print current directory (/ = root).\n" + - "cd [DIR] Change directory (/ or empty = root).\n" + - "ls List current directory.\n" + - "lr Recursively list current directory.\n" + - "mkdir DIR [DIR...] Create directories DIR in current directory.\n" + - "mkfile FILE [FILE...] Create files FILE in current directory.\n" + - "rm NAME [NAME...] Delete directory or file NAME (rm * to delete all).\n" + - "cat FILE List the contents of FILE.\n" + - "write FILE [STRING...] Write STRING to FILE.\n" + - "exit, quit Exit this program.\n"); - } - - void - list(boolean recursive) - { - try - { - list(_dirs.get(0), recursive, 0); - } - catch(Ice.LocalException ex) - { - error(ex.toString()); - } - } - - void - list(Filesystem.DirectoryPrx dir, boolean recursive, int depth) - { - StringBuffer b = new StringBuffer(); - for(int i = 0; i < depth; ++i) - { - b.append('\t'); - } - String indent = b.toString(); - - NodeDesc[] contents = dir.list(); - - for(int i = 0; i < contents.length; ++i) - { - DirectoryPrx d - = contents[i].type == NodeType.DirType - ? DirectoryPrxHelper.uncheckedCast(contents[i].proxy) - : null; - System.out.print(indent + contents[i].name + (d != null ? " (directory)" : " (file)")); - if(d != null && recursive) - { - System.out.println(":"); - list(d, true, ++depth); - } - else - { - System.out.println(); - } - } - } - - void - createFile(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("..")) - { - System.out.println("Cannot create a file named `..'"); - continue; - } - - try - { - dir.createFile(name); - } - catch(NameInUse ex) - { - System.out.println("`" + name + "' exists already"); - } - } - } - - void - createDir(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("..")) - { - System.out.println("Cannot create a directory named `..'"); - continue; - } - - try - { - dir.createDirectory(name); - } - catch(NameInUse ex) - { - System.out.println("`" + name + "' exists already"); - } - } - } - - void - pwd() - { - if(_dirs.size() == 1) - { - System.out.print("/"); - } - else - { - java.util.ListIterator<DirectoryPrx> i = _dirs.listIterator(_dirs.size()); - i.previous(); - while(i.hasPrevious()) - { - System.out.print("/" + i.previous().name()); - } - } - System.out.println(); - } - - void - cd(String name) - { - if(name.equals("/")) - { - while(_dirs.size() > 1) - { - _dirs.removeFirst(); - } - return; - } - - if(name.equals("..")) - { - if(_dirs.size() > 1) - { - _dirs.removeFirst(); - } - return; - } - - DirectoryPrx dir = _dirs.getFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such directory"); - return; - } - if(d.type == NodeType.FileType) - { - System.out.println("`" + name + "': not a directory"); - return; - } - _dirs.addFirst(DirectoryPrxHelper.uncheckedCast(d.proxy)); - } - - void - cat(String name) - { - DirectoryPrx dir = _dirs.getFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file"); - return; - } - if(d.type == NodeType.DirType) - { - System.out.println("`" + name + "': not a file"); - return; - } - FilePrx f = FilePrxHelper.uncheckedCast(d.proxy); - String[] l = f.read(); - for(int i = 0; i < l.length; ++i) - { - System.out.println(l[i]); - } - } - - void - write(java.util.LinkedList<String> args) - { - DirectoryPrx dir = _dirs.getFirst(); - String name = args.getFirst(); - args.removeFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file"); - return; - } - if(d.type == NodeType.DirType) - { - System.out.println("`" + name + "': not a file"); - return; - } - FilePrx f = FilePrxHelper.uncheckedCast(d.proxy); - - String[] l = new String[args.size()]; - java.util.Iterator<String> i = args.iterator(); - for(int j = 0; j < args.size(); ++j) - { - l[j] = i.next(); - } - try - { - f.write(l); - } - catch(GenericError ex) - { - System.out.println("`" + name + "': cannot write to file: " + ex.reason); - } - } - - void - destroy(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("*")) - { - NodeDesc[] nodes = dir.list(); - for(int j = 0; j < nodes.length; ++j) - { - try - { - nodes[j].proxy.destroy(); - } - catch(PermissionDenied ex) - { - System.out.println("cannot remove `" + nodes[j].name + "': " + ex.reason); - } - } - return; - } - else - { - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file or directory"); - return; - } - try - { - d.proxy.destroy(); - } - catch(PermissionDenied ex) - { - System.out.println("cannot remove `" + name + "': " + ex.reason); - } - } - } - - } - - void - error(String s) - { - System.err.println("error: " + s); - } - - void - warning(String s) - { - System.err.println("warning: " + s); - } - - String - getInput() - { - System.out.print("> "); - System.out.flush(); - - try - { - return _in.readLine(); - } - catch(java.io.IOException e) - { - return null; - } - } - - int - parse() - { - _in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); - - Grammar g = new Grammar(this); - g.parse(); - - return 0; - } - - int - parse(java.io.BufferedReader in) - { - _in = in; - - Grammar g = new Grammar(this); - g.parse(); - - return 0; - } - - private java.util.LinkedList<DirectoryPrx> _dirs; - - private java.io.BufferedReader _in; -} diff --git a/java/demo/book/evictor_filesystem/README b/java/demo/book/evictor_filesystem/README deleted file mode 100644 index 7abae01bca6..00000000000 --- a/java/demo/book/evictor_filesystem/README +++ /dev/null @@ -1,13 +0,0 @@ -This demo presents an implementation of the filesystem -application based on a background-save evictor, as discussed in -the Freeze chapter of the Ice manual. - -To run it, start the server in a window: - -$ java Server - -Then run the client in a separate window: - -$ java Client - -Type "help" at the client prompt to see a list of commands. diff --git a/java/demo/book/evictor_filesystem/Scanner.java b/java/demo/book/evictor_filesystem/Scanner.java deleted file mode 100644 index d318ed291f0..00000000000 --- a/java/demo/book/evictor_filesystem/Scanner.java +++ /dev/null @@ -1,283 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Scanner -{ - Scanner(Parser p) - { - _parser = p; - } - - Token - nextToken() - { - String s = next(); - if(s == null) - { - return null; - } - - if(s.equals(";")) - { - return new Token(Token.TOK_SEMI); - } - else if(s.equals("help")) - { - return new Token(Token.TOK_HELP); - } - else if(s.equals("exit") || s.equals("quit")) - { - return new Token(Token.TOK_EXIT); - } - else if(s.equals("ls")) - { - return new Token(Token.TOK_LIST); - } - else if(s.equals("lr")) - { - return new Token(Token.TOK_LIST_RECURSIVE); - } - else if(s.equals("mkfile")) - { - return new Token(Token.TOK_CREATE_FILE); - } - else if(s.equals("mkdir")) - { - return new Token(Token.TOK_CREATE_DIR); - } - else if(s.equals("pwd")) - { - return new Token(Token.TOK_PWD); - } - else if(s.equals("cd")) - { - return new Token(Token.TOK_CD); - } - else if(s.equals("cat")) - { - return new Token(Token.TOK_CAT); - } - else if(s.equals("write")) - { - return new Token(Token.TOK_WRITE); - } - else if(s.equals("rm")) - { - return new Token(Token.TOK_RM); - } - else - { - return new Token(Token.TOK_STRING, s); - } - } - - static private class EndOfInput extends Exception - { - } - - private char - get() - throws EndOfInput - { - // - // If there is an character in the unget buffer, return it. - // - if(_unget) - { - _unget = false; - return _ungetChar; - } - - // - // No current buffer? - // - if(_buf == null) - { - _buf = _parser.getInput(); - _pos = 0; - if(_buf == null) - { - throw new EndOfInput(); - } - } - - // - // At the end-of-buffer? - // - while(_pos >= _buf.length()) - { - _buf = null; - _pos = 0; - return '\n'; - } - - return _buf.charAt(_pos++); - } - - // - // unget only works with one character. - // - private void - unget(char c) - { - assert(!_unget); - _unget = true; - _ungetChar = c; - } - - private String - next() - { - // - // Eat any whitespace. - // - char c; - try - { - do - { - c = get(); - } - while(Character.isWhitespace(c) && c != '\n'); - } - catch(EndOfInput ignore) - { - return null; - } - - StringBuffer buf = new StringBuffer(); - - if(c == ';' || c == '\n') - { - buf.append(';'); - } - else if(c == '\'') - { - try - { - while(true) - { - c = get(); - if(c == '\'') - { - break; - } - else - { - buf.append(c); - } - } - } - catch(EndOfInput e) - { - _parser.warning("EOF in string"); - } - } - else if(c == '\"') - { - try - { - while(true) - { - c = get(); - if(c == '\"') - { - break; - } - else if(c == '\\') - { - try - { - char next = get(); - switch(next) - { - case '\\': - case '"': - { - buf.append(next); - break; - } - - case 'n': - { - buf.append('\n'); - break; - } - - case 'r': - { - buf.append('\r'); - break; - } - - case 't': - { - buf.append('\t'); - break; - } - - case 'f': - { - buf.append('\f'); - break; - } - - default: - { - buf.append(c); - unget(next); - } - } - } - catch(EndOfInput e) - { - buf.append(c); - } - } - else - { - buf.append(c); - } - } - } - catch(EndOfInput e) - { - _parser.warning("EOF in string"); - } - } - else - { - // - // Otherwise it's a string. - // - try - { - do - { - buf.append(c); - c = get(); - } - while(!Character.isWhitespace(c) && c != ';' && c != '\n'); - - unget(c); - } - catch(EndOfInput ignore) - { - } - } - - return buf.toString(); - } - - private Parser _parser; - private boolean _unget = false; - private char _ungetChar; - private String _buf = null; - private int _pos; -} diff --git a/java/demo/book/evictor_filesystem/Token.java b/java/demo/book/evictor_filesystem/Token.java deleted file mode 100644 index 7fe92e242e0..00000000000 --- a/java/demo/book/evictor_filesystem/Token.java +++ /dev/null @@ -1,40 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Token -{ - public static final int TOK_HELP = 0; - public static final int TOK_EXIT = 1; - public static final int TOK_SEMI = 2; - public static final int TOK_LIST = 3; - public static final int TOK_LIST_RECURSIVE = 4; - public static final int TOK_CREATE_FILE = 5; - public static final int TOK_CREATE_DIR = 6; - public static final int TOK_PWD = 7; - public static final int TOK_CD = 8; - public static final int TOK_CAT = 9; - public static final int TOK_WRITE = 10; - public static final int TOK_RM = 11; - public static final int TOK_STRING = 12; - - int type; - String value; - - Token(int t) - { - type = t; - value = null; - } - - Token(int t, String v) - { - type = t; - value = v; - } -} diff --git a/java/demo/book/evictor_filesystem/config.client b/java/demo/book/evictor_filesystem/config.client deleted file mode 100644 index 6f0ba50b98f..00000000000 --- a/java/demo/book/evictor_filesystem/config.client +++ /dev/null @@ -1,28 +0,0 @@ -# -# The client reads this property to create the reference to the root -# "directory" object in the server. -# -RootDir.Proxy=RootDir:default -p 10000 - -# -# Warn about connection exceptions -# -Ice.Warn.Connections=1 - -# -# Network Tracing -# -# 0 = no network tracing -# 1 = trace connection establishment and closure -# 2 = like 1, but more detailed -# 3 = like 2, but also trace data transfer -# -#Ice.Trace.Network=1 - -# -# Protocol Tracing -# -# 0 = no protocol tracing -# 1 = trace protocol messages -# -#Ice.Trace.Protocol=1 diff --git a/java/demo/book/evictor_filesystem/config.server b/java/demo/book/evictor_filesystem/config.server deleted file mode 100644 index 8ee5723e944..00000000000 --- a/java/demo/book/evictor_filesystem/config.server +++ /dev/null @@ -1,49 +0,0 @@ -# -# Configure the server endpoints. -# -FreezeFilesystem.Endpoints=default -p 10000 - -# -# Freeze Map Tracing. -# -# 0 = No map activity trace (default). -# 1 = Trace database open and close. -# 2 = Also trace iterator and transaction operations, and reference -# counting of the underlying database. -# -Freeze.Trace.Map=1 - -# -# Freeze Evictor Tracing. -# -# 0 = No evictor activity trace (default). -# 1 = Trace Ice object and facet creation and destruction, facet -# streaming time, facet saving time, object eviction (every 50 -# objects) and evictor deactivation. -# 2 = Also trace object lookups, and all object evictions. -# 3 = Also trace object retrieval from the database. -# -Freeze.Trace.Evictor=2 - -# -# Warn about connection exceptions -# -Ice.Warn.Connections=1 - -# -# Network Tracing -# -# 0 = no network tracing -# 1 = trace connection establishment and closure -# 2 = like 1, but more detailed -# 3 = like 2, but also trace data transfer -# -#Ice.Trace.Network=1 - -# -# Protocol Tracing -# -# 0 = no protocol tracing -# 1 = trace protocol messages -# -#Ice.Trace.Protocol=1 diff --git a/java/demo/book/evictor_filesystem/db/.gitignore b/java/demo/book/evictor_filesystem/db/.gitignore deleted file mode 100644 index 39af5887579..00000000000 --- a/java/demo/book/evictor_filesystem/db/.gitignore +++ /dev/null @@ -1 +0,0 @@ -# Dummy file, so that git retains this otherwise empty directory. diff --git a/java/demo/book/evictor_filesystem/expect.py b/java/demo/book/evictor_filesystem/expect.py deleted file mode 100755 index 60d3c0c8e9d..00000000000 --- a/java/demo/book/evictor_filesystem/expect.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -import sys, os - -try: - import demoscript -except ImportError: - for toplevel in [".", "..", "../..", "../../..", "../../../.."]: - toplevel = os.path.normpath(toplevel) - if os.path.exists(os.path.join(toplevel, "demoscript")): - break - else: - raise "can't find toplevel directory!" - sys.path.append(os.path.join(toplevel)) - import demoscript - -import demoscript.Util -demoscript.Util.defaultLanguage = "Java" -import demoscript.book.evictor_filesystem - -print "cleaning databases...", -sys.stdout.flush() -demoscript.Util.cleanDbDir("db") -print "ok" - -server = demoscript.Util.spawn('java Server --Ice.PrintAdapterReady') -server.expect('.* ready') -client = demoscript.Util.spawn('java Client') - -demoscript.book.evictor_filesystem.run(client, server) diff --git a/java/demo/book/evictor_filesystem/.gitignore b/java/demo/book/freeze_filesystem/.gitignore index 9c39416c539..9c39416c539 100644 --- a/java/demo/book/evictor_filesystem/.gitignore +++ b/java/demo/book/freeze_filesystem/.gitignore diff --git a/java/demo/book/freeze_filesystem/Client.java b/java/demo/book/freeze_filesystem/Client.java new file mode 100644 index 00000000000..01aac52f880 --- /dev/null +++ b/java/demo/book/freeze_filesystem/Client.java @@ -0,0 +1,164 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +import Filesystem.*; + +public class Client extends Ice.Application +{ + // Recursively print the contents of directory "dir" in tree fashion. + // For files, show the contents of each file. The "depth" + // parameter is the current nesting level (for indentation). + + static void + listRecursive(DirectoryPrx dir, int depth) + { + char[] indentCh = new char[++depth]; + java.util.Arrays.fill(indentCh, '\t'); + String indent = new String(indentCh); + + NodeDesc[] contents = dir.list(); + + for (int i = 0; i < contents.length; ++i) { + DirectoryPrx subdir = DirectoryPrxHelper.checkedCast(contents[i].proxy); + FilePrx file = FilePrxHelper.uncheckedCast(contents[i].proxy); + System.out.println(indent + contents[i].name + (subdir != null ? " (directory):" : " (file):")); + if (subdir != null) { + listRecursive(subdir, depth); + } else { + String[] text = file.read(); + for (int j = 0; j < text.length; ++j) + System.out.println(indent + "\t" + text[j]); + } + } + } + + class ShutdownHook extends Thread + { + public void + run() + { + try + { + communicator().destroy(); + } + catch(Ice.LocalException ex) + { + ex.printStackTrace(); + } + } + } + + public int + run(String[] args) + { + // + // Since this is an interactive demo we want to clear the + // Application installed interrupt callback and install our + // own shutdown hook. + // + setInterruptHook(new ShutdownHook()); + + // + // Create a proxy for the root directory. + // + DirectoryPrx rootDir = DirectoryPrxHelper.checkedCast(communicator().propertyToProxy("RootDir.Proxy")); + if(rootDir == null) + { + System.err.println("Client: invalid proxy"); + return 1; + } + + try + { + // + // Create a file called "README" in the root directory. + // + try + { + FilePrx readme = rootDir.createFile("README"); + String[] text = new String[1]; + text[0] = "This file system contains a collection of poetry."; + readme.write(text); + System.out.println("Created README."); + } + catch(NameInUse ex) + { + // + // Ignore - file already exists. + // + } + + // + // Create a directory called "Coleridge" in the root directory. + // + DirectoryPrx coleridge = null; + try + { + coleridge = rootDir.createDirectory("Coleridge"); + System.out.println("Created Coleridge."); + } + catch(NameInUse ex) + { + NodeDesc desc = rootDir.find("Coleridge"); + coleridge = DirectoryPrxHelper.checkedCast(desc.proxy); + assert(coleridge != null); + } + + // + // Create a file called "Kubla_Khan" in the Coleridge directory. + // + try + { + FilePrx file = coleridge.createFile("Kubla_Khan"); + String[] text = new String[5]; + text[0] = "In Xanadu did Kubla Khan"; + text[1] = "A stately pleasure-dome decree:"; + text[2] = "Where Alph, the sacred river, ran"; + text[3] = "Through caverns measureless to man"; + text[4] = "Down to a sunless sea."; + file.write(text); + System.out.println("Created Coleridge/Kubla_Khan."); + } + catch(NameInUse ex) + { + // + // Ignore - file already exists. + // + } + + System.out.println("Contents of filesystem:"); + listRecursive(rootDir, 0); + + // + // Destroy the filesystem. + // + NodeDesc[] contents = rootDir.list(); + for(int i = 0; i < contents.length; ++i) + { + NodeDesc d = contents[i]; + System.out.println("Destroying " + d.name); + d.proxy.destroy(); + } + } + catch(Ice.UserException ex) + { + ex.printStackTrace(); + } + + return 0; + } + + public static void + main(String[] args) + { + Client app = new Client(); + int status = app.main("Client", args, "config.client"); + System.exit(status); + } +} diff --git a/java/demo/book/evictor_filesystem/DirectoryI.java b/java/demo/book/freeze_filesystem/DirectoryI.java index 5da25ce6b0c..d8fe5a312a9 100644 --- a/java/demo/book/evictor_filesystem/DirectoryI.java +++ b/java/demo/book/freeze_filesystem/DirectoryI.java @@ -42,7 +42,7 @@ public final class DirectoryI extends PersistentDirectory { if(parent == null) { - throw new PermissionDenied("Cannot remove root directory"); + throw new PermissionDenied("cannot remove root directory"); } java.util.Map children = null; @@ -54,11 +54,6 @@ public final class DirectoryI extends PersistentDirectory throw new Ice.ObjectNotExistException(current.id, current.facet, current.operation); } - if(!nodes.isEmpty()) - { - throw new PermissionDenied("Cannot destroy non-empty directory"); - } - children = (java.util.Map)((java.util.HashMap)nodes).clone(); _destroyed = true; } diff --git a/java/demo/book/evictor_filesystem/FileI.java b/java/demo/book/freeze_filesystem/FileI.java index 09db1e60320..09db1e60320 100644 --- a/java/demo/book/evictor_filesystem/FileI.java +++ b/java/demo/book/freeze_filesystem/FileI.java diff --git a/java/demo/book/evictor_filesystem/Filesystem.ice b/java/demo/book/freeze_filesystem/Filesystem.ice index b8b5b38d351..b8b5b38d351 100644 --- a/java/demo/book/evictor_filesystem/Filesystem.ice +++ b/java/demo/book/freeze_filesystem/Filesystem.ice diff --git a/java/demo/book/evictor_filesystem/NodeFactory.java b/java/demo/book/freeze_filesystem/NodeFactory.java index 74982387cac..74982387cac 100644 --- a/java/demo/book/evictor_filesystem/NodeFactory.java +++ b/java/demo/book/freeze_filesystem/NodeFactory.java diff --git a/java/demo/book/evictor_filesystem/NodeInitializer.java b/java/demo/book/freeze_filesystem/NodeInitializer.java index b1304afd16e..b1304afd16e 100644 --- a/java/demo/book/evictor_filesystem/NodeInitializer.java +++ b/java/demo/book/freeze_filesystem/NodeInitializer.java diff --git a/java/demo/book/evictor_filesystem/PersistentFilesystem.ice b/java/demo/book/freeze_filesystem/PersistentFilesystem.ice index 2895d2f5d14..2895d2f5d14 100644 --- a/java/demo/book/evictor_filesystem/PersistentFilesystem.ice +++ b/java/demo/book/freeze_filesystem/PersistentFilesystem.ice diff --git a/java/demo/book/freeze_filesystem/README b/java/demo/book/freeze_filesystem/README new file mode 100644 index 00000000000..32f3381a068 --- /dev/null +++ b/java/demo/book/freeze_filesystem/README @@ -0,0 +1,10 @@ +This demo presents an alternate implementation of the filesystem +application, as discussed in the Freeze chapter of the Ice manual. + +To run it, start the server in a window: + +$ java Server + +Then run the client in a separate window: + +$ java Client diff --git a/java/demo/book/evictor_filesystem/Server.java b/java/demo/book/freeze_filesystem/Server.java index 6e66f3ccb3f..6e66f3ccb3f 100644 --- a/java/demo/book/evictor_filesystem/Server.java +++ b/java/demo/book/freeze_filesystem/Server.java diff --git a/java/demo/book/evictor_filesystem/build.xml b/java/demo/book/freeze_filesystem/build.xml index 01d9c2a2a9e..b2c9993bb02 100644 --- a/java/demo/book/evictor_filesystem/build.xml +++ b/java/demo/book/freeze_filesystem/build.xml @@ -9,7 +9,7 @@ ********************************************************************** --> -<project name="demo_book_evictor_filesystem" default="all" basedir="."> +<project name="demo_book_freeze_filesystem" default="all" basedir="."> <!-- set global properties for this build --> <property name="top.dir" value="../../.."/> diff --git a/cpp/demo/book/map_filesystem/config.client b/java/demo/book/freeze_filesystem/config.client index 6f0ba50b98f..6f0ba50b98f 100644 --- a/cpp/demo/book/map_filesystem/config.client +++ b/java/demo/book/freeze_filesystem/config.client diff --git a/cpp/demo/book/map_filesystem/config.server b/java/demo/book/freeze_filesystem/config.server index 8ee5723e944..8ee5723e944 100644 --- a/cpp/demo/book/map_filesystem/config.server +++ b/java/demo/book/freeze_filesystem/config.server diff --git a/cpp/demo/book/map_filesystem/db/.gitignore b/java/demo/book/freeze_filesystem/db/.gitignore index 39af5887579..39af5887579 100644 --- a/cpp/demo/book/map_filesystem/db/.gitignore +++ b/java/demo/book/freeze_filesystem/db/.gitignore diff --git a/java/demo/book/map_filesystem/expect.py b/java/demo/book/freeze_filesystem/expect.py index 3504eff9099..555fc67854a 100755 --- a/java/demo/book/map_filesystem/expect.py +++ b/java/demo/book/freeze_filesystem/expect.py @@ -24,7 +24,7 @@ except ImportError: import demoscript.Util demoscript.Util.defaultLanguage = "Java" -import demoscript.book.map_filesystem +import demoscript.book.freeze_filesystem print "cleaning databases...", sys.stdout.flush() @@ -35,4 +35,4 @@ server = demoscript.Util.spawn('java Server --Ice.PrintAdapterReady') server.expect('.* ready') client = demoscript.Util.spawn('java Client') -demoscript.book.map_filesystem.run(client, server) +demoscript.book.freeze_filesystem.run(client, server) diff --git a/java/demo/book/map_filesystem/.gitignore b/java/demo/book/map_filesystem/.gitignore deleted file mode 100644 index 9c39416c539..00000000000 --- a/java/demo/book/map_filesystem/.gitignore +++ /dev/null @@ -1 +0,0 @@ -db/* diff --git a/java/demo/book/map_filesystem/Client.java b/java/demo/book/map_filesystem/Client.java deleted file mode 100644 index 8599d43e81d..00000000000 --- a/java/demo/book/map_filesystem/Client.java +++ /dev/null @@ -1,56 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Filesystem.*; - -public class Client extends Ice.Application -{ - public int - run(String[] args) - { - // Terminate cleanly on receipt of a signal. - // - shutdownOnInterrupt(); - - // Create a proxy for the root directory - // - Ice.ObjectPrx base = communicator().stringToProxy("RootDir:default -p 10000"); - if(base == null) - { - throw new Error("Could not create proxy"); - } - - // Down-cast the proxy to a Directory proxy. - // - DirectoryPrx rootDir = DirectoryPrxHelper.checkedCast(base); - if(rootDir == null) - { - throw new Error("Invalid proxy"); - } - - Parser p = new Parser(rootDir); - return p.parse(); - } - - static public void - main(String[] args) - { - Client app = new Client(); - app.main("demo.book.lifecycle.Client", args); - } - - static private class Error extends RuntimeException - { - public Error(String msg) - { - super(msg); - } - } - -} diff --git a/java/demo/book/map_filesystem/Filesystem.ice b/java/demo/book/map_filesystem/Filesystem.ice deleted file mode 100644 index fea080b38dd..00000000000 --- a/java/demo/book/map_filesystem/Filesystem.ice +++ /dev/null @@ -1,69 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -module Filesystem -{ - exception GenericError - { - string reason; - }; - exception PermissionDenied extends GenericError {}; - exception NameInUse extends GenericError {}; - exception NoSuchName extends GenericError {}; - - interface Node - { - idempotent string name(); - void destroy() throws PermissionDenied; - }; - - sequence<string> Lines; - - interface File extends Node - { - idempotent Lines read(); - idempotent void write(Lines text) throws GenericError; - }; - - enum NodeType { DirType, FileType }; - - struct NodeDesc - { - string name; - NodeType type; - Node* proxy; - }; - - sequence<NodeDesc> NodeDescSeq; - - interface Directory extends Node - { - idempotent NodeDescSeq list(); - idempotent NodeDesc find(string name) throws NoSuchName; - File* createFile(string name) throws NameInUse; - Directory* createDirectory(string name) throws NameInUse; - }; - - class PersistentNode - { - string name; - }; - - class PersistentFile extends PersistentNode - { - Lines text; - }; - - dictionary<string, NodeDesc> NodeDict; - - class PersistentDirectory extends PersistentNode - { - NodeDict nodes; - }; -}; diff --git a/java/demo/book/map_filesystem/FilesystemI/DirectoryI.java b/java/demo/book/map_filesystem/FilesystemI/DirectoryI.java deleted file mode 100644 index 90b298d64cf..00000000000 --- a/java/demo/book/map_filesystem/FilesystemI/DirectoryI.java +++ /dev/null @@ -1,332 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package FilesystemI; - -import Ice.*; -import Filesystem.*; - -public class DirectoryI extends _DirectoryDisp implements NodeI, _DirectoryOperations -{ - - // Slice name() operation. - - public synchronized String - name(Current c) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - return _dir.name; - } - - // Return the object identity for this node. - - public Identity - id() - { - return _id; - } - - // Slice list() operation. - - public NodeDesc[] - list(Current c) - { - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - } - - synchronized(_lcMutex) - { - reap(); - - NodeDesc[] result = new NodeDesc[_dir.nodes.size()]; - java.util.Iterator<java.util.Map.Entry<String, NodeDesc> > pos = _dir.nodes.entrySet().iterator(); - for(int i = 0; i < _dir.nodes.size(); ++i) - { - java.util.Map.Entry<String, NodeDesc> e = pos.next(); - result[i] = e.getValue(); - } - return result; - } - } - - // Slice find() operation. - - public NodeDesc - find(String name, Current c) throws NoSuchName - { - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - } - - synchronized(_lcMutex) - { - reap(); - - NodeDesc nd = _dir.nodes.get(name); - if(nd == null) - { - throw new NoSuchName(name); - } - return nd; - } - } - - // Slice createFile() operation. - - public FilePrx - createFile(String name, Current c) throws NameInUse - { - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - } - - synchronized(_lcMutex) - { - reap(); - - if(name.length() == 0 || _dir.nodes.containsKey(name)) - { - throw new NameInUse(name); - } - - PersistentFile persistentFile = new PersistentFile(); - persistentFile.name = name; - Communicator communicator = c.adapter.getCommunicator(); - FileI file = new FileI(c.adapter, communicator.stringToIdentity(Util.generateUUID()), - persistentFile, this); - assert(_map.get(file.id()) == null); - _map.put(file.id(), persistentFile); - - FilePrx proxy = FilePrxHelper.uncheckedCast(c.adapter.createProxy(file.id())); - - NodeDesc nd = new NodeDesc(); - nd.name = name; - nd.type = NodeType.FileType; - nd.proxy = proxy; - _dir.nodes.put(name, nd); - _map.put(_id, _dir); - - file.activate(c.adapter); - - return proxy; - } - } - - // Slice createDirectory() operation. - - public DirectoryPrx - createDirectory(String name, Current c) throws NameInUse - { - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - } - - synchronized(_lcMutex) - { - reap(); - - if(name.length() == 0 || _dir.nodes.containsKey(name)) - { - throw new NameInUse(name); - } - - PersistentDirectory persistentDir = new PersistentDirectory(); - persistentDir.name = name; - persistentDir.nodes = new java.util.HashMap<String, NodeDesc>(); - Communicator communicator = c.adapter.getCommunicator(); - DirectoryI dir = new DirectoryI(c.adapter, communicator.stringToIdentity(Util.generateUUID()), - persistentDir, this); - assert(_map.get(dir.id()) == null); - _map.put(dir.id(), persistentDir); - - DirectoryPrx proxy = DirectoryPrxHelper.uncheckedCast(c.adapter.createProxy(dir.id())); - - NodeDesc nd = new NodeDesc(); - nd.name = name; - nd.type = NodeType.DirType; - nd.proxy = proxy; - _dir.nodes.put(name, nd); - _map.put(_id, _dir); - - dir.activate(c.adapter); - - return proxy; - } - } - - // Slice destroy() operation. - - public void - destroy(Current c) throws PermissionDenied - { - if(_parent == null) - { - throw new PermissionDenied("Cannot destroy root directory"); - } - - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - - synchronized(_lcMutex) - { - reap(); - - if(_dir.nodes.size() != 0) - { - throw new PermissionDenied("Cannot destroy non-empty directory"); - } - - c.adapter.remove(id()); - _parent.addReapEntry(_dir.name); - _destroyed = true; - } - } - } - - // DirectoryI constructor. parent == null indicates root directory. - - public DirectoryI(ObjectAdapter adapter, Identity id, PersistentDirectory dir, DirectoryI parent) - { - Communicator communicator = adapter.getCommunicator(); - _connection = Freeze.Util.createConnection(communicator, _envName); - _map = new IdentityNodeMap(_connection, _dbName, false); - _id = id; - _dir = dir; - _parent = parent; - _destroyed = false; - - java.util.Vector<String> staleEntries = new java.util.Vector<String>(); - - java.util.Iterator<java.util.Map.Entry<String, NodeDesc> > p = dir.nodes.entrySet().iterator(); - while(p.hasNext()) - { - java.util.Map.Entry<String, NodeDesc> e = (java.util.Map.Entry)p.next(); - NodeDesc nd = e.getValue(); - Identity ident = nd.proxy.ice_getIdentity(); - PersistentNode node = (PersistentNode)_map.get(ident); - NodeI servant; - if(node != null) - { - if(nd.type == NodeType.DirType) - { - PersistentDirectory pDir = (PersistentDirectory)node; - servant = new DirectoryI(adapter, ident, pDir, this); - } - else - { - PersistentFile pFile = (PersistentFile)node; - servant = new FileI(adapter, ident, pFile, this); - } - servant.activate(adapter); - } - else - { - staleEntries.add(e.getKey()); - } - } - - java.util.Iterator<String> i = staleEntries.iterator(); - while(i.hasNext()) - { - dir.nodes.remove(i.next()); - } - if(!staleEntries.isEmpty()) - { - _map.put(id, dir); - } - } - - - // Add servant to ASM and to parent's _contents map. - - public DirectoryPrx - activate(ObjectAdapter a) - { - return DirectoryPrxHelper.uncheckedCast(a.add(this, _id)); - } - - // Add this directory and the name of a deleted entry to the reap map. - - public void - addReapEntry(String name) - { - java.util.List<String> l = _reapMap.get(this); - if(l != null) - { - l.add(name); - } - else - { - l = new java.util.ArrayList<String>(); - l.add(name); - _reapMap.put(this, l); - } - } - - // Remove all names in the reap map from the corresponding directory contents. - - private static void - reap() - { - java.util.Iterator<java.util.Map.Entry<DirectoryI, java.util.List<String> > > i = - _reapMap.entrySet().iterator(); - while(i.hasNext()) - { - java.util.Map.Entry<DirectoryI, java.util.List<String> > e = i.next(); - DirectoryI dir = e.getKey(); - java.util.List<String> l = e.getValue(); - java.util.Iterator<String> j = l.iterator(); - while(j.hasNext()) - { - dir._dir.nodes.remove(j.next()); - } - } - _reapMap.clear(); - } - - public static java.lang.Object _lcMutex = new java.lang.Object(); - - public static String _envName; - public static String _dbName; - - private DirectoryI _parent; - private boolean _destroyed; - private Identity _id; - private Freeze.Connection _connection; - private IdentityNodeMap _map; - private PersistentDirectory _dir; - - private static java.util.Map<DirectoryI, java.util.List<String> > _reapMap = - new java.util.HashMap<DirectoryI, java.util.List<String> >(); - -} diff --git a/java/demo/book/map_filesystem/FilesystemI/FileI.java b/java/demo/book/map_filesystem/FilesystemI/FileI.java deleted file mode 100644 index 8014c9fa5cf..00000000000 --- a/java/demo/book/map_filesystem/FilesystemI/FileI.java +++ /dev/null @@ -1,102 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package FilesystemI; - -import Ice.*; -import Filesystem.*; -import FilesystemI.*; - -public class FileI extends _FileDisp implements NodeI, _FileOperations -{ - public synchronized String - name(Current c) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - return _file.name; - } - - public Identity - id() - { - return _id; - } - - public synchronized String[] - read(Current c) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - - return _file.text; - } - - public synchronized void - write(String[] text, Current c) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - - _file.text = (String[])text.clone(); - _map.put(_id, _file); - } - - public void - destroy(Current c) - { - synchronized(this) - { - if(_destroyed) - { - throw new ObjectNotExistException(); - } - _destroyed = true; - } - - synchronized(_parent._lcMutex) - { - c.adapter.remove(c.id); - _parent.addReapEntry(_file.name); - _map.remove(c.id); - } - } - - public FileI(ObjectAdapter adapter, Ice.Identity id, PersistentFile file, DirectoryI parent) - { - _connection = Freeze.Util.createConnection(adapter.getCommunicator(), _envName); - _map = new IdentityNodeMap(_connection, _dbName, false); - _id = id; - _file = file; - _parent = parent; - _destroyed = false; - } - - public FilePrx - activate(Ice.ObjectAdapter a) - { - return FilePrxHelper.uncheckedCast(a.add(this, _id)); - } - - public static String _envName; - public static String _dbName; - - private DirectoryI _parent; - private boolean _destroyed; - private Identity _id; - private Freeze.Connection _connection; - private IdentityNodeMap _map; - private PersistentFile _file; -} diff --git a/java/demo/book/map_filesystem/FilesystemI/NodeI.java b/java/demo/book/map_filesystem/FilesystemI/NodeI.java deleted file mode 100644 index 52162b64b85..00000000000 --- a/java/demo/book/map_filesystem/FilesystemI/NodeI.java +++ /dev/null @@ -1,16 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package FilesystemI; - -public interface NodeI -{ - Ice.Identity id(); - Ice.ObjectPrx activate(Ice.ObjectAdapter a); -} diff --git a/java/demo/book/map_filesystem/Grammar.java b/java/demo/book/map_filesystem/Grammar.java deleted file mode 100644 index 92da79a56d0..00000000000 --- a/java/demo/book/map_filesystem/Grammar.java +++ /dev/null @@ -1,202 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Grammar -{ - Grammar(Parser p) - { - _parser = p; - _scanner = new Scanner(_parser); - } - - void - parse() - { - while(true) - { - try - { - _token = _scanner.nextToken(); - if(_token == null) - { - return; - } - else if(_token.type == Token.TOK_SEMI) - { - // Continue - } - else if(_token.type == Token.TOK_HELP) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.usage(); - } - else if(_token.type == Token.TOK_EXIT) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - return; - } - else if(_token.type == Token.TOK_LIST) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.list(false); - } - else if(_token.type == Token.TOK_LIST_RECURSIVE) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.list(true); - } - else if(_token.type == Token.TOK_CREATE_FILE) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: mkfile FILE [FILE...]"); - } - _parser.createFile(s); - } - else if(_token.type == Token.TOK_CREATE_DIR) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: mkdir DIR [DIR...]"); - } - _parser.createDir(s); - } - else if(_token.type == Token.TOK_PWD) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - _parser.pwd(); - } - else if(_token.type == Token.TOK_CD) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() > 1) - { - throw new ParseError("usage: cd [DIR]"); - } - else if(s.size() == 0) - { - _parser.cd("/"); - } - else - { - _parser.cd((String)s.get(0)); - } - } - else if(_token.type == Token.TOK_CAT) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() != 1) - { - throw new ParseError("usage: cat FILE"); - } - _parser.cat((String)s.get(0)); - } - else if(_token.type == Token.TOK_WRITE) - { - java.util.LinkedList<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: write FILE [STRING...]"); - } - _parser.write(s); - } - else if(_token.type == Token.TOK_RM) - { - java.util.List<String> s = strings(); - if(_token.type != Token.TOK_SEMI) - { - throw new ParseError("Expected ';'"); - } - if(s.size() == 0) - { - throw new ParseError("usage: rm NAME [NAME...]"); - } - _parser.destroy(s); - } - else - { - _parser.error("parse error"); - } - } - catch(ParseError e) - { - _parser.error("Parse error: " + e.getMessage()); - } - } - } - - private java.util.LinkedList<String> - strings() - { - java.util.LinkedList<String> l = new java.util.LinkedList<String>(); - while(true) - { - _token = _scanner.nextToken(); - if(_token.type != Token.TOK_STRING) - { - return l; - } - l.add(_token.value); - } - } - - static private class ParseError extends RuntimeException - { - ParseError(String msg) - { - super(msg); - } - } - - private Parser _parser; - private Scanner _scanner; - private Token _token; -} diff --git a/java/demo/book/map_filesystem/Parser.java b/java/demo/book/map_filesystem/Parser.java deleted file mode 100644 index 94e4af53654..00000000000 --- a/java/demo/book/map_filesystem/Parser.java +++ /dev/null @@ -1,361 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Filesystem.*; - -class Parser -{ - Parser(DirectoryPrx root) - { - _dirs = new java.util.LinkedList<DirectoryPrx>(); - _dirs.addFirst(root); - } - - void - usage() - { - System.err.print( - "help Print this message.\n" + - "pwd Print current directory (/ = root).\n" + - "cd [DIR] Change directory (/ or empty = root).\n" + - "ls List current directory.\n" + - "lr Recursively list current directory.\n" + - "mkdir DIR [DIR...] Create directories DIR in current directory.\n" + - "mkfile FILE [FILE...] Create files FILE in current directory.\n" + - "rm NAME [NAME...] Delete directory or file NAME (rm * to delete all).\n" + - "cat FILE List the contents of FILE.\n" + - "write FILE [STRING...] Write STRING to FILE.\n" + - "exit, quit Exit this program.\n"); - } - - void - list(boolean recursive) - { - try - { - list(_dirs.get(0), recursive, 0); - } - catch(Ice.LocalException ex) - { - error(ex.toString()); - } - } - - void - list(Filesystem.DirectoryPrx dir, boolean recursive, int depth) - { - StringBuffer b = new StringBuffer(); - for(int i = 0; i < depth; ++i) - { - b.append('\t'); - } - String indent = b.toString(); - - NodeDesc[] contents = dir.list(); - - for(int i = 0; i < contents.length; ++i) - { - DirectoryPrx d - = contents[i].type == NodeType.DirType - ? DirectoryPrxHelper.uncheckedCast(contents[i].proxy) - : null; - System.out.print(indent + contents[i].name + (d != null ? " (directory)" : " (file)")); - if(d != null && recursive) - { - System.out.println(":"); - list(d, true, ++depth); - } - else - { - System.out.println(); - } - } - } - - void - createFile(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("..")) - { - System.out.println("Cannot create a file named `..'"); - continue; - } - - try - { - dir.createFile(name); - } - catch(NameInUse ex) - { - System.out.println("`" + name + "' exists already"); - } - } - } - - void - createDir(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("..")) - { - System.out.println("Cannot create a directory named `..'"); - continue; - } - - try - { - dir.createDirectory(name); - } - catch(NameInUse ex) - { - System.out.println("`" + name + "' exists already"); - } - } - } - - void - pwd() - { - if(_dirs.size() == 1) - { - System.out.print("/"); - } - else - { - java.util.ListIterator<DirectoryPrx> i = _dirs.listIterator(_dirs.size()); - i.previous(); - while(i.hasPrevious()) - { - System.out.print("/" + i.previous().name()); - } - } - System.out.println(); - } - - void - cd(String name) - { - if(name.equals("/")) - { - while(_dirs.size() > 1) - { - _dirs.removeFirst(); - } - return; - } - - if(name.equals("..")) - { - if(_dirs.size() > 1) - { - _dirs.removeFirst(); - } - return; - } - - DirectoryPrx dir = _dirs.getFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such directory"); - return; - } - if(d.type == NodeType.FileType) - { - System.out.println("`" + name + "': not a directory"); - return; - } - _dirs.addFirst(DirectoryPrxHelper.uncheckedCast(d.proxy)); - } - - void - cat(String name) - { - DirectoryPrx dir = _dirs.getFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file"); - return; - } - if(d.type == NodeType.DirType) - { - System.out.println("`" + name + "': not a file"); - return; - } - FilePrx f = FilePrxHelper.uncheckedCast(d.proxy); - String[] l = f.read(); - for(int i = 0; i < l.length; ++i) - { - System.out.println(l[i]); - } - } - - void - write(java.util.LinkedList<String> args) - { - DirectoryPrx dir = _dirs.getFirst(); - String name = args.getFirst(); - args.removeFirst(); - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file"); - return; - } - if(d.type == NodeType.DirType) - { - System.out.println("`" + name + "': not a file"); - return; - } - FilePrx f = FilePrxHelper.uncheckedCast(d.proxy); - - String[] l = new String[args.size()]; - java.util.Iterator<String> i = args.iterator(); - for(int j = 0; j < args.size(); ++j) - { - l[j] = i.next(); - } - try - { - f.write(l); - } - catch(GenericError ex) - { - System.out.println("`" + name + "': cannot write to file: " + ex.reason); - } - } - - void - destroy(java.util.List<String> names) - { - DirectoryPrx dir = _dirs.getFirst(); - - java.util.Iterator<String> i = names.iterator(); - while(i.hasNext()) - { - String name = i.next(); - if(name.equals("*")) - { - NodeDesc[] nodes = dir.list(); - for(int j = 0; j < nodes.length; ++j) - { - try - { - nodes[j].proxy.destroy(); - } - catch(PermissionDenied ex) - { - System.out.println("cannot remove `" + nodes[j].name + "': " + ex.reason); - } - } - return; - } - else - { - NodeDesc d; - try - { - d = dir.find(name); - } - catch(NoSuchName ex) - { - System.out.println("`" + name + "': no such file or directory"); - return; - } - try - { - d.proxy.destroy(); - } - catch(PermissionDenied ex) - { - System.out.println("cannot remove `" + name + "': " + ex.reason); - } - } - } - - } - - void - error(String s) - { - System.err.println("error: " + s); - } - - void - warning(String s) - { - System.err.println("warning: " + s); - } - - String - getInput() - { - System.out.print("> "); - System.out.flush(); - - try - { - return _in.readLine(); - } - catch(java.io.IOException e) - { - return null; - } - } - - int - parse() - { - _in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); - - Grammar g = new Grammar(this); - g.parse(); - - return 0; - } - - int - parse(java.io.BufferedReader in) - { - _in = in; - - Grammar g = new Grammar(this); - g.parse(); - - return 0; - } - - private java.util.LinkedList<DirectoryPrx> _dirs; - - private java.io.BufferedReader _in; -} diff --git a/java/demo/book/map_filesystem/README b/java/demo/book/map_filesystem/README deleted file mode 100644 index b0e8d943879..00000000000 --- a/java/demo/book/map_filesystem/README +++ /dev/null @@ -1,13 +0,0 @@ -This demo presents an implementation of the filesystem -application based on a Freeze map, as discussed in -the Freeze chapter of the Ice manual. - -To run it, start the server in a window: - -$ java Server - -Then run the client in a separate window: - -$ java Client - -Type "help" at the client prompt to see a list of commands. diff --git a/java/demo/book/map_filesystem/Scanner.java b/java/demo/book/map_filesystem/Scanner.java deleted file mode 100644 index d318ed291f0..00000000000 --- a/java/demo/book/map_filesystem/Scanner.java +++ /dev/null @@ -1,283 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Scanner -{ - Scanner(Parser p) - { - _parser = p; - } - - Token - nextToken() - { - String s = next(); - if(s == null) - { - return null; - } - - if(s.equals(";")) - { - return new Token(Token.TOK_SEMI); - } - else if(s.equals("help")) - { - return new Token(Token.TOK_HELP); - } - else if(s.equals("exit") || s.equals("quit")) - { - return new Token(Token.TOK_EXIT); - } - else if(s.equals("ls")) - { - return new Token(Token.TOK_LIST); - } - else if(s.equals("lr")) - { - return new Token(Token.TOK_LIST_RECURSIVE); - } - else if(s.equals("mkfile")) - { - return new Token(Token.TOK_CREATE_FILE); - } - else if(s.equals("mkdir")) - { - return new Token(Token.TOK_CREATE_DIR); - } - else if(s.equals("pwd")) - { - return new Token(Token.TOK_PWD); - } - else if(s.equals("cd")) - { - return new Token(Token.TOK_CD); - } - else if(s.equals("cat")) - { - return new Token(Token.TOK_CAT); - } - else if(s.equals("write")) - { - return new Token(Token.TOK_WRITE); - } - else if(s.equals("rm")) - { - return new Token(Token.TOK_RM); - } - else - { - return new Token(Token.TOK_STRING, s); - } - } - - static private class EndOfInput extends Exception - { - } - - private char - get() - throws EndOfInput - { - // - // If there is an character in the unget buffer, return it. - // - if(_unget) - { - _unget = false; - return _ungetChar; - } - - // - // No current buffer? - // - if(_buf == null) - { - _buf = _parser.getInput(); - _pos = 0; - if(_buf == null) - { - throw new EndOfInput(); - } - } - - // - // At the end-of-buffer? - // - while(_pos >= _buf.length()) - { - _buf = null; - _pos = 0; - return '\n'; - } - - return _buf.charAt(_pos++); - } - - // - // unget only works with one character. - // - private void - unget(char c) - { - assert(!_unget); - _unget = true; - _ungetChar = c; - } - - private String - next() - { - // - // Eat any whitespace. - // - char c; - try - { - do - { - c = get(); - } - while(Character.isWhitespace(c) && c != '\n'); - } - catch(EndOfInput ignore) - { - return null; - } - - StringBuffer buf = new StringBuffer(); - - if(c == ';' || c == '\n') - { - buf.append(';'); - } - else if(c == '\'') - { - try - { - while(true) - { - c = get(); - if(c == '\'') - { - break; - } - else - { - buf.append(c); - } - } - } - catch(EndOfInput e) - { - _parser.warning("EOF in string"); - } - } - else if(c == '\"') - { - try - { - while(true) - { - c = get(); - if(c == '\"') - { - break; - } - else if(c == '\\') - { - try - { - char next = get(); - switch(next) - { - case '\\': - case '"': - { - buf.append(next); - break; - } - - case 'n': - { - buf.append('\n'); - break; - } - - case 'r': - { - buf.append('\r'); - break; - } - - case 't': - { - buf.append('\t'); - break; - } - - case 'f': - { - buf.append('\f'); - break; - } - - default: - { - buf.append(c); - unget(next); - } - } - } - catch(EndOfInput e) - { - buf.append(c); - } - } - else - { - buf.append(c); - } - } - } - catch(EndOfInput e) - { - _parser.warning("EOF in string"); - } - } - else - { - // - // Otherwise it's a string. - // - try - { - do - { - buf.append(c); - c = get(); - } - while(!Character.isWhitespace(c) && c != ';' && c != '\n'); - - unget(c); - } - catch(EndOfInput ignore) - { - } - } - - return buf.toString(); - } - - private Parser _parser; - private boolean _unget = false; - private char _ungetChar; - private String _buf = null; - private int _pos; -} diff --git a/java/demo/book/map_filesystem/Server.java b/java/demo/book/map_filesystem/Server.java deleted file mode 100644 index b9666633b71..00000000000 --- a/java/demo/book/map_filesystem/Server.java +++ /dev/null @@ -1,87 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Filesystem.*; -import FilesystemI.*; - -public class Server extends Ice.Application -{ - public - Server(String envName) - { - _envName = envName; - } - - public int - run(String[] args) - { - // - // Terminate cleanly on receipt of a signal. - // - shutdownOnInterrupt(); - - // - // Install object factories. - // - communicator().addObjectFactory(PersistentFile.ice_factory(), PersistentFile.ice_staticId()); - communicator().addObjectFactory(PersistentDirectory.ice_factory(), PersistentDirectory.ice_staticId()); - - // - // Create an object adapter. - // - Ice.ObjectAdapter adapter = - communicator().createObjectAdapterWithEndpoints("MapFilesystem", "default -p 10000"); - - DirectoryI._envName = _envName; - DirectoryI._dbName = "mapfs"; - FileI._envName = _envName; - FileI._dbName = "mapfs"; - - // - // Find the persistent node for the root directory, - // or create it if not found. - // - Freeze.Connection connection = Freeze.Util.createConnection(communicator(), _envName); - IdentityNodeMap persistentMap = new IdentityNodeMap(connection, FileI._dbName, true); - - Ice.Identity rootId = communicator().stringToIdentity("RootDir"); - PersistentDirectory pRoot = (PersistentDirectory)persistentMap.get(rootId); - if(pRoot == null) - { - pRoot = new PersistentDirectory(); - pRoot.name ="/"; - pRoot.nodes = new java.util.HashMap<java.lang.String, NodeDesc>(); - persistentMap.put(rootId, pRoot); - } - DirectoryI dir = new DirectoryI(adapter, rootId, pRoot, null); - dir.activate(adapter); - - // - // Ready to accept requests now. - // - adapter.activate(); - - // - // Wait until we are done. - // - communicator().waitForShutdown(); - - return 0; - } - - public static void - main(String[] args) - { - Server app = new Server("db"); - int status = app.main("Server", args, "config.server"); - System.exit(status); - } - - private String _envName; -} diff --git a/java/demo/book/map_filesystem/Token.java b/java/demo/book/map_filesystem/Token.java deleted file mode 100644 index 7fe92e242e0..00000000000 --- a/java/demo/book/map_filesystem/Token.java +++ /dev/null @@ -1,40 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -class Token -{ - public static final int TOK_HELP = 0; - public static final int TOK_EXIT = 1; - public static final int TOK_SEMI = 2; - public static final int TOK_LIST = 3; - public static final int TOK_LIST_RECURSIVE = 4; - public static final int TOK_CREATE_FILE = 5; - public static final int TOK_CREATE_DIR = 6; - public static final int TOK_PWD = 7; - public static final int TOK_CD = 8; - public static final int TOK_CAT = 9; - public static final int TOK_WRITE = 10; - public static final int TOK_RM = 11; - public static final int TOK_STRING = 12; - - int type; - String value; - - Token(int t) - { - type = t; - value = null; - } - - Token(int t, String v) - { - type = t; - value = v; - } -} diff --git a/java/demo/book/map_filesystem/build.xml b/java/demo/book/map_filesystem/build.xml deleted file mode 100644 index 8799fe2a2e4..00000000000 --- a/java/demo/book/map_filesystem/build.xml +++ /dev/null @@ -1,65 +0,0 @@ -<!-- - ********************************************************************** - - Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. - - This copy of Ice is licensed to you under the terms described in the - ICE_LICENSE file included in this distribution. - - ********************************************************************** ---> - -<project name="demo_book_lifecycle" default="all" basedir="."> - - <!-- set global properties for this build --> - <property name="top.dir" value="../../.."/> - - <!-- import common definitions --> - <import file="${top.dir}/config/common.xml"/> - - <target name="generate" depends="init"> - <!-- Create the output directory for generated code --> - <mkdir dir="${generated.dir}"/> - <slice2java outputdir="${generated.dir}"> - <meta value="${java2metadata}"/> - <includepath> - <pathelement path="${slice.dir}" /> - </includepath> - <fileset dir="." includes="Filesystem.ice"/> - </slice2java> - <slice2freezej ice="on" outputdir="${generated.dir}"> - <includepath> - <pathelement path="${slice.dir}" /> - </includepath> - <fileset dir="."> - <include name="Filesystem.ice"/> - </fileset> - <fileset dir="${slice.dir}/Ice"> - <include name="Identity.ice"/> - </fileset> - <dict name="Filesystem.IdentityNodeMap" key="Ice::Identity" value="Filesystem::PersistentNode"/> - </slice2freezej> - </target> - - <target name="compile" depends="generate"> - <mkdir dir="${class.dir}"/> - <javac srcdir="${generated.dir}" destdir="${class.dir}" - debug="${debug}"> - <classpath refid="ice.classpath"/> - <compilerarg value="${javac.lint}"/> - </javac> - <javac srcdir="." destdir="${class.dir}" - excludes="generated/**" debug="${debug}"> - <classpath refid="ice.classpath"/> - <compilerarg value="${javac.lint}"/> - </javac> - </target> - - <target name="all" depends="compile"/> - - <target name="clean"> - <delete dir="${generated.dir}"/> - <delete dir="${class.dir}"/> - </target> - -</project> diff --git a/java/demo/book/map_filesystem/config.client b/java/demo/book/map_filesystem/config.client deleted file mode 100644 index 6f0ba50b98f..00000000000 --- a/java/demo/book/map_filesystem/config.client +++ /dev/null @@ -1,28 +0,0 @@ -# -# The client reads this property to create the reference to the root -# "directory" object in the server. -# -RootDir.Proxy=RootDir:default -p 10000 - -# -# Warn about connection exceptions -# -Ice.Warn.Connections=1 - -# -# Network Tracing -# -# 0 = no network tracing -# 1 = trace connection establishment and closure -# 2 = like 1, but more detailed -# 3 = like 2, but also trace data transfer -# -#Ice.Trace.Network=1 - -# -# Protocol Tracing -# -# 0 = no protocol tracing -# 1 = trace protocol messages -# -#Ice.Trace.Protocol=1 diff --git a/java/demo/book/map_filesystem/config.server b/java/demo/book/map_filesystem/config.server deleted file mode 100644 index 8ee5723e944..00000000000 --- a/java/demo/book/map_filesystem/config.server +++ /dev/null @@ -1,49 +0,0 @@ -# -# Configure the server endpoints. -# -FreezeFilesystem.Endpoints=default -p 10000 - -# -# Freeze Map Tracing. -# -# 0 = No map activity trace (default). -# 1 = Trace database open and close. -# 2 = Also trace iterator and transaction operations, and reference -# counting of the underlying database. -# -Freeze.Trace.Map=1 - -# -# Freeze Evictor Tracing. -# -# 0 = No evictor activity trace (default). -# 1 = Trace Ice object and facet creation and destruction, facet -# streaming time, facet saving time, object eviction (every 50 -# objects) and evictor deactivation. -# 2 = Also trace object lookups, and all object evictions. -# 3 = Also trace object retrieval from the database. -# -Freeze.Trace.Evictor=2 - -# -# Warn about connection exceptions -# -Ice.Warn.Connections=1 - -# -# Network Tracing -# -# 0 = no network tracing -# 1 = trace connection establishment and closure -# 2 = like 1, but more detailed -# 3 = like 2, but also trace data transfer -# -#Ice.Trace.Network=1 - -# -# Protocol Tracing -# -# 0 = no protocol tracing -# 1 = trace protocol messages -# -#Ice.Trace.Protocol=1 diff --git a/java/demo/book/map_filesystem/db/.gitignore b/java/demo/book/map_filesystem/db/.gitignore deleted file mode 100644 index 39af5887579..00000000000 --- a/java/demo/book/map_filesystem/db/.gitignore +++ /dev/null @@ -1 +0,0 @@ -# Dummy file, so that git retains this otherwise empty directory. |