Platform independent dynamic library loader. More...
#include <fdynlib.h>

Public Member Functions | |
| FDynLibrary (const char *name=0, bool addExtension=true) | |
| Constructor. | |
| ~FDynLibrary () | |
| Destructor. | |
| bool | init (const char *name, bool addExtension=true) |
| Loads the library if not already loaded. | |
| void * | getProcAddress (const char *name) |
Returns the address of the procedure name. | |
| bool | isLoaded () |
| Returns when the library was successfully loaded. | |
| bool | unload () |
| Unloads the library if it is loaded. | |
| void * | getPlatformInstance () const |
| Returns the platform dependent representation of the library instance. | |
Data Fields | |
| OBJ_METHODS(FDynLibrary, FObject) protected void * | instance |
Platform independent dynamic library loader.
| FDynLibrary | ( | const char * | name = 0, |
|
| bool | addExtension = true | |||
| ) |
Constructor.
Loads the specified dynamic library.
| [in] | name | the path of the library to load. |
| [in] | addExtension | if true append the platform dependent default extension to name. |
name specifies a full path, the FDynLibrary searches only that path for the library.name specifies a relative path or a name without path, FDynLibrary uses a standard search strategy of the current platform to find the library;name is NULL the library is not loaded.| ~FDynLibrary | ( | ) |
Destructor.
The destructor unloads the library.
| bool init | ( | const char * | name, | |
| bool | addExtension = true | |||
| ) |
Loads the library if not already loaded.
This function is normally called by FDynLibrary().
| void * getProcAddress | ( | const char * | name | ) |
Returns the address of the procedure name.
| bool isLoaded | ( | ) | [inline] |
Returns when the library was successfully loaded.
| bool unload | ( | ) |
Unloads the library if it is loaded.
This function is called by ~FDynLibrary ().
| void* getPlatformInstance | ( | ) | const [inline] |
Returns the platform dependent representation of the library instance.
| OBJ_METHODS (FDynLibrary, FObject) protected void* instance |