A convenience class for loading Plugin objects. More...
#include <PluginLoader.h++>
Public Member Functions | |
| PluginLoader (const String &path=String::null) | |
| Construct a new PluginLoader with the specified path. | |
| ~PluginLoader () | |
| Destructor. | |
| void | setPath (const String &path) |
| Set the plugin file path. | |
| String | getPath () const |
| Get the plugin file path. | |
| void | load () throw (IOException) |
| Load the plugin. | |
| void | unload () throw () |
| Unload the plugin. | |
| bool | isLoaded () const |
| Determine if the plugin is loaded. | |
| String | getName () |
| Get the plugin name. | |
| String | getVersion () |
| Get the plugin version number. | |
| String | getAuthor () |
| Get the plugin author information. | |
| String | getClassName () |
| Get the plugin class name. | |
| String | getBuildDate () |
| Get the plugin build date & time. | |
| template<class T > | |
| T * | newInstance () |
| Construct a new instance of a plugin of type T, where T is a subclass of Plugin. | |
A convenience class for loading Plugin objects.
The template parameter T should be a suitable subclass of Plugin.
| PluginLoader | ( | const String & | path = String::null |
) |
Construct a new PluginLoader with the specified path.
| path | The path to the loadable object file from which the plugin will be loaded. |
| ~PluginLoader | ( | ) |
Destructor.
Unloads the plugin.
| String getAuthor | ( | ) |
Get the plugin author information.
| String getBuildDate | ( | ) |
Get the plugin build date & time.
| String getClassName | ( | ) |
Get the plugin class name.
| String getName | ( | ) |
Get the plugin name.
| String getPath | ( | ) | const [inline] |
Get the plugin file path.
| String getVersion | ( | ) |
Get the plugin version number.
| bool isLoaded | ( | ) | const [inline] |
Determine if the plugin is loaded.
| void load | ( | ) | throw (IOException) [inline] |
Load the plugin.
If the plugin is already loaded, the method has no effect.
| IOException | If the object could not be loaded, or if no path has been specified. |
| T* newInstance | ( | ) | [inline] |
| void setPath | ( | const String & | path | ) | [inline] |
Set the plugin file path.
If the plugin is loaded, the call has no effect.
| void unload | ( | ) | throw () [inline] |
Unload the plugin.
If the plugin has not been loaded, the method has no effect.
1.6.3