imodule 1.0.0
The contract every loadable module answers to
Loading...
Searching...
No Matches
SharedLibrary Class Reference

Une bibliotheque dynamique ouverte : elle se ferme avec l'objet. More...

#include <SharedLibrary.hpp>

Public Types

using Handle = void *
 

Public Member Functions

 SharedLibrary (std::string path)
 
 ~SharedLibrary ()
 
 SharedLibrary (const SharedLibrary &)=delete
 
SharedLibrary & operator= (const SharedLibrary &)=delete
 
template<typename T >
T symbol (const char *name) const
 Un symbole exporte, rendu comme un T.
 
const std::string & path () const
 Le chemin dont elle a ete ouverte.
 
Handle handle () const
 Le handle systeme, pour qui en a besoin.
 

Static Public Member Functions

static const char * extension ()
 L'extension des bibliotheques de cette plateforme.
 

Detailed Description

Une bibliotheque dynamique ouverte : elle se ferme avec l'objet.

Exceptions
std::runtime_errorsi l'ouverture echoue

Member Typedef Documentation

◆ Handle

using SharedLibrary::Handle = void *

Constructor & Destructor Documentation

◆ SharedLibrary() [1/2]

SharedLibrary::SharedLibrary ( std::string  path)
inlineexplicit

◆ ~SharedLibrary()

SharedLibrary::~SharedLibrary ( )
inline

◆ SharedLibrary() [2/2]

SharedLibrary::SharedLibrary ( const SharedLibrary &  )
delete

Member Function Documentation

◆ extension()

static const char * SharedLibrary::extension ( )
inlinestatic

L'extension des bibliotheques de cette plateforme.

◆ handle()

Handle SharedLibrary::handle ( ) const
inline

Le handle systeme, pour qui en a besoin.

◆ operator=()

SharedLibrary & SharedLibrary::operator= ( const SharedLibrary &  )
delete

◆ path()

const std::string & SharedLibrary::path ( ) const
inline

Le chemin dont elle a ete ouverte.

◆ symbol()

template<typename T >
T SharedLibrary::symbol ( const char *  name) const
inline

Un symbole exporte, rendu comme un T.

Parameters
name
Returns
T nul si le symbole est absent

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