Public Member Functions | Static Public Member Functions | List of all members
pluma::DLibrary Class Reference

Manages a Dynamic Linking Library. More...

#include <DLibrary.hpp>

Public Member Functions

 ~DLibrary ()
 Destructor. More...
 
void * getSymbol (const std::string &symbol)
 Get a symbol from the library. More...
 

Static Public Member Functions

static DLibraryload (const std::string &path)
 Load a library. More...
 

Detailed Description

Manages a Dynamic Linking Library.

Definition at line 49 of file DLibrary.hpp.

Constructor & Destructor Documentation

pluma::DLibrary::~DLibrary ( )

Destructor.

Close and free the opened library (if any).

Definition at line 67 of file DLibrary.cpp.

Member Function Documentation

void * pluma::DLibrary::getSymbol ( const std::string &  symbol)

Get a symbol from the library.

Parameters
symbolSymbol that we're looking for.
Returns
Pointer to what the symbol refers to, or NULL if the symbol is not found.

Definition at line 79 of file DLibrary.cpp.

DLibrary * pluma::DLibrary::load ( const std::string &  path)
static

Load a library.

Parameters
pathPath to the library.
Returns
Pointer to the loaded library, or NULL if failed.

Definition at line 37 of file DLibrary.cpp.


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