RTXI  3.0.0
The Real-Time eXperiment Interface Reference Manual
Public Member Functions
DLL::Loader Class Reference

#include <dlplugin.hpp>

Collaboration diagram for DLL::Loader:
Collaboration graph

Public Member Functions

 Loader ()=default
 
 Loader (const Loader &)=delete
 
 Loader (Loader &&)=delete
 
Loaderoperator= (const Loader &)=delete
 
Loaderoperator= (Loader &&)=delete
 
 ~Loader ()
 
int load (const char *library)
 
void unload (const char *library)
 
template<typename T >
dlsym (const char *library, const char *symbol)
 
void unloadAll ()
 

Detailed Description

Definition at line 50 of file dlplugin.hpp.

Constructor & Destructor Documentation

◆ Loader() [1/3]

DLL::Loader::Loader()
default

◆ Loader() [2/3]

DLL::Loader::Loader(const Loader)
delete

◆ Loader() [3/3]

DLL::Loader::Loader(Loader && )
delete

◆ ~Loader()

DLL::Loader::~Loader()

Definition at line 25 of file dlplugin.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ dlsym()

template<typename T >
T DLL::Loader::dlsym(const char * library,
const char * symbol 
)
inline

Returns a pointer to the requested symbol inside the given library

Parameters
librarylocation of the loaded library.
symbolname of the symbol to load.
Returns
A pointer to the loaded symbol.

Definition at line 86 of file dlplugin.hpp.

◆ load()

int DLL::Loader::load(const char * library)

Function for loading a Plugin::Object from a shared library file.

Parameters
libraryThe file name of a shared library.
Returns
A pointer to the newly created Plugin::Object.
See also
Plugin::Object

Definition at line 30 of file dlplugin.cpp.

Here is the call graph for this function:

◆ operator=() [1/2]

Loader& DLL::Loader::operator=(const Loader)
delete

◆ operator=() [2/2]

Loader& DLL::Loader::operator=(Loader && )
delete

◆ unload()

void DLL::Loader::unload(const char * library)

Function for unloading a single Plugin::Object in the system.

Parameters
objectThe plugin object to be unloaded.

Definition at line 52 of file dlplugin.cpp.

◆ unloadAll()

void DLL::Loader::unloadAll()

Function for unloading all Plugin::Object's in the system.

Definition at line 65 of file dlplugin.cpp.


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