#include <ExternalInterface.h>
Inheritance diagram for External::ExternalInterface:
Public Member Functions | |
ExternalInterface (String *library) | |
virtual | ~ExternalInterface (void) |
Protected Member Functions | |
virtual void * | symbol (String *funcName) |
Protected Attributes | |
String * | libName |
void * | libHandler |
|
Definition at line 39 of file ExternalInterface.cc. References Core::String::asCString(), libHandler, and libName. 00040 { 00041 libName = library; 00042 libHandler = dlopen(libName->asCString(), RTLD_NOW); 00043 if (libHandler == NULL) { 00044 (new LibraryNotFoundError(libName, new String(dlerror())))->raise(); 00045 } 00046 }
|
|
Definition at line 48 of file ExternalInterface.cc. References libHandler. 00049 { 00050 dlclose(libHandler); 00051 }
|
|
Definition at line 54 of file ExternalInterface.cc. References Core::String::asCString(), and libHandler. Referenced by External::PluginFactory::newPluginInstance(), and External::PluginFactory::pluginName(). 00055 { 00056 void *funcHandler; 00057 const char *errMsg; 00058 00059 funcHandler = dlsym(libHandler, selector->asCString()); 00060 if ((errMsg = dlerror()) != NULL) { 00061 (new ExternalObjectNotFoundError(selector, new String(errMsg)))->raiseFrom(this); 00062 } 00063 return funcHandler; 00064 }
|
|
Definition at line 41 of file ExternalInterface.h. Referenced by ExternalInterface(), symbol(), and ~ExternalInterface(). |
|
Definition at line 40 of file ExternalInterface.h. Referenced by ExternalInterface(). |