OpendTect-6_4  6.4
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 
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 
54 
55 };
56 
57 
58 #endif
#define mExpClass(module)
Definition: commondefs.h:160
C & handle_
Definition: i_uiobjqtbody.h:110
BufferString errmsg_
Definition: sharedlibs.h:53
bool isOK() const
Definition: sharedlibs.h:36
const char * errMsg() const
Definition: sharedlibs.h:37
Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins...
Definition: sharedlibs.h:30
const char * buf() const
Definition: odstring.h:47
void * Handletype
Definition: sharedlibs.h:22
Handletype handle()
Definition: sharedlibs.h:44
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
Handletype handle_
Definition: sharedlibs.h:52

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