WvStreams
IModuleLoader.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, Pierre Phaneuf
00005  * Copyright (C) 2002-2004, Net Integration Technologies, Inc.
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_IMODULELOADER_H__
00024 #define __XPLC_IMODULELOADER_H__
00025 
00026 #if defined(__GNUC__) && __GNUC__ > 3
00027 # pragma GCC system_header
00028 #endif
00029 
00030 #include <xplc/IModule.h>
00031 
00037 class IModuleLoader: public IObject {
00038   UNSTABLE_INTERFACE
00039 public:
00040   virtual IModule* loadModule(const char* modulename) = 0;
00041 };
00042 
00043 DEFINE_IID(IModuleLoader, {0xa4143690, 0xfc54, 0x43f4,
00044   {0x9d, 0x7e, 0x50, 0x3c, 0x71, 0xff, 0xa5, 0x01}});
00045 
00046 #endif /* __XPLC_IMODULELOADER_H__ */