OpendTect-6_4  6.4
pluginbase.h
Go to the documentation of this file.
1 #ifndef pluginbase_h
2 #define pluginbase_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; No license.
7  Author: A.H.Bril
8  Date: June 2006
9  RCS: $Id$
10 ________________________________________________________________________
11 
12  This header file is intended for programmers who want to use their code for
13  both OpendTect plugins and programs not using OpendTect. You can freely add
14  plugin init functions in your code without linking with OpendTect libs.
15 
16  Of course, if you _do_ link with the OpendTect libs, the OpendTect license
17  becomes active.
18 
19 -*/
20 
21 
22 /* If you do not use OpendTect stuff here, you need a way to figure out whether
23  you are in the C++ world and add something like:
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 */
29 
30 #define PI_AUTO_INIT_NONE 0
31 #define PI_AUTO_INIT_EARLY 1
32 #define PI_AUTO_INIT_LATE 2
33 
52 struct PluginInfo
53 {
55 
56  PluginInfo(const char* dispname, const char* prodnm, const char* creator,
57  const char* version, const char* text, LicenseType lt=GPL )
58  : dispname_(dispname)
59  , productname_(prodnm)
60  , creator_(creator)
61  , version_(version)
62  , text_(text)
63  , lictype_(lt)
64  {}
65 
66  const char* dispname_;
67  const char* productname_;
68  const char* creator_;
69  const char* version_;
70  const char* text_;
72 };
73 
74 /* } -- for the extern "C" */
75 
76 #endif
const char * dispname_
Definition: pluginbase.h:66
Definition: pluginbase.h:54
PluginInfo(const char *dispname, const char *prodnm, const char *creator, const char *version, const char *text, LicenseType lt=GPL)
Definition: pluginbase.h:56
const char * productname_
Definition: pluginbase.h:67
const char * creator_
Definition: pluginbase.h:68
Definition: pluginbase.h:54
const char * text_
Definition: pluginbase.h:70
LicenseType lictype_
Definition: pluginbase.h:71
Information about plugin for outside world.
Definition: pluginbase.h:52
LicenseType
Definition: pluginbase.h:54
const char * version_
Definition: pluginbase.h:69

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