19 #include <coil/DynamicLib.h> 31 : m_closeflag(close_handle_on_destruction)
44 int close_handle_on_destruction)
50 throw std::bad_alloc();
108 int close_handle_on_destruction)
110 void* handle = ::dlopen(dll_name, open_mode);
151 return ::dlsym(
m_handle, symbol_name);
static int ForExternTest(void)
Unit Test.
void * symbol(const char *symbol_name)
Return an address of the memory where a symbol was loaded.
DynamicLib & operator=(const DynamicLib &rhs)
Assignment operator.
DynamicLib(int close_handle_on_destruction=1)
Constructor.
virtual ~DynamicLib()
Destructor.
virtual int close(void)
Unload of the Dynamic link library.
const char * error(void) const
Return the explanation message about the error.
virtual int open(const char *dll_name, int open_mode=COIL_DEFAULT_DYNLIB_MODE, int close_handle_on_destruction=1)
Load of the Dynamic link library.
Common Object Interface Layer.