OpendTect-6_4
6.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
od6.4.5
include
Basic
sharedlibs.h
Go to the documentation of this file.
1
#ifndef sharedlibs_h
2
#define sharedlibs_h
3
/*+
4
________________________________________________________________________
5
6
(C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7
Author: A.H.Bril
8
Date: Jun 2006
9
RCS: $Id$
10
________________________________________________________________________
11
12
-*/
13
14
#include "basicmod.h"
15
#include "
bufstring.h
"
16
#include "
gendefs.h
"
17
18
#ifdef __win__
19
# include "windows.h"
20
typedef
HMODULE
Handletype
;
21
#else
22
typedef
void
*
Handletype
;
23
#endif
24
25
30
mExpClass
(Basic)
SharedLibAccess
31
{
32
public
:
33
34
SharedLibAccess(
const
char
* file_name);
36
bool
isOK
()
const
{
return
handle_
; }
37
const
char
*
errMsg
()
const
{
return
errmsg_
.
buf
(); }
38
39
void
close();
40
41
void
* getFunction(
const
char
* function_name)
const
;
43
44
Handletype
handle
() {
return
handle_
; }
45
46
static
void
getLibName(
const
char
* modnm,
char
*);
49
50
protected
:
51
52
Handletype
handle_
;
53
BufferString
errmsg_
;
54
55
};
56
57
58
#endif
mExpClass
#define mExpClass(module)
Definition:
commondefs.h:160
handle_
C & handle_
Definition:
i_uiobjqtbody.h:110
SharedLibAccess::errmsg_
BufferString errmsg_
Definition:
sharedlibs.h:53
SharedLibAccess::isOK
bool isOK() const
Definition:
sharedlibs.h:36
bufstring.h
gendefs.h
SharedLibAccess::errMsg
const char * errMsg() const
Definition:
sharedlibs.h:37
SharedLibAccess
Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins...
Definition:
sharedlibs.h:30
OD::String::buf
const char * buf() const
Definition:
odstring.h:47
Handletype
void * Handletype
Definition:
sharedlibs.h:22
SharedLibAccess::handle
Handletype handle()
Definition:
sharedlibs.h:44
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition:
bufstring.h:40
MPE::errmsg_
BufferString errmsg_
Definition:
horizontracker.h:119
SharedLibAccess::handle_
Handletype handle_
Definition:
sharedlibs.h:52
Generated at for the
OpendTect
seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019