OpendTect  6.6
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  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "basicmod.h"
14 
15 extern "C" {
16 #include "pluginbase.h"
17 }
18 #include "gendefs.h"
19 
20 
21 /* The following function MUST be defined: */
22 #define mDefODInitPlugin(pinm) \
23  mExternC(pinm) const char* Init##pinm##Plugin(int,char**); \
24  mExternC(pinm) const char* Init##pinm##Plugin( int argc, char** argv )
25 
26 /* The following function SHOULD be defined: */
27 #define mDefODPluginInfo(pinm) \
28  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo(); \
29  mExternC(pinm) PluginInfo* Get##pinm##PluginInfo()
30 
31 /* Define ONLY if your plugin needs early loading (i.e. before any UI)
32  This is common for 'Batch'-type plugins.
33  */
34 #define mDefODPluginEarlyLoad(pinm) \
35  mExternC(pinm) int Get##pinm##PluginType(); \
36  mExternC(pinm) int Get##pinm##PluginType() { return PI_AUTO_INIT_EARLY; }
37 
38 
gendefs.h
pluginbase.h

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