![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: vrfPluginExtension.h,v $ $Revision: 1.21 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include <vlutil/vlMachineTypes.h> 00015 #include <vlutil/vlString.h> 00016 00017 #include "vrfutil/vrfPluginInformation.h" 00018 00020 #pragma warning (disable:4251) 00021 #ifdef WIN32 00022 #ifdef DT_VRF_DLL_BUILD 00023 #ifdef DT_VRF_PLUGIN_EXPORTS 00024 #define DT_VRF_DLL_PLUGIN __declspec(dllexport) 00025 #else 00026 #define DT_VRF_DLL_PLUGIN __declspec(dllimport) 00027 #endif 00028 #else 00029 #define DT_VRF_DLL_PLUGIN 00030 #endif 00031 #else 00032 #define DT_VRF_DLL_PLUGIN 00033 #endif 00034 00035 class DtCgf; 00036 00037 #define DtVrfInitializePluginFunction "DtInitializeVrfPlugin" 00038 #define DtVrfPostInitializePluginFunction "DtPostInitializeVrfPlugin" 00039 #define DtVrfUnloadPlugin "DtUnloadVrfPlugin" 00040 00041 typedef bool (*DtInitializeVrfPluginFcn)(DtCgf* cgf); 00042 typedef bool (*DtPostInitializeVrfPluginFcn)(DtCgf* cgf); 00043 typedef void (*DtVrfUnloadPluginFcn)(); 00044 00051 //extern "C" { 00082 //} 00083 00086 00087 #ifdef BUILDING_PLUGIN 00088 00089 #include "vrfutil/version.h" 00090 #include <vlutil/vlString.h> 00091 00092 extern "C" { 00093 DT_VRF_DLL_PLUGIN void DtPluginVersion(DtString& version) 00094 { 00095 version = PLUGIN_COMPATIBLE_VERSION; 00096 00097 #ifdef WIN32 00098 #ifdef NDEBUG 00099 version += " Release"; 00100 #else 00101 version += " Debug"; 00102 #endif 00103 #endif 00104 } 00105 } 00106 00107 #endif