VR-Forces 4.1 Class Documentation
pluginExtension.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: pluginExtension.h,v $ $Revision: 1.19 $ $State: Exp $
7 *******************************************************************************/
8 
12 
13 #ifndef PLUGINEXTENSION_H_
14 #define PLUGINEXTENSION_H_
15 
16 #include <vlutil/vlString.h>
17 
19 #pragma warning (disable:4251)
20 #ifdef WIN32
21  #ifdef DT_DLL_BUILD
22  #ifdef DT_PLUGIN_EXPORTS
23  #define DT_DLL_PLUGIN __declspec(dllexport)
24  #else
25  #define DT_DLL_PLUGIN __declspec(dllimport)
26  #endif
27  #else
28  #define DT_DLL_PLUGIN
29  #endif
30 #else
31  #define DT_DLL_PLUGIN
32 #endif
33 
34 class DtTMApplication;
35 
36 #define DtInitializePluginFunction "DtInitializePlugin"
37 #define DtPostAppInitialize "DtPostInitializePlugin"
38 #define DtGuiUnloadPlugin "DtUnloadPlugin"
39 #define DtPluginVersionFunction "DtPluginVersion"
40 
43 typedef struct _DtPluginInformation
44 {
55 
58 typedef bool (*DtUnloadPluginFcn)();
59 typedef void (*DtPluginVersionFcn)(DtString&);
60 
69 //extern "C" {
91 //}
95 
100 #if defined (BUILDING_PLUGIN)
101  #if !defined (APPLICATION_VERSION)
102  #pragma message ("APPLICATION_VERSION is not defined for plugin.")
103  #pragma message ("If building a tdbTool plugin, include tdbToolVersion.h")
104  #pragma message ("If building a PVD plugin, include pvdVersion.h")
105  #pragma message ("If building a VRF GUI plugin, include vrfGuiVersion.h")
106  #pragma message ("Not including one of these headers could cause application instability if this plugin is used against a later version of an application.")
107  #else
108  #include <vlutil/vlString.h>
109 
110  extern "C" {
111  DT_DLL_PLUGIN void DtPluginVersion(DtString& version)
112  {
113  version = PLUGIN_COMPATIBLE_VERSION;
114 #ifdef WIN32
115 #ifdef NDEBUG
116  version += " Release";
117 #else
118  version += " Debug";
119 #endif
120 #endif
121  }
122  }
123  #endif
124 #endif
125 
126 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)