DynamicLib class.
More...
#include <DynamicLib.h>
DynamicLib class.
Definition at line 48 of file posix/coil/DynamicLib.h.
coil::DynamicLib::DynamicLib |
( |
int |
close_handle_on_destruction = 1 | ) |
|
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.
coil::DynamicLib::~DynamicLib |
( |
| ) |
|
|
virtual |
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.
coil::DynamicLib::DynamicLib |
( |
int |
close_handle_on_destruction = 1 | ) |
|
Constructor.
Constructor
- Parameters
-
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
- Parameters
-
dynlib_name | Dynamic link library name. |
open_mode | Open mode. |
close_handle_on_destruction | Close flag. |
virtual coil::DynamicLib::~DynamicLib |
( |
| ) |
|
|
virtual |
coil::DynamicLib::DynamicLib |
( |
const DynamicLib & |
rhs | ) |
|
Copy Constructor.
Copy Constructor
- Parameters
-
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.
- Returns
- 0: successful, -1: failed
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.
- Returns
- 0: successful, -1: failed
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.
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)
static int coil::DynamicLib::ForExternTest |
( |
void |
| ) |
|
|
inlinestatic |
static int coil::DynamicLib::ForExternTest |
( |
void |
| ) |
|
|
inlinestatic |
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.
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
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.
Assignment operator.
Copy a Dynamic link library object.
- Parameters
-
rhs | Dynamic link library object of assignment source. |
- Returns
- Assignment result.
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.
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)
int coil::DynamicLib::m_closeflag |
|
private |
int coil::DynamicLib::m_error |
|
private |
void* coil::DynamicLib::m_handle |
|
private |
HINSTANCE coil::DynamicLib::m_handle |
|
private |
int coil::DynamicLib::m_mode |
|
private |
std::string coil::DynamicLib::m_name |
|
private |
The documentation for this class was generated from the following files: