diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-09 07:05:32 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-09 07:05:32 +0000 |
commit | d9e37798719846dd6ea7f25fcc4eb053db2c2efe (patch) | |
tree | 04dc91fdacae69db9adb3ba8c8d0872a7243662d /cpp/demo/Ice/nested/Client.cpp | |
parent | First saving support (diff) | |
download | ice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.tar.bz2 ice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.tar.xz ice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335
Diffstat (limited to 'cpp/demo/Ice/nested/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/nested/Client.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp index f9c7d8cf2f6..38f419b9e6e 100644 --- a/cpp/demo/Ice/nested/Client.cpp +++ b/cpp/demo/Ice/nested/Client.cpp @@ -7,14 +7,13 @@ // // ********************************************************************** -#include <Ice/Application.h> #include <NestedI.h> +#include <Ice/Application.h> using namespace std; -using namespace Ice; using namespace Demo; -class NestedClient : public Application +class NestedClient : public Ice::Application { public: @@ -31,7 +30,7 @@ main(int argc, char* argv[]) int NestedClient::run(int argc, char* argv[]) { - PropertiesPtr properties = communicator()->getProperties(); + Ice::PropertiesPtr properties = communicator()->getProperties(); const char* proxyProperty = "Nested.Client.NestedServer"; std::string proxy = properties->getProperty(proxyProperty); if(proxy.empty()) @@ -40,7 +39,7 @@ NestedClient::run(int argc, char* argv[]) return EXIT_FAILURE; } - ObjectPrx base = communicator()->stringToProxy(proxy); + Ice::ObjectPrx base = communicator()->stringToProxy(proxy); NestedPrx nested = NestedPrx::checkedCast(base); if(!nested) { @@ -48,7 +47,7 @@ NestedClient::run(int argc, char* argv[]) return EXIT_FAILURE; } - ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nested.Client"); + Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nested.Client"); NestedPrx self = NestedPrx::uncheckedCast(adapter->createProxy(Ice::stringToIdentity("nestedClient"))); adapter->add(new NestedI(self), Ice::stringToIdentity("nestedClient")); adapter->activate(); @@ -72,7 +71,7 @@ NestedClient::run(int argc, char* argv[]) nested->nestedCall(level, self); } } - catch(const Exception& ex) + catch(const Ice::Exception& ex) { cerr << ex << endl; } |