DynamicLib class.
More...
#include <DynamicLib.h>
DynamicLib class.
Definition at line 48 of file posix/coil/DynamicLib.h.
◆ DynamicLib() [1/6]
coil::DynamicLib::DynamicLib |
( |
int |
close_handle_on_destruction = 1 | ) |
|
◆ DynamicLib() [2/6]
coil::DynamicLib::DynamicLib |
( |
const char * |
dynlib_name, |
|
|
int |
open_mode = COIL_DEFAULT_DYNLIB_MODE , |
|
|
int |
close_handle_on_destruction = 1 |
|
) |
| |
Constructor.
Constructor
- Parameters
-
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.
◆ ~DynamicLib() [1/2]
coil::DynamicLib::~DynamicLib |
( |
| ) |
|
|
virtual |
◆ DynamicLib() [3/6]
coil::DynamicLib::DynamicLib |
( |
const DynamicLib & |
rhs | ) |
|
Copy Constructor.
Copy Constructor
- Parameters
-
rhs | Dynamic link library object of copy source. |
Definition at line 73 of file posix/coil/DynamicLib.cpp.
◆ DynamicLib() [4/6]
coil::DynamicLib::DynamicLib |
( |
int |
close_handle_on_destruction = 1 | ) |
|
Constructor.
Constructor
- Parameters
-
close_handle_on_destruction | Close flag. |
◆ DynamicLib() [5/6]
coil::DynamicLib::DynamicLib |
( |
const char * |
dynlib_name, |
|
|
int |
open_mode = COIL_DEFAULT_DYNLIB_MODE , |
|
|
int |
close_handle_on_destruction = 1 |
|
) |
| |
Constructor.
Constructor
- Parameters
-
dynlib_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
◆ ~DynamicLib() [2/2]
virtual coil::DynamicLib::~DynamicLib |
( |
| ) |
|
|
virtual |
◆ DynamicLib() [6/6]
coil::DynamicLib::DynamicLib |
( |
const DynamicLib & |
rhs | ) |
|
Copy Constructor.
Copy Constructor
- Parameters
-
rhs | Dynamic link library object of copy source. |
◆ close() [1/2]
int coil::DynamicLib::close |
( |
void |
| ) |
|
|
virtual |
Unload of the Dynamic link library.
Unload of the Dynamic link library.
- Returns
- 0: successful, -1: failed
Definition at line 127 of file posix/coil/DynamicLib.cpp.
◆ close() [2/2]
virtual int coil::DynamicLib::close |
( |
void |
| ) |
|
|
virtual |
Unload of the Dynamic link library.
Unload of the Dynamic link library.
- Returns
- 0: successful, -1: failed
◆ error() [1/2]
const char * coil::DynamicLib::error |
( |
void |
| ) |
const |
Return the explanation message about the error.
Return the explanation message about the error.
- Returns
- Error message.(NULL: not an error)
Definition at line 161 of file posix/coil/DynamicLib.cpp.
◆ error() [2/2]
const char* coil::DynamicLib::error |
( |
void |
| ) |
const |
Return the explanation message about the error.
Return the explanation message about the error.
- Returns
- Error message.(NULL: not an error)
◆ ForExternTest() [1/2]
static int coil::DynamicLib::ForExternTest |
( |
void |
| ) |
|
|
inlinestatic |
◆ ForExternTest() [2/2]
static int coil::DynamicLib::ForExternTest |
( |
void |
| ) |
|
|
inlinestatic |
◆ open() [1/2]
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.
- Parameters
-
dll_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
- Returns
- 0: successful, -1: failed
Definition at line 106 of file posix/coil/DynamicLib.cpp.
◆ open() [2/2]
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.
- Parameters
-
dll_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
- Returns
- 0: successful, -1: failed
◆ operator=() [1/2]
Assignment operator.
Copy a Dynamic link library object.
- Parameters
-
rhs | Dynamic link library object of assignment source. |
- Returns
- Assignment result.
Definition at line 89 of file posix/coil/DynamicLib.cpp.
◆ operator=() [2/2]
Assignment operator.
Copy a Dynamic link library object.
- Parameters
-
rhs | Dynamic link library object of assignment source. |
- Returns
- Assignment result.
◆ symbol() [1/2]
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.
- Parameters
-
- Returns
- Memory address.(NULL: failed)
Definition at line 148 of file posix/coil/DynamicLib.cpp.
◆ symbol() [2/2]
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.
- Parameters
-
- Returns
- Memory address.(NULL: failed)
◆ m_closeflag
int coil::DynamicLib::m_closeflag |
|
private |
◆ m_error
int coil::DynamicLib::m_error |
|
private |
◆ m_handle [1/2]
void* coil::DynamicLib::m_handle |
|
private |
◆ m_handle [2/2]
HINSTANCE coil::DynamicLib::m_handle |
|
private |
◆ m_mode
int coil::DynamicLib::m_mode |
|
private |
◆ m_name
std::string coil::DynamicLib::m_name |
|
private |
The documentation for this class was generated from the following files: