00001 /* 00002 * $Id: Plugin.h,v 1.7 2003/09/12 22:18:34 mindstorm2600 Exp $ 00003 */ 00004 #ifndef __CLAW_PLUGIN_H__ 00005 #define __CLAW_PLUGIN_H__ 00006 #include<System.h> 00007 #include<Exception.h> 00008 #include<String.h> 00009 00010 #ifndef _WIN32 00011 00012 namespace clawsoft{ 00017 class Plugin:public System{ 00018 protected: 00022 String dso; 00026 bool loaded; 00031 void *handle; 00032 public: 00037 Plugin(); 00042 Plugin(const String &plName); 00043 ~Plugin(); 00050 void load(); 00055 void load(String plName); 00059 void unload(); 00064 void *getSymbol(const String &sym); 00068 String &getDSOName(); 00069 }; 00070 00071 } 00072 #else 00073 #warning "There's no portability for the windows side yet" 00074 #endif 00075 00076 #endif 00077
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: