// ********************************************************************** // // Copyright (c) 2003-2004 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 using namespace std; using namespace Ice; BookFactory::BookFactory(const LibraryIPtr& library) : _library(library) { } ObjectPtr BookFactory::create(const string& type) { assert(type == "::Book"); return new BookI(_library); } void BookFactory::destroy() { // // Break cyclic object dependencies // _library = 0; }