Plugin for loading dynamic libraries. More...
#include <Plugin.h>
Public Member Functions | |
Plugin & | operator= (const Plugin &plugin) |
Assignment operator. More... | |
Plugin (const std::string filename) | |
Constructor. More... | |
Plugin (const Plugin &plugin) | |
Copy constructor. More... | |
void * | resolve (const char *symbol) |
Resolves the address of a symbol. More... | |
~Plugin () | |
Destructor. More... | |
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 | ) |
alvar::Plugin::~Plugin | ( | ) |
Destructor.
Definition at line 52 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.
|
private |