DynamicLib class. More...
#include <DynamicLib.h>
Public Member Functions | |
virtual int | close (void) |
Unload of the Dynamic link library. | |
virtual int | close (void) |
Unload of the Dynamic link library. | |
DynamicLib (int close_handle_on_destruction=1) | |
Constructor. | |
DynamicLib (int close_handle_on_destruction=1) | |
Constructor. | |
DynamicLib (const char *dynlib_name, int open_mode=COIL_DEFAULT_DYNLIB_MODE, int close_handle_on_destruction=1) | |
Constructor. | |
DynamicLib (const char *dynlib_name, int open_mode=COIL_DEFAULT_DYNLIB_MODE, int close_handle_on_destruction=1) | |
Constructor. | |
DynamicLib (const DynamicLib &rhs) | |
Copy Constructor. | |
DynamicLib (const DynamicLib &rhs) | |
Copy Constructor. | |
const char * | error (void) const |
Return the explanation message about the error. | |
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. | |
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. | |
DynamicLib & | operator= (const DynamicLib &rhs) |
Assignment operator. | |
DynamicLib & | operator= (const DynamicLib &rhs) |
Assignment operator. | |
void * | symbol (const char *symbol_name) |
Return an address of the memory where a symbol was loaded. | |
void * | symbol (const char *symbol_name) |
Return an address of the memory where a symbol was loaded. | |
virtual | ~DynamicLib () |
Destructor. | |
virtual | ~DynamicLib () |
Destructor. | |
Static Public Member Functions | |
static int | ForExternTest (void) |
Unit Test. | |
static int | ForExternTest (void) |
Unit Test. | |
Private Attributes | |
int | m_closeflag |
int | m_error |
void * | m_handle |
HINSTANCE | m_handle |
int | m_mode |
std::string | m_name |
DynamicLib class.
Definition at line 48 of file posix/coil/DynamicLib.h.
coil::DynamicLib::DynamicLib | ( | int | close_handle_on_destruction = 1 | ) |
Constructor.
Constructor
close_handle_on_destruction | Close flag. |
Definition at line 30 of file posix/coil/DynamicLib.cpp.
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. |
Definition at line 42 of file posix/coil/DynamicLib.cpp.
coil::DynamicLib::~DynamicLib | ( | ) | [virtual] |
coil::DynamicLib::DynamicLib | ( | const DynamicLib & | rhs | ) |
Copy Constructor.
Copy Constructor
rhs | Dynamic link library object of copy source. |
Definition at line 73 of file posix/coil/DynamicLib.cpp.
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 coil::DynamicLib::~DynamicLib | ( | ) | [virtual] |
Destructor.
Destructor
coil::DynamicLib::DynamicLib | ( | const DynamicLib & | rhs | ) |
Copy Constructor.
Copy Constructor
rhs | Dynamic link library object of copy source. |
int coil::DynamicLib::close | ( | void | ) | [virtual] |
Unload of the Dynamic link library.
Unload of the Dynamic link library.
Definition at line 127 of file posix/coil/DynamicLib.cpp.
virtual int coil::DynamicLib::close | ( | void | ) | [virtual] |
Unload of the Dynamic link library.
Unload of the Dynamic link library.
const char * coil::DynamicLib::error | ( | void | ) | const |
Return the explanation message about the error.
Return the explanation message about the error.
Definition at line 161 of file posix/coil/DynamicLib.cpp.
const char* coil::DynamicLib::error | ( | void | ) | const |
Return the explanation message about the error.
Return the explanation message about the error.
static int coil::DynamicLib::ForExternTest | ( | void | ) | [inline, static] |
static int coil::DynamicLib::ForExternTest | ( | void | ) | [inline, static] |
int coil::DynamicLib::open | ( | const char * | dll_name, |
int | open_mode = COIL_DEFAULT_DYNLIB_MODE , |
||
int | close_handle_on_destruction = 1 |
||
) | [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. |
Definition at line 106 of file posix/coil/DynamicLib.cpp.
virtual int coil::DynamicLib::open | ( | const char * | dll_name, |
int | open_mode = COIL_DEFAULT_DYNLIB_MODE , |
||
int | close_handle_on_destruction = 1 |
||
) | [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. |
Definition at line 89 of file posix/coil/DynamicLib.cpp.
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. |
Definition at line 148 of file posix/coil/DynamicLib.cpp.
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. |
int coil::DynamicLib::m_closeflag [private] |
Definition at line 285 of file posix/coil/DynamicLib.h.
int coil::DynamicLib::m_error [private] |
Definition at line 287 of file posix/coil/DynamicLib.h.
void* coil::DynamicLib::m_handle [private] |
Definition at line 286 of file posix/coil/DynamicLib.h.
HINSTANCE coil::DynamicLib::m_handle [private] |
Definition at line 301 of file win32/coil/DynamicLib.h.
int coil::DynamicLib::m_mode [private] |
Definition at line 284 of file posix/coil/DynamicLib.h.
std::string coil::DynamicLib::m_name [private] |
Definition at line 283 of file posix/coil/DynamicLib.h.