Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

modulemgr.h

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * XPLC - Cross-Platform Lightweight Components
00004  * Copyright (C) 2002-2004, Net Integration Technologies, Inc.
00005  * Copyright (C) 2002-2004, Pierre Phaneuf
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation; either version 2.1 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00020  * USA
00021  */
00022 
00023 #ifndef __XPLC_MODULEMGR_H__
00024 #define __XPLC_MODULEMGR_H__
00025 
00026 #include <xplc/utils.h>
00027 #include <xplc/IModuleManagerFactory.h>
00028 
00029 class ModuleManagerFactory: public IModuleManagerFactory {
00030   IMPLEMENT_IOBJECT(ModuleManagerFactory);
00031 private:
00032 public:
00033   static ModuleManagerFactory* create() {
00034     return new ModuleManagerFactory;
00035   }
00036   virtual IServiceHandler* createModuleManager(const char* directory);
00037 };
00038 
00039 struct ModuleNode;
00040 
00041 class ModuleManager: public IServiceHandler {
00042   IMPLEMENT_IOBJECT(ModuleManager);
00043 private:
00044   ModuleNode* modules;
00045 public:
00046   ModuleManager(ModuleNode* aModules);
00047   virtual IObject* getObject(const UUID& cid);
00048   virtual ~ModuleManager();
00049 };
00050 
00051 #endif /* __XPLC_MODULEMGR_H__ */

Generated on Fri May 20 11:17:45 2005 for WvStreams by  doxygen 1.4.2