OpendTect  6.6
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  RCS: $Id$
9 ________________________________________________________________________
10 
11  This header file is intended for programmers who want to use their code for
12  both OpendTect plugins and programs not using OpendTect. You can freely add
13  plugin init functions in your code without linking with OpendTect libs.
14 
15  Of course, if you _do_ link with the OpendTect libs, the OpendTect license
16  becomes active.
17 
18 -*/
19 
20 
21 /* If you do not use OpendTect stuff here, you need a way to figure out whether
22  you are in the C++ world and add something like:
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 */
28 
29 #define PI_AUTO_INIT_NONE 0
30 #define PI_AUTO_INIT_EARLY 1
31 #define PI_AUTO_INIT_LATE 2
32 
51 struct PluginInfo
52 {
54 
55  PluginInfo(const char* dispname, const char* prodnm, const char* creator,
56  const char* version, const char* text, LicenseType lt=GPL )
57  : dispname_(dispname)
58  , productname_(prodnm)
59  , creator_(creator)
60  , version_(version)
61  , text_(text)
62  , licmsg_("")
63  , lictype_(lt)
64  {}
65 
66  PluginInfo(const char* dispname, const char* prodnm, const char* creator,
67  const char* version, const char* text, const char* licmsg,
68  LicenseType lt=GPL )
69  : dispname_(dispname)
70  , productname_(prodnm)
71  , creator_(creator)
72  , version_(version)
73  , text_(text)
74  , licmsg_(licmsg)
75  , lictype_(lt)
76  {}
77 
79  : dispname_("Plugin Name")
80  , productname_("New Product")
81  , creator_("A Developer")
82  , version_("v0.0")
83  , text_("Plugin information text")
84  , licmsg_("License message")
85  , lictype_(GPL)
86  {}
87 
88  const char* dispname_;
89  const char* productname_;
90  const char* creator_;
91  const char* version_;
92  const char* text_;
93  const char* licmsg_;
95 };
96 
97 /* } -- for the extern "C" */
98 
PluginInfo::PluginInfo
PluginInfo(const char *dispname, const char *prodnm, const char *creator, const char *version, const char *text, LicenseType lt=GPL)
Definition: pluginbase.h:55
PluginInfo::licmsg_
const char * licmsg_
Definition: pluginbase.h:93
PluginInfo
Information about plugin for outside world.
Definition: pluginbase.h:52
PluginInfo::productname_
const char * productname_
Definition: pluginbase.h:89
PluginInfo::COMMERCIAL
@ COMMERCIAL
Definition: pluginbase.h:53
PluginInfo::text_
const char * text_
Definition: pluginbase.h:92
PluginInfo::creator_
const char * creator_
Definition: pluginbase.h:90
PluginInfo::lictype_
LicenseType lictype_
Definition: pluginbase.h:94
PluginInfo::GPL
@ GPL
Definition: pluginbase.h:53
PluginInfo::version_
const char * version_
Definition: pluginbase.h:91
PluginInfo::PluginInfo
PluginInfo()
Definition: pluginbase.h:78
PluginInfo::PluginInfo
PluginInfo(const char *dispname, const char *prodnm, const char *creator, const char *version, const char *text, const char *licmsg, LicenseType lt=GPL)
Definition: pluginbase.h:66
PluginInfo::LicenseType
LicenseType
Definition: pluginbase.h:53
PluginInfo::dispname_
const char * dispname_
Definition: pluginbase.h:88

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