OpendTect  7.0
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...
 
void close ()
 
const char * errMsg () const
 
void * getFunction (const char *function_name) const
 Difficult for C++ functions as the names are mangled. More...
 
Handletype handle ()
 
bool isOK () const
 

Static Public Member Functions

static void getLibName (const char *modnm, char *, int sz)
 returns lib name with ".dll" or "lib" and ".so"/".dylib" More...
 

Protected Attributes

BufferString errmsg_
 
Handletype handle_
 

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::SharedLibAccess ( const char *  file_name)

handle is only closed if you do it explicitly.

Member Function Documentation

◆ close()

void SharedLibAccess::close ( )

◆ errMsg()

const char* SharedLibAccess::errMsg ( ) const
inline

◆ getFunction()

void* SharedLibAccess::getFunction ( const char *  function_name) const

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

◆ getLibName()

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

returns lib name with ".dll" or "lib" and ".so"/".dylib"

◆ handle()

Handletype SharedLibAccess::handle ( )
inline

◆ isOK()

bool SharedLibAccess::isOK ( ) const
inline

Member Data Documentation

◆ errmsg_

BufferString SharedLibAccess::errmsg_
protected

◆ handle_

Handletype SharedLibAccess::handle_
protected

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