Class for managing dynamic libraries. More...
#include <Inventor/sys/SoDynamicLibManager.h>
Static Public Member Functions | |
static SbBool | loadLibrary (const SbString &libName, const bool reportError=true) |
Loads a dynamic library using the specified libName. | |
static SbBool | unloadLibrary (const SbString &libName) |
Unloads a dynamic library previously loaded by the above method. | |
static void | unloadAllLibraries () |
Unloads all dynamic libraries previously loaded by the class. | |
static SbBool | isLibraryLoaded (const SbString &libName) |
Inquires if the given library is already loaded by this class. | |
static void * | lookUpFunction (const SbString &libName, const SbString &funcName, const bool reportError=true) |
Inquires if the specified function is available in the specified library. | |
static int | getLoadedLibraryList (SbString *&libList) |
Allocates an array and fills it with the names of the libraries loaded by this class. | |
static SbString | getLibrarySuffix () |
Returns the dynamic library suffix used on the current operating system. | |
static SbString | getLibraryFromSymbol (void *symbol) |
Returns the full path of the library that contains the given symbol. | |
Class for managing dynamic libraries.
This class is used to dynamically load/unload dynamic libraries and can be used to inquire if a specified function is available within a specified library.
Definition at line 42 of file SoDynamicLibManager.h.
|
static |
Returns the full path of the library that contains the given symbol.
This function is not available on all platforms and will return an empty string on some Unix systems.
|
static |
Returns the dynamic library suffix used on the current operating system.
|
static |
Allocates an array and fills it with the names of the libraries loaded by this class.
Returns the number of elements in the array.
Inquires if the given library is already loaded by this class.
|
static |
Loads a dynamic library using the specified libName.
libName can include an absolute or relative path. If no path is supplied, the library will be searched for in the following paths:
|
static |
Inquires if the specified function is available in the specified library.
Open Inventor will load the specified library if it is not already loaded.
|
static |
Unloads all dynamic libraries previously loaded by the class.
Unloads a dynamic library previously loaded by the above method.