![]() |
My Project
|
Plugin for loading dynamic libraries. More...
#include <Plugin.h>
Public Member Functions | |
| Plugin (const std::string filename) | |
| Constructor. More... | |
| Plugin (const Plugin &plugin) | |
| Copy constructor. More... | |
| Plugin & | operator= (const Plugin &plugin) |
| Assignment operator. More... | |
| ~Plugin () | |
| Destructor. | |
| void * | resolve (const char *symbol) |
| Resolves the address of a symbol. More... | |
Plugin for loading dynamic libraries.
Plugin class for loading dynamic libraires. The library is loaded during construction and unloaded during destruction.
| 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. |
Assignment operator.
| plugin | The Plugin to copy. |
| void* 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. |