Handling a shared library as an ArkScript plugin.
More...
#include <Plugin.hpp>
Handling a shared library as an ArkScript plugin.
Definition at line 37 of file Plugin.hpp.
◆ SharedLibrary() [1/3]
Ark::internal::SharedLibrary::SharedLibrary |
( |
| ) |
|
Construct a new Shared Library object.
Definition at line 9 of file Plugin.cpp.
◆ SharedLibrary() [2/3]
Ark::internal::SharedLibrary::SharedLibrary |
( |
const SharedLibrary & |
| ) |
|
|
delete |
Disable copy semantics as this contains a pointer.
◆ SharedLibrary() [3/3]
Ark::internal::SharedLibrary::SharedLibrary |
( |
const std::string & |
path | ) |
|
|
explicit |
Construct a new Shared Library object.
- Parameters
-
path | path to the shared library |
Definition at line 15 of file Plugin.cpp.
References load(), and m_path.
◆ ~SharedLibrary()
Ark::internal::SharedLibrary::~SharedLibrary |
( |
| ) |
|
◆ get()
template<typename T >
T Ark::internal::SharedLibrary::get |
( |
const std::string & |
procname | ) |
|
|
inline |
Return a function from the shared library.
- Template Parameters
-
T | the type of the function to retrieve |
- Parameters
-
procname | the name of the function to retrieve |
- Returns
- T the function from the shared library, if it was found
Definition at line 89 of file Plugin.hpp.
◆ load()
void Ark::internal::SharedLibrary::load |
( |
const std::string & |
path | ) |
|
◆ operator=()
◆ path()
const std::string & Ark::internal::SharedLibrary::path |
( |
| ) |
const |
|
inline |
◆ unload()
void Ark::internal::SharedLibrary::unload |
( |
| ) |
|
◆ m_loaded
bool Ark::internal::SharedLibrary::m_loaded |
|
private |
◆ m_path
std::string Ark::internal::SharedLibrary::m_path |
|
private |
The documentation for this class was generated from the following files:
- /Users/fola/Documents/ArkScript/Ark/include/Ark/VM/Plugin.hpp
- /Users/fola/Documents/ArkScript/Ark/src/arkreactor/VM/Plugin.cpp