42 destroyPluginFunc_{}{}
46 if((pLibHandle_ = dlopen(sLibraryName.c_str(), RTLD_NOW)) == 0)
51 if((createPluginFunc_ =
52 reinterpret_cast<createPluginFunc>((
void (*)())(dlsym(pLibHandle_,
"create")))) == 0)
56 std::stringstream sstream;
59 <<
" missing create symbol. (Missing DECLARE_EEL_LOADER_PLUGIN()?)"<<std::ends;
64 if((destroyPluginFunc_ =
65 reinterpret_cast<destroyPluginFunc>((
void (*)())dlsym(pLibHandle_,
"destroy"))) == 0)
69 std::stringstream sstream;
72 <<
" missing destroy symbol. (Missing DECLARE_EEL_LOADER_PLUGIN()?)"<<std::ends;
85 return createPluginFunc_();
90 destroyPluginFunc_(pPlugin);
LoaderPlugin * createPlugin() const
Exception thrown during the creation of a layer factory.
Interface used to create an EEL loader plugin implementation.
void construct(const std::string &sLibraryName)
void destoryPlugin(LoaderPlugin *pLoader) const