8 #include "daq/slc/system/DynamicLoader.h"
9 #include "daq/slc/system/DynamicLoadException.h"
15 DynamicLoader::~DynamicLoader()
19 void DynamicLoader::close()
21 if (m_handle != NULL) {
27 void* DynamicLoader::open(
const std::string& lib_path)
29 void* handle = dlopen(lib_path.c_str(), RTLD_LAZY);
37 void* DynamicLoader::load(
const std::string& funcname)
40 void* func = dlsym(m_handle, funcname.c_str());
41 if ((error = dlerror()) != NULL) {
Abstract base class for different kinds of events.