From: abd Date: Thu, 27 Apr 2006 12:00:55 +0000 (+0000) Subject: First Working WIN32 version X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d22e217beaa1c2e3e037960c194ca686d6f4fc3;p=plugins%2Fnetgenplugin.git First Working WIN32 version --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index 4620967..ccc427f 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -7,8 +7,6 @@ // Copyright : CEA 2003 // $Header$ //============================================================================= -using namespace std; - #include "NETGENPlugin_NETGEN_3D.hxx" #include "SMESH_Gen.hxx" @@ -33,7 +31,14 @@ using namespace std; Netgen include files */ -#include "nglib.h" +namespace nglib +{ + #include +} + +using namespace nglib; + +using namespace std; //============================================================================= /*! diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx index b085880..7785365 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.hxx @@ -11,12 +11,22 @@ #ifndef _NETGENPlugin_NETGEN_3D_HXX_ #define _NETGENPlugin_NETGEN_3D_HXX_ +#ifdef WIN32 + #ifdef NETGENPLUGIN_EXPORTS + #define NETGENPLUGIN_EXPORT __declspec( dllexport ) + #else + #define NETGENPLUGIN_EXPORT __declspec( dllimport ) + #endif +#else + #define NETGENPLUGIN_EXPORT +#endif + #include "SMESH_3D_Algo.hxx" #include "SMESH_Mesh.hxx" #include "StdMeshers_MaxElementVolume.hxx" #include "Utils_SALOME_Exception.hxx" -class NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo +class NETGENPLUGIN_EXPORT NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo { public: NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen); diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx index 489d682..2e06f23 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.cxx @@ -27,13 +27,14 @@ // Module : SMESH // $Header$ -using namespace std; #include "NETGENPlugin_NETGEN_3D_i.hxx" #include "SMESH_Gen.hxx" #include "Utils_CorbaException.hxx" #include "utilities.h" +using namespace std; + //============================================================================= /*! * NETGENPlugin_NETGEN_3D_i::NETGENPlugin_NETGEN_3D_i diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx index 275988e..ab78124 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D_i.hxx @@ -39,7 +39,7 @@ // ====================================================== // NETGEN 3d algorithm // ====================================================== -class NETGENPlugin_NETGEN_3D_i: +class NETGENPLUGIN_EXPORT NETGENPlugin_NETGEN_3D_i: public virtual POA_NETGENPlugin::NETGENPlugin_NETGEN_3D, public virtual SMESH_3D_Algo_i { diff --git a/src/NETGENPlugin/NETGENPlugin_i.cxx b/src/NETGENPlugin/NETGENPlugin_i.cxx index a08f1be..ef7fb17 100644 --- a/src/NETGENPlugin/NETGENPlugin_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_i.cxx @@ -26,11 +26,12 @@ // Module : SMESH // $Header$ -using namespace std; #include "utilities.h" #include "NETGENPlugin_NETGEN_3D_i.hxx" +using namespace std; + //============================================================================= /*! * @@ -39,6 +40,7 @@ using namespace std; extern "C" { + NETGENPLUGIN_EXPORT GenericHypothesisCreator_i* GetHypothesisCreator (const char* aHypName) { MESSAGE("GetHypothesisCreator " << aHypName);