diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-12 02:46:32 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-12 02:46:32 +0000 |
commit | 759f7f34281a2c3d406ce93e52e63272a9d4beba (patch) | |
tree | 491339afc3ba74316d9d9019318836ffb6621ce8 /cpp/demo/Freeze/library/Server.cpp | |
parent | bug fix to the icepack hello demo. (diff) | |
download | ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.bz2 ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.xz ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335
Diffstat (limited to 'cpp/demo/Freeze/library/Server.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/Server.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/demo/Freeze/library/Server.cpp b/cpp/demo/Freeze/library/Server.cpp index d1494af2e69..13996a74b95 100644 --- a/cpp/demo/Freeze/library/Server.cpp +++ b/cpp/demo/Freeze/library/Server.cpp @@ -7,13 +7,11 @@ // // ********************************************************************** -#include <Ice/Application.h> #include <BookFactory.h> +#include <Ice/Application.h> #include <Freeze/Freeze.h> using namespace std; -using namespace Ice; -using namespace Freeze; class LibraryServer : public Ice::Application { @@ -41,18 +39,18 @@ main(int argc, char* argv[]) int LibraryServer::run(int argc, char* argv[]) { - PropertiesPtr properties = communicator()->getProperties(); + Ice::PropertiesPtr properties = communicator()->getProperties(); // // Create an object adapter // - ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Library"); + Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Library"); // // Create an evictor for books. // Freeze::EvictorPtr evictor = Freeze::createEvictor(adapter, _envName, "books"); - Int evictorSize = properties->getPropertyAsInt("Library.EvictorSize"); + Ice::Int evictorSize = properties->getPropertyAsInt("Library.EvictorSize"); if(evictorSize > 0) { evictor->setSize(evictorSize); @@ -68,12 +66,12 @@ LibraryServer::run(int argc, char* argv[]) // Create the library, and add it to the object adapter. // LibraryIPtr library = new LibraryI(communicator(), _envName, "authors", evictor); - adapter->add(library, stringToIdentity("library")); + adapter->add(library, Ice::stringToIdentity("library")); // // Create and install a factory for books. // - ObjectFactoryPtr bookFactory = new BookFactory(library); + Ice::ObjectFactoryPtr bookFactory = new BookFactory(library); communicator()->addObjectFactory(bookFactory, "::Demo::Book"); // |