OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SharedLibAccess Class Reference

Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins.h). More...

Public Member Functions

 SharedLibAccess (const char *file_name)
 handle is only closed if you do it explicitly. More...
 
bool isOK () const
 
const char * errMsg () const
 
void close ()
 
void * getFunction (const char *function_name) const
 Difficult for C++ functions as the names are mangled. More...
 
Handletype handle ()
 

Static Public Member Functions

static void getLibName (const char *modnm, char *)
 

Protected Attributes

Handletype handle_
 
BufferString errmsg_
 

Detailed Description

Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins.h).

Constructor & Destructor Documentation

SharedLibAccess::SharedLibAccess ( const char *  file_name)

handle is only closed if you do it explicitly.

Member Function Documentation

void SharedLibAccess::close ( )
const char* SharedLibAccess::errMsg ( ) const
inline
void* SharedLibAccess::getFunction ( const char *  function_name) const

Difficult for C++ functions as the names are mangled.

static void SharedLibAccess::getLibName ( const char *  modnm,
char *   
)
static

returns lib name with ".dll" or "lib" and ".so"/".dylib" output can be up to 255 chars long (guaranteed maximum)

Handletype SharedLibAccess::handle ( )
inline
bool SharedLibAccess::isOK ( ) const
inline

Member Data Documentation

BufferString SharedLibAccess::errmsg_
protected
Handletype SharedLibAccess::handle_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019