Audaspace 1.4.0
A high level audio library.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
PluginManager Class Reference

This manager provides utilities for plugin loading. More...

#include <PluginManager.h>

Static Public Member Functions

static void * openLibrary (const std::string &path)
 Opens a shared library.
 
static void * lookupLibrary (void *handle, const std::string &name)
 Looks up a symbol from an opened library.
 
static void closeLibrary (void *handle)
 Closes an opened shared library.
 
static bool loadPlugin (const std::string &path)
 Loads a plugin from a file.
 
static void loadPlugins (const std::string &path="")
 Loads all plugins found in a folder.
 

Detailed Description

This manager provides utilities for plugin loading.

Member Function Documentation

◆ closeLibrary()

static void PluginManager::closeLibrary ( void *  handle)
static

Closes an opened shared library.

Parameters
handleThe handle to the library to be closed.

◆ loadPlugin()

static bool PluginManager::loadPlugin ( const std::string &  path)
static

Loads a plugin from a file.

Parameters
pathThe path to the file.
Returns
Whether the file could successfully be loaded.

◆ loadPlugins()

static void PluginManager::loadPlugins ( const std::string &  path = "")
static

Loads all plugins found in a folder.

Parameters
pathThe path to the folder containing the plugins.

◆ lookupLibrary()

static void * PluginManager::lookupLibrary ( void *  handle,
const std::string &  name 
)
static

Looks up a symbol from an opened library.

Parameters
handleThe handle to the opened library.
nameThe name of the symbol to look up.
Returns
The symbol or nullptr if the symbol was not found.

◆ openLibrary()

static void * PluginManager::openLibrary ( const std::string &  path)
static

Opens a shared library.

Parameters
pathThe path to the file.
Returns
A handle to the library or nullptr if opening failed.

The documentation for this class was generated from the following file: