#include <PluginMgr.h>
Public Methods | |
PluginMgr () | |
virtual | ~PluginMgr () |
int | load_static_plugins () |
Load any plugins are that statically linked into the application. Return true if successful, or false if no static plugins are available. More... | |
int | load_sharedlibrary_plugins (const char *path) |
Load the specified shared library and access all plugins found therein. Return the number of plugins found in the library, or -1 if an error occurred. More... | |
int | plugins (PluginList &, const char *=0, const char *=0) |
Return plugins for the specified type and/or name; omitting both returns all plugins. Stores plugins in the passed-in array and returns the number of plugins added to the list. More... | |
Protected Methods | |
int | add_plugin (const char *path, const char *file) |
Static Protected Methods | |
int | register_cb (void *, vmdplugin_t *) |
Protected Attributes | |
PluginList | pluginlist |
ResizeArray< void * > | handlelist |
int | num_in_library |
const char * | curpath |
path to plugin file currently being processed. More... |
Definition at line 40 of file PluginMgr.h.
|
Definition at line 57 of file PluginMgr.C. |
|
Definition at line 63 of file PluginMgr.C. References handlelist, ResizeArray< void * >::num, vmddlclose, and vmddlsym. |
|
|
|
Load the specified shared library and access all plugins found therein. Return the number of plugins found in the library, or -1 if an error occurred.
Definition at line 119 of file PluginMgr.C. References ResizeArray< void * >::append, curpath, ResizeArray< void * >::find, handlelist, num_in_library, register_cb, vmddlclose, vmddlerror, vmddlopen, and vmddlsym. Referenced by VMDApp::plugin_dlopen. |
|
Load any plugins are that statically linked into the application. Return true if successful, or false if no static plugins are available.
Definition at line 77 of file PluginMgr.C. References curpath, num_in_library, and register_cb. Referenced by VMDApp::VMDinit. |
|
Return plugins for the specified type and/or name; omitting both returns all plugins. Stores plugins in the passed-in array and returns the number of plugins added to the list.
Definition at line 156 of file PluginMgr.C. References ResizeArray< vmdplugin_t * >::append, ResizeArray< vmdplugin_t * >::num, and pluginlist. Referenced by VMDApp::get_plugin, VMDApp::guess_filetype, and VMDApp::list_plugins. |
|
Definition at line 89 of file PluginMgr.C. References ResizeArray< vmdplugin_t * >::append, curpath, ResizeArray< vmdplugin_t * >::num, num_in_library, plugincmp, and pluginlist. Referenced by load_sharedlibrary_plugins, and load_static_plugins. |
|
path to plugin file currently being processed.
Definition at line 66 of file PluginMgr.h. Referenced by load_sharedlibrary_plugins, load_static_plugins, and register_cb. |
|
Definition at line 62 of file PluginMgr.h. Referenced by load_sharedlibrary_plugins, and ~PluginMgr. |
|
Definition at line 65 of file PluginMgr.h. Referenced by load_sharedlibrary_plugins, load_static_plugins, and register_cb. |
|
Definition at line 61 of file PluginMgr.h. Referenced by plugins, and register_cb. |