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

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