Plugin for loading dynamic libraries. More...
#include <Plugin.h>
| Public Member Functions | |
| Plugin & | operator= (const Plugin &plugin) | 
| Assignment operator. | |
| Plugin (const std::string filename) | |
| Constructor. | |
| Plugin (const Plugin &plugin) | |
| Copy constructor. | |
| void * | resolve (const char *symbol) | 
| Resolves the address of a symbol. | |
| ~Plugin () | |
| Destructor. | |
| Private Attributes | |
| PluginPrivate * | d | 
| int * | mReferenceCount | 
Plugin for loading dynamic libraries.
Plugin class for loading dynamic libraires. The library is loaded during construction and unloaded during destruction.
| alvar::Plugin::Plugin | ( | const std::string | filename | ) | 
Constructor.
Constructing a Plugin object will attempt to load the plugin dynamic library.
| filename | The filename of the dynamic library to load. | 
| AlvarException | An exeption is thrown if the library can't be loaded. | 
Definition at line 30 of file Plugin.cpp.
| alvar::Plugin::Plugin | ( | const Plugin & | plugin | ) | 
Destructor.
Definition at line 52 of file Plugin.cpp.
Assignment operator.
| plugin | The Plugin to copy. | 
Definition at line 44 of file Plugin.cpp.
| void * alvar::Plugin::resolve | ( | const char * | symbol | ) | 
Resolves the address of a symbol.
The symbol must be exported from the library as a C function.
| symbol | The signature of the symbol. | 
| AlvarException | An exception is thrown if the symbol is not found. | 
Definition at line 61 of file Plugin.cpp.
| PluginPrivate* alvar::Plugin::d  [private] | 
| int* alvar::Plugin::mReferenceCount  [private] |