High level API to enable work with dynamically loadable shared libraries.
More...
#include <SharedLibrary.hpp>
High level API to enable work with dynamically loadable shared libraries.
◆ GetFormattedPath()
static String Arp::System::Commons::Runtime::SharedLibrary::GetFormattedPath |
( |
const String & |
path | ) |
|
|
static |
Formats the path depending on OS.
- Parameters
-
path | Path that shall be formatted. |
- Returns
- Formatted path.
◆ GetFunctionAddress()
void * Arp::System::Commons::Runtime::SharedLibrary::GetFunctionAddress |
( |
const String & |
symbolName | ) |
|
Returns the address where specified symbol is located in the memory.
- Parameters
-
symbolName | Name of queried symbol. |
- Returns
- Valid memory address on success, NULL if symbol could not be found.
◆ Load()
void Arp::System::Commons::Runtime::SharedLibrary::Load |
( |
const String & |
path | ) |
|
Loads the specified shared library.
Symbols exposed by the shared library are globally available after a successfull load.
- Parameters
-
path | The complete path to the library to load. |
- Exceptions
-
◆ ProbeLibrary()
static bool Arp::System::Commons::Runtime::SharedLibrary::ProbeLibrary |
( |
const String & |
path, |
|
|
String & |
probedPath |
|
) |
| |
|
static |
Probes the library
- Parameters
-
path | Path to library |
probedPath | Probed path to library |
- Returns
- true, if library could be probed. Otherwise false.
◆ Unload()
void Arp::System::Commons::Runtime::SharedLibrary::Unload |
( |
void |
| ) |
|
Unloads the shared library.
- Exceptions
-
The documentation for this class was generated from the following file: