19 #ifndef COIL_DYNAMICLIB_H 20 #define COIL_DYNAMICLIB_H 26 #define COIL_DEFAULT_DYNLIB_MODE RTLD_LAZY 71 DynamicLib(
int close_handle_on_destruction = 1);
98 int close_handle_on_destruction = 1);
190 virtual int open(
const char* dll_name,
192 int close_handle_on_destruction = 1);
213 virtual int close(
void);
238 void *
symbol (
const char* symbol_name);
259 const char*
error(
void)
const;
292 #endif // DynamicLib_h
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.
#define COIL_DEFAULT_DYNLIB_MODE
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.