00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef __SCIM_MODULE_H
00032 #define __SCIM_MODULE_H
00033
00034 namespace scim {
00035
00036
00037
00038
00039
00040
00041 class ModuleError: public Exception
00042 {
00043 public:
00044 ModuleError (const String& what_arg)
00045 : Exception (String("scim::Module: ") + what_arg) { }
00046 };
00047
00048 class Module
00049 {
00050 class ModuleImpl;
00051 ModuleImpl *m_impl;
00052
00053 Module (const Module &);
00054 Module & operator= (const Module &);
00055
00056 public:
00057 Module ();
00058 Module (const String &name, const String &type);
00059 ~Module ();
00060
00061 bool load (const String &name, const String &type);
00062 bool unload ();
00063
00064 bool valid () const;
00065
00066 bool is_resident () const;
00067 bool make_resident () const;
00068
00069 String get_path () const;
00070
00071 void * symbol (const String & sym) const;
00072 };
00073
00074 int scim_get_module_list (std::vector <String>& mod_list, const String& type = "");
00075
00076
00077
00078 }
00079
00080 #endif //__SCIM_MODULE_H
00081
00082
00083
00084
00085