Public Member Functions | Private Attributes | List of all members
alvar::Plugin Class Reference

Plugin for loading dynamic libraries. More...

#include <Plugin.h>

Public Member Functions

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

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.

alvar::Plugin::~Plugin ( )

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

PluginPrivate* alvar::Plugin::d
private

Definition at line 91 of file Plugin.h.

int* alvar::Plugin::mReferenceCount
private

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 Mon Jun 10 2019 12:47:04