summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/value/Client.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-09-15 00:15:47 +0000
committerMichi Henning <michi@zeroc.com>2004-09-15 00:15:47 +0000
commite4a465a7975a4c4064bd159c21c55e9a7ab1d7a1 (patch)
treecef9b15cb1954004d8a141465650ae0963852633 /cpp/demo/Ice/value/Client.cpp
parentadding Slice checksums (diff)
downloadice-e4a465a7975a4c4064bd159c21c55e9a7ab1d7a1.tar.bz2
ice-e4a465a7975a4c4064bd159c21c55e9a7ab1d7a1.tar.xz
ice-e4a465a7975a4c4064bd159c21c55e9a7ab1d7a1.zip
Change for outlawed Slice global definitions.
Diffstat (limited to 'cpp/demo/Ice/value/Client.cpp')
-rw-r--r--cpp/demo/Ice/value/Client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/demo/Ice/value/Client.cpp b/cpp/demo/Ice/value/Client.cpp
index 3ee1c424772..a317e3361b1 100644
--- a/cpp/demo/Ice/value/Client.cpp
+++ b/cpp/demo/Ice/value/Client.cpp
@@ -59,7 +59,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
cout << '\n'
<< "Yes, this worked. Now let's try to transfer an object for a class\n"
- << "with operations as type ::Printer, without installing a factory first.\n"
+ << "with operations as type ::Demo::Printer, without installing a factory first.\n"
<< "This should give us a `no factory' exception.\n"
<< "[press enter]\n";
cin.getline(c, 2);
@@ -86,7 +86,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
cin.getline(c, 2);
Ice::ObjectFactoryPtr factory = new ObjectFactory;
- communicator->addObjectFactory(factory, "::Printer");
+ communicator->addObjectFactory(factory, "::Demo::Printer");
initial->getPrinter(printer, printerProxy);
cout << "==> " << printer->message << endl;
@@ -111,15 +111,15 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
cout << '\n'
<< "Next, we transfer a derived object from the server as a base\n"
<< "object. Since we haven't yet installed a factory for the derived\n"
- << "class, the derived class (::DerivedPrinter) is sliced\n"
- << "to its base class (::Printer).\n"
+ << "class, the derived class (::Demo::DerivedPrinter) is sliced\n"
+ << "to its base class (::Demo::Printer).\n"
<< "[press enter]\n";
cin.getline(c, 2);
PrinterPtr derivedAsBase;
derivedAsBase = initial->getDerivedPrinter();
cout << "==> The type ID of the received object is \"" << derivedAsBase->ice_id() << "\"" << endl;
- assert(derivedAsBase->ice_id() == "::Printer");
+ assert(derivedAsBase->ice_id() == "::Demo::Printer");
cout << '\n'
<< "Now we install a factory for the derived class, and try again.\n"
@@ -128,7 +128,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
<< "[press enter]\n";
cin.getline(c, 2);
- communicator->addObjectFactory(factory, "::DerivedPrinter");
+ communicator->addObjectFactory(factory, "::Demo::DerivedPrinter");
derivedAsBase = initial->getDerivedPrinter();
DerivedPrinterPtr derived = DerivedPrinterPtr::dynamicCast(derivedAsBase);