OpenRTM-aist
1.2.1
|
DynamicLib class. More...
#include <DynamicLib.h>
Public Member Functions | |
DynamicLib (int close_handle_on_destruction=1) | |
Constructor. More... | |
DynamicLib (const char *dynlib_name, int open_mode=COIL_DEFAULT_DYNLIB_MODE, int close_handle_on_destruction=1) | |
Constructor. More... | |
virtual | ~DynamicLib () |
Destructor. More... | |
DynamicLib (const DynamicLib &rhs) | |
Copy Constructor. More... | |
DynamicLib & | operator= (const DynamicLib &rhs) |
Assignment operator. More... | |
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. More... | |
virtual int | close (void) |
Unload of the Dynamic link library. More... | |
void * | symbol (const char *symbol_name) |
Return an address of the memory where a symbol was loaded. More... | |
const char * | error (void) const |
Return the explanation message about the error. More... | |
Static Public Member Functions | |
static int | ForExternTest (void) |
Unit Test. More... | |
DynamicLib class.
coil::DynamicLib::DynamicLib | ( | int | close_handle_on_destruction = 1 | ) |
Constructor.
Constructor
close_handle_on_destruction | Close flag. |
coil::DynamicLib::DynamicLib | ( | const char * | dynlib_name, |
int | open_mode = COIL_DEFAULT_DYNLIB_MODE , |
||
int | close_handle_on_destruction = 1 |
||
) |
Constructor.
Constructor
dynlib_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
|
virtual |
Destructor.
Destructor
coil::DynamicLib::DynamicLib | ( | const DynamicLib & | rhs | ) |
Copy Constructor.
Copy Constructor
rhs | Dynamic link library object of copy source. |
|
virtual |
Unload of the Dynamic link library.
Unload of the Dynamic link library.
Referenced by RTC::ModuleManager::UnloadPred::operator()().
const char* coil::DynamicLib::error | ( | void | ) | const |
Return the explanation message about the error.
Return the explanation message about the error.
|
inlinestatic |
Unit Test.
Unit Test.
|
virtual |
Load of the Dynamic link library.
Load of the Dynamic link library.
dll_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
DynamicLib& coil::DynamicLib::operator= | ( | const DynamicLib & | rhs | ) |
Assignment operator.
Copy a Dynamic link library object.
rhs | Dynamic link library object of assignment source. |
void* coil::DynamicLib::symbol | ( | const char * | symbol_name | ) |
Return an address of the memory where a symbol was loaded.
Return an address of the memory where a symbol was loaded.
symbol_name | Symbol name. |