Object for loading and unloading SyntLab-DM Dynamic Modules which are API-agnostic DLLs (Windows) or dylibs (MacOS).
More...
#include <modulegetter.h>
Object for loading and unloading SyntLab-DM Dynamic Modules which are API-agnostic DLLs (Windows) or dylibs (MacOS).
- These use longstanding and very basic functions for DLL management; these functions are extremely well documented.
- The load/unload functions are static and so may be invoked without an underlying object declaration
- It is important to retain the module handle that is returned from the creation functions; this handle is required to unload the module at destruction time.
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ ModuleGetter()
ModuleGetter::ModuleGetter |
( |
| ) |
|
|
inline |
empty constructor/destructor
◆ loadSynthDll()
Loads a MacOS dylib.
two functions only: load and unload
- opens the dylib
- queries for creation function
- uses returned function pointer to create module
- Parameters
-
moduleName | the name of the file, e.g. biquadfilters.dylib |
- Returns
- a pointer to the object if sucessful, nullptr otherwise
◆ unLoadSynthDll()
bool ModuleGetter::unLoadSynthDll |
( |
void * |
moduleHandle | ) |
|
|
static |
Unload a MacOS dylib.
- Parameters
-
moduleHandle | the cached handle that was returned when the object was created. |
- Returns
- true if successful
The documentation for this class was generated from the following files: