Public Member Functions | List of all members
DynLibManager Class Reference

Manager for dynamically loaded libraries. More...

#include <DynLib.hpp>

Public Member Functions

DynLibload (std::string const &path)
 Loads a library, if it has not been loaded yet. More...
void unload (DynLib *lib)
 Unloads a library. More...
void unloadAll ()
 Unload all currently loaded libraries. More...
 ~DynLibManager ()
 Destructor. More...

Detailed Description

Manager for dynamically loaded libraries.

Keeps track of all open libraries, opens libraries as needed and returns references to already-open libraries.

Definition at line 109 of file DynLib.hpp.

Constructor & Destructor Documentation


Definition at line 187 of file DynLib.cpp.

Member Function Documentation

DynLib * load ( std::string const &  path)

Loads a library, if it has not been loaded yet.

If it has already been loaded, this function increments its reference count.

pathThe path to the library. The extension can be omitted.
A handle to the opened library.
See also

Definition at line 193 of file DynLib.cpp.

void unload ( DynLib lib)

Unloads a library.

This function decrements the reference count of the library. The library will be actually unlinked when there are no more references to it.

libThe library to be unloaded.
See also

Definition at line 211 of file DynLib.cpp.

void unloadAll ( )

Unload all currently loaded libraries.

Definition at line 232 of file DynLib.cpp.

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