diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-17 06:02:06 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-17 06:02:06 +0000 |
commit | a4cb03bd60fc53b05abfd36100c5c3ba4d367543 (patch) | |
tree | 7bdb07b989d3a13cc747bb035ca8793bb9c3ab6e /cpp/demo/Ice/value/ServantFactory.cpp | |
parent | more fixes, more docu (diff) | |
download | ice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.tar.bz2 ice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.tar.xz ice-a4cb03bd60fc53b05abfd36100c5c3ba4d367543.zip |
more cool stuff
Diffstat (limited to 'cpp/demo/Ice/value/ServantFactory.cpp')
-rw-r--r-- | cpp/demo/Ice/value/ServantFactory.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/demo/Ice/value/ServantFactory.cpp b/cpp/demo/Ice/value/ServantFactory.cpp index 4d8e3398c52..6f774c4a014 100644 --- a/cpp/demo/Ice/value/ServantFactory.cpp +++ b/cpp/demo/Ice/value/ServantFactory.cpp @@ -15,13 +15,17 @@ using namespace std; Ice::ObjectPtr -Factory::create(const string& id) +ServantFactory::create(const string& type) { - if (id == "::Printer") + if (type == "::Printer") + { return new PrinterI; + } - if (id == "::DerivedPrinter") + if (type == "::DerivedPrinter") + { return new DerivedPrinterI; + } assert(false); return 0; |