MIRA
Public Member Functions | Protected Attributes | List of all members
SharedLibraryLoader Class Reference

Class for loading multiple shared libraries. More...

#include <utils/SharedLibrary.h>

Public Member Functions

void loadLibrary (const Path &library)
 Load a library and open it. More...
 
void loadLibraries (const Path &path)
 Load all libraries from a directory and open them. More...
 

Protected Attributes

std::list< SharedLibraryPtrmLibraries
 list of all loaded libraries More...
 

Detailed Description

Class for loading multiple shared libraries.

The class keeps track of the opened libraries and closes them upon destruction.

Member Function Documentation

◆ loadLibrary()

void loadLibrary ( const Path library)

Load a library and open it.

If the specified path does not contain a library extension, the operating system dependent library prefix and suffix are added to the library filename. This allows to specify libraries in an OS independent way.

Parameters
[in]libraryPath to the library file

◆ loadLibraries()

void loadLibraries ( const Path path)

Load all libraries from a directory and open them.

Parameters
[in]pathDirectory of the library files

Member Data Documentation

◆ mLibraries

std::list<SharedLibraryPtr> mLibraries
protected

list of all loaded libraries


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