#include <DynamicLibrary.hpp>
◆ DynamicLibrary() [1/4]
CU_API castor::DynamicLibrary::DynamicLibrary |
( |
Path const & | pathFile | ) |
|
|
explicitnoexcept |
Constructor, loads the library.
- Parameters
-
[in] | pathFile | The file path |
◆ DynamicLibrary() [2/4]
CU_API castor::DynamicLibrary::DynamicLibrary |
( |
String const & | pathFile | ) |
|
|
explicitnoexcept |
Constructor, loads the library.
- Parameters
-
[in] | pathFile | The file path |
◆ DynamicLibrary() [3/4]
Copy constructor.
- Parameters
-
◆ DynamicLibrary() [4/4]
Move constructor.
- Parameters
-
◆ ~DynamicLibrary()
CU_API castor::DynamicLibrary::~DynamicLibrary |
( |
| ) |
|
|
noexcept |
◆ getFunction() [1/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
char const * | name, |
|
|
FuncType & | function ) |
|
inlinenoexcept |
Retrieves a function.
- Parameters
-
[in] | function | Receives the function |
[in] | name | The function name |
- Returns
true
if the function was correctly retrieved
References getFunction(), and castor::makeString().
◆ getFunction() [2/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
FuncType & | function, |
|
|
char const * | name ) |
|
inlinenoexcept |
◆ getFunction() [3/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
FuncType & | function, |
|
|
String const & | name ) |
|
inlinenoexcept |
Retrieves a function.
- Parameters
-
[in] | function | Receives the function |
[in] | name | The function name |
- Returns
true
if the function was correctly retrieved
◆ getFunction() [4/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
FuncType & | function, |
|
|
wchar_t const * | name ) |
|
inlinenoexcept |
Retrieves a function.
- Parameters
-
[in] | function | Receives the function |
[in] | name | The function name |
- Returns
true
if the function was correctly retrieved
References getFunction(), and castor::makeString().
◆ getFunction() [5/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
String const & | name, |
|
|
FuncType & | function ) |
|
inlinenoexcept |
Retrieves a function.
- Parameters
-
[in] | function | Receives the function |
[in] | name | The function name |
- Returns
true
if the function was correctly retrieved
◆ getFunction() [6/6]
template<typename FuncType >
bool castor::DynamicLibrary::getFunction |
( |
wchar_t const * | name, |
|
|
FuncType & | function ) |
|
inlinenoexcept |
Retrieves a function.
- Parameters
-
[in] | function | Receives the function |
[in] | name | The function name |
- Returns
true
if the function was correctly retrieved
References getFunction(), and castor::makeString().
◆ getPath()
Path const & castor::DynamicLibrary::getPath |
( |
| ) |
const |
|
inline |
Retrieves the file path.
- Returns
- The file path
◆ isOpen()
bool castor::DynamicLibrary::isOpen |
( |
| ) |
const |
|
inline |
Tells if the DynamicLibrary is opened (loaded)
- Returns
true
if it is opened, false
if not
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
- Returns
- A reference to this DynamicLibrary
◆ operator=() [2/2]
Copy assignment operator.
- Parameters
-
- Returns
- A reference to this DynamicLibrary
The documentation for this class was generated from the following file: