![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class provides a platform independent way of loading and querying a Shared Library for functions.
The user of this class is still responsible for ensuring the method name is correctly defined (C++ mangling) and that the function is used correctly.
Public Types | |
typedef void * | LibraryHandle |
Static Public Member Functions | |
static bool | freeLibrary (LibraryHandle libraryHandle) |
static void * | getFunctionAddress (LibraryHandle libraryHandle, const char *functionName) |
static LibraryHandle | loadLibrary (const char *libraryName) |
typedef void* TSLLibraryHelper::LibraryHandle |
Platform specific handle to a shared library.
|
static |
This method closes the library referenced by libraryHandle.
libraryHandle | A library handle returned by a call to loadLibrary. |
|
static |
This method returns the function address for the requested function.
The user is responsible for making sure the function name passed matches the representation in the shared library.
The simplest approach to ensure this is to make sure that the functions are declared 'extern "C"'. C++ compilers may generate different mangled names from each other.
libraryHandle | the library handle returned by a call to loadLibrary. |
functionName | the function name to lookup in the shared library. |
|
static |
This method opens the 'libraryName' and returns a platform specific library handle.
To close/unload the library call freeLibrary.
libraryName | the shared library to open |