OpendTect  6.3
sharedlibs.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: A.H.Bril
7  Date: Jun 2006
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "basicmod.h"
13 #include "bufstring.h"
14 #include "gendefs.h"
15 #include "uistrings.h"
16 
17 #ifdef __win__
18 # include "windows.h"
19  typedef HMODULE Handletype;
20 #else
21  typedef void* Handletype;
22 #endif
23 
24 
31 {
32 public:
33 
34  SharedLibAccess(const char* file_name);
36  bool isOK() const { return handle_; }
37  const uiString& errMsg() const { return errmsg_; }
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 };
#define mExpClass(module)
Definition: commondefs.h:157
C & handle_
Definition: i_uiobjqtbody.h:109
bool isOK() const
Definition: sharedlibs.h:36
Definition: uistring.h:88
uiString errmsg_
Definition: sharedlibs.h:53
Gives access to shared libs on runtime. Plugins should be loaded via the Plugin Manager (see plugins...
Definition: sharedlibs.h:30
const uiString & errMsg() const
Definition: sharedlibs.h:37
void * Handletype
Definition: sharedlibs.h:21
Handletype handle()
Definition: sharedlibs.h:44
BufferString errmsg_
Definition: horizontracker.h:117
Handletype handle_
Definition: sharedlibs.h:52

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