Public Member Functions | Private Attributes
alvar::Plugin Class Reference

Plugin for loading dynamic libraries. More...

#include <Plugin.h>

List of all members.

Public Member Functions

Pluginoperator= (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

PluginPrivated
int * mReferenceCount

Detailed Description

Plugin for loading dynamic libraries.

Plugin class for loading dynamic libraires. The library is loaded during construction and unloaded during destruction.

Definition at line 47 of file Plugin.h.


Constructor & Destructor Documentation

alvar::Plugin::Plugin ( const std::string  filename)

Constructor.

Constructing a Plugin object will attempt to load the plugin dynamic library.

Parameters:
filenameThe filename of the dynamic library to load.
Exceptions:
AlvarExceptionAn exeption is thrown if the library can't be loaded.

Definition at line 30 of file Plugin.cpp.

alvar::Plugin::Plugin ( const Plugin plugin)

Copy constructor.

Parameters:
pluginThe Plugin to copy.

Definition at line 37 of file Plugin.cpp.

Destructor.

Definition at line 52 of file Plugin.cpp.


Member Function Documentation

Plugin & alvar::Plugin::operator= ( const Plugin plugin)

Assignment operator.

Parameters:
pluginThe 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.

Parameters:
symbolThe signature of the symbol.
Returns:
The address of the symbol.
Exceptions:
AlvarExceptionAn exception is thrown if the symbol is not found.

Definition at line 61 of file Plugin.cpp.


Member Data Documentation

Definition at line 91 of file Plugin.h.

Definition at line 92 of file Plugin.h.


The documentation for this class was generated from the following files:


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 21:12:55