SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions
soloader.h File Reference
#include <string>
#include <dlfcn.h>
#include <Core/Utils/Legacy/share.h>

Go to the source code of this file.

Typedefs

typedef void * LIBRARY_HANDLE
 

Functions

SCISHARE void * GetLibrarySymbolAddress (const std::string libname, const std::string symbolname, std::string &errormsg)
 
void * GetLibrarySymbolAddress (const std::string libname, const std::string symbolname)
 
SCISHARE LIBRARY_HANDLE GetLibraryHandle (const std::string libname, std::string &errormsg)
 
LIBRARY_HANDLE GetLibraryHandle (const std::string libname)
 
LIBRARY_HANDLE GetLibraryHandle ()
 
SCISHARE void * GetHandleSymbolAddress (LIBRARY_HANDLE handle, const std::string symbolname, std::string &errormsg)
 
SCISHARE void CloseLibrary (LIBRARY_HANDLE)
 
SCISHARE LIBRARY_HANDLE findLib (std::string lib, std::string &errormsg)
 
LIBRARY_HANDLE findLib (std::string lib)
 
SCISHARE LIBRARY_HANDLE FindLibInPath (const std::string &lib, const std::string &path, std::string &errormsg)
 
SCISHARE LIBRARY_HANDLE FindLibInPath (const std::string &lib, const std::string &path)
 

Typedef Documentation

typedef void* LIBRARY_HANDLE

Function Documentation

SCISHARE void CloseLibrary ( LIBRARY_HANDLE  )

CloseLibrary()

disassociates the given library handle from the calling process.

SCISHARE LIBRARY_HANDLE findLib ( std::string  lib,
std::string &  errormsg 
)

SOError() returns the last error generated by one of the above functions. SCISHARE const char* SOError();

LIBRARY_HANDLE findLib ( std::string  lib)
inline
SCISHARE LIBRARY_HANDLE FindLibInPath ( const std::string &  lib,
const std::string &  path,
std::string &  errormsg 
)
SCISHARE LIBRARY_HANDLE FindLibInPath ( const std::string &  lib,
const std::string &  path 
)
inline
SCISHARE void* GetHandleSymbolAddress ( LIBRARY_HANDLE  handle,
const std::string  symbolname,
std::string &  errormsg 
)

GetHandleSymbolAddress() returns a pointer to the data or function called "symbolname" from within the shared library with handle "handle"

SCISHARE LIBRARY_HANDLE GetLibraryHandle ( const std::string  libname,
std::string &  errormsg 
)

GetLibraryHandle() opens, and returns the handle to, the library module called "libname"

LIBRARY_HANDLE GetLibraryHandle ( const std::string  libname)
inline
LIBRARY_HANDLE GetLibraryHandle ( )
inline
SCISHARE void* GetLibrarySymbolAddress ( const std::string  libname,
const std::string  symbolname,
std::string &  errormsg 
)

GetLibrarySymbolAddress() returns a pointer to the data or function called "symbolname" from within the shared library called "libname"

void* GetLibrarySymbolAddress ( const std::string  libname,
const std::string  symbolname 
)
inline