OpendTect-6_4  6.4
odplugin.h
Go to the documentation of this file.
1 #ifndef odplugin_h
2 #define odplugin_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Apr 2011
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "basicmod.h"
15 
16 extern "C" {
17 #include "pluginbase.h"
18 }
19 #include "gendefs.h"
20 
21 
22 /* The following function MUST be defined: */
23 #define mDefODInitPlugin(pinm) \
24  mExternC(pinm) const char* Init##pinm##Plugin(int,char**); \
25  mExternC(pinm) const char* Init##pinm##Plugin( int argc, char** argv )
26 
27 /* The following function SHOULD be defined: */
28 #define mDefODPluginInfo(pinm) \
29  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo(); \
30  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo()
31 
32 /* Define ONLY if your plugin needs early loading (i.e. before any UI)
33  This is common for 'Batch'-type plugins.
34  */
35 #define mDefODPluginEarlyLoad(pinm) \
36  mExternC(pinm) int Get##pinm##PluginType(); \
37  mExternC(pinm) int Get##pinm##PluginType() { return PI_AUTO_INIT_EARLY; }
38 
39 
40 #endif

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