modulemanager 1.0.0
Finds, loads and keeps track of modules at runtime
Loading...
Searching...
No Matches
SharedLibrary Class Reference

Encapsule le handle d'une bibliotheque dynamique. Rien de plus. 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
 
const std::string & path () const
 
Handle handle () const
 

Static Public Member Functions

static const char * extension ()
 

Detailed Description

Encapsule le handle d'une bibliotheque dynamique. Rien de plus.

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

◆ handle()

Handle SharedLibrary::handle ( ) const
inline

◆ operator=()

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

◆ path()

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

◆ symbol()

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

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