loading of a library at runtime More...
#include <IpLibraryLoader.hpp>
Public Member Functions | |
LibraryLoader (const std::string &libname_) | |
constructor | |
~LibraryLoader () | |
destructor | |
void | loadLibrary () |
tries to load library | |
void | unloadLibrary () |
unload library, if loaded | |
void * | loadSymbol (const std::string &symbolname) |
tries to load symbol | |
Public Member Functions inherited from Ipopt::ReferencedObject | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Private Member Functions | |
LibraryLoader (const LibraryLoader &) | |
unimplemented copy constructor | |
LibraryLoader & | operator= (const LibraryLoader &) |
unimplemented assigment operator | |
Private Attributes | |
std::string | libname |
void * | libhandle |
loading of a library at runtime
wrapper around dlopen()/dlsym() and variants
Definition at line 27 of file IpLibraryLoader.hpp.
|
private |
unimplemented copy constructor
|
inline |
constructor
libname_ | full name of library, can include path |
Definition at line 40 of file IpLibraryLoader.hpp.
|
inline |
destructor
Definition at line 48 of file IpLibraryLoader.hpp.
|
private |
unimplemented assigment operator
void Ipopt::LibraryLoader::loadLibrary | ( | ) |
tries to load library
void Ipopt::LibraryLoader::unloadLibrary | ( | ) |
unload library, if loaded
tries to load symbol
calls loadLibrary() if no library loaded yet
symbolname | base name of symbol |
|
private |
Definition at line 30 of file IpLibraryLoader.hpp.
|
private |
Definition at line 31 of file IpLibraryLoader.hpp.