cAudio::cPluginManager Class Reference

Inheritance diagram for cAudio::cPluginManager:
Inheritance graph
[legend]
Collaboration diagram for cAudio::cPluginManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool installPlugin (IAudioPlugin *plugin, const char *name)
 Installs a plugin using a statically linked plugin implementation.
virtual bool installPlugin (const char *filename, const char *name)
 Installs a plugin from a dynamically linked library on your hard drive.
virtual bool checkForPlugin (const char *name)
 Checks for the existance of a plugin with the supplied name.
virtual IAudioPlugingetPlugin (const char *name)
 Returns a plugin interface for a plugin with the supplied name.
virtual unsigned int getPluginCount ()
 Returns the total number of installed plugins.
std::vector< IAudioPlugin * > getPluginList ()
virtual void uninstallPlugin (IAudioPlugin *plugin)
 Removes a plugin installed via statically linked reference.
virtual void uninstallPlugin (const char *name)
 Removes a plugin with the specified name.
void autoLoadPlugins ()

Static Public Member Functions

static cPluginManagerInstance ()

Protected Attributes

std::map< std::string,
IAudioPlugin * > 
RegisteredPlugins
std::map< IAudioPlugin
*, DYNLIB_HANDLE > 
DynamicallyLoadedPlugins

Detailed Description

Definition at line 52 of file cPluginManager.h.


Member Function Documentation

bool cAudio::cPluginManager::checkForPlugin ( const char *  name  )  [virtual]

Checks for the existance of a plugin with the supplied name.

Parameters:
name,: Name of the plugin to check for.

Implements cAudio::IPluginManager.

Definition at line 70 of file cPluginManager.cpp.

IAudioPlugin * cAudio::cPluginManager::getPlugin ( const char *  name  )  [virtual]

Returns a plugin interface for a plugin with the supplied name.

Parameters:
name,: Name of the plugin to check return.
Returns:
A pointer to the plugin interface or NULL if it could not be found.

Implements cAudio::IPluginManager.

Definition at line 75 of file cPluginManager.cpp.

bool cAudio::cPluginManager::installPlugin ( const char *  filename,
const char *  name 
) [virtual]

Installs a plugin from a dynamically linked library on your hard drive.

Parameters:
filename,: Path to the dll/so/dynlib on your hard drive.
name,: Optional name for the plugin. Pass NULL to have the plugin use its default name.
Returns:
True if plugin was installed successfully.

Implements cAudio::IPluginManager.

Definition at line 48 of file cPluginManager.cpp.

bool cAudio::cPluginManager::installPlugin ( IAudioPlugin plugin,
const char *  name 
) [virtual]

Installs a plugin using a statically linked plugin implementation.

Parameters:
plugin,: Pointer to a plugin implementation to install.
name,: Optional name for the plugin. Pass NULL to have the plugin use its default name.
Returns:
True if plugin was installed successfully.

Implements cAudio::IPluginManager.

Definition at line 31 of file cPluginManager.cpp.

void cAudio::cPluginManager::uninstallPlugin ( const char *  name  )  [virtual]

Removes a plugin with the specified name.

Parameters:
name,: Name of the plugin to uninstall.

Implements cAudio::IPluginManager.

Definition at line 128 of file cPluginManager.cpp.

void cAudio::cPluginManager::uninstallPlugin ( IAudioPlugin plugin  )  [virtual]

Removes a plugin installed via statically linked reference.

Parameters:
plugin,: Pointer to the plugin implementation to uninstall.

Implements cAudio::IPluginManager.

Definition at line 100 of file cPluginManager.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations

Generated on Sat Feb 20 22:55:37 2010 for cAudio by  doxygen 1.6.2