// ********************************************************************** // // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include #include using namespace std; Ice::ObjectPtr ObjectFactory::create(const string& type) { if(type == "::Demo::Printer") { return new PrinterI; } if(type == "::Demo::DerivedPrinter") { return new DerivedPrinterI; } assert(false); return 0; } void ObjectFactory::destroy() { // Nothing to do }