OpendTect  6.3
odplugin.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: Bert
7  Date: Apr 2011
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "basicmod.h"
13 
14 extern "C" {
15 #include "pluginbase.h"
16 }
17 #include "gendefs.h"
18 
19 
20 /* The following function MUST be defined: */
21 #define mDefODInitPlugin(pinm) \
22  mExternC(pinm) const char* Init##pinm##Plugin(int,char**); \
23  mExternC(pinm) const char* Init##pinm##Plugin( int argc, char** argv )
24 
25 /* The following function SHOULD be defined: */
26 #define mDefODPluginInfo(pinm) \
27  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo(); \
28  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo()
29 
30 /* The following function MIGHT be defined: */
31 #define mDefODPluginSurvRelToolsLoadFn(pinm) \
32  mExternC(pinm) void Load##pinm##PluginSurvRelTools(); \
33  mExternC(pinm) void Load##pinm##PluginSurvRelTools()
34 
35 /* If you have a SIP or uiSurveyManager::Util, this calls the load function: */
36 #define mCallODPluginSurvRelToolsLoadFn(pinm) Load##pinm##PluginSurvRelTools()
37 
38 
39 /* Define ONLY if your plugin needs early loading (i.e. before any UI)
40  This is common for 'Batch'-type plugins.
41  */
42 #define mDefODPluginEarlyLoad(pinm) \
43  mExternC(pinm) int Get##pinm##PluginType(); \
44  mExternC(pinm) int Get##pinm##PluginType() { return PI_AUTO_INIT_EARLY; }

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