00001 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 00002 /* _______ ______ ______ __ */ 00003 /* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ / ____(_)___ / ___ /) / ____/___ ____/ /__ */ 00004 /* [fsDll] / /_ / / __ \\__ \|/ / / / __ \/ __ / _ \ */ 00005 /* rev. 8 / __/ / / /_/ /__/ / / /___/ /_/ / /_/ / __/ */ 00006 /* 10th Jan 2007 /_/ /_/ ,___/____/ \____/\____/\__,_/\___/ */ 00007 /* [x] stable /_/ (c) 2004-7 Filip STOKLAS (FipS) */ 00008 /* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ http://HOLE.4FipS.com/fips_code.php */ 00009 /* */ 00010 /* This code is free for personal and commercial use. You may redistribute */ 00011 /* it by any means. If you use the code for your own projects please give */ 00012 /* me credit. Please send a bug report. Don't alter or remove this header! */ 00013 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 00014 #ifndef FS_SYS_FSDLL_H 00015 #define FS_SYS_FSDLL_H 00016 //--------------------------------------------------------------------------- 00017 #if defined(FS_INCLUDE_USERDEFS) // inject user definition file on request 00018 # include <fs/fsUserDefs.h> 00019 #endif 00020 //--------------------------------------------------------------------------- 00021 namespace fs { namespace sys { 00022 //--------------------------------------------------------------------------- 00024 00028 class Dll_t 00029 { 00030 public: 00031 00033 explicit Dll_t(const char *pszFile); 00035 ~Dll_t(); 00037 bool IsValid() const; 00038 00040 const void * GetSymb(const char *pszName) const; 00042 const char * GetFile() const; 00043 00044 private: 00045 00046 Dll_t(); 00047 Dll_t(const Dll_t &); 00048 Dll_t & operator = (const Dll_t &); 00049 00050 void *m_pImpl; 00051 }; 00052 //--------------------------------------------------------------------------- 00053 }} // namespace fs::sys 00054 //--------------------------------------------------------------------------- 00055 #endif // FS_SYS_FSDLL_H