diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-20 23:48:17 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-20 23:48:17 +0000 |
commit | 05632330c6a6bb46826a47b0c295ffc455e7cd53 (patch) | |
tree | 8be1afb1f2d7c576a613a1d2218a2fa6d8d243e9 /cpp/demo/Ice/value/ServantFactory.cpp | |
parent | added missing file (diff) | |
download | ice-05632330c6a6bb46826a47b0c295ffc455e7cd53.tar.bz2 ice-05632330c6a6bb46826a47b0c295ffc455e7cd53.tar.xz ice-05632330c6a6bb46826a47b0c295ffc455e7cd53.zip |
ServantFactory->ObjectFactory
Diffstat (limited to 'cpp/demo/Ice/value/ServantFactory.cpp')
-rw-r--r-- | cpp/demo/Ice/value/ServantFactory.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cpp/demo/Ice/value/ServantFactory.cpp b/cpp/demo/Ice/value/ServantFactory.cpp deleted file mode 100644 index 1f9768c08ed..00000000000 --- a/cpp/demo/Ice/value/ServantFactory.cpp +++ /dev/null @@ -1,38 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2001 -// MutableRealms, Inc. -// Huntsville, AL, USA -// -// All Rights Reserved -// -// ********************************************************************** - -#include <Ice/Ice.h> -#include <ServantFactory.h> -#include <ValueI.h> - -using namespace std; - -Ice::ObjectPtr -ServantFactory::create(const string& type) -{ - if (type == "::Printer") - { - return new PrinterI; - } - - if (type == "::DerivedPrinter") - { - return new DerivedPrinterI; - } - - assert(false); - return 0; -} - -void -ServantFactory::destroy() -{ - // Nothing to do -} |