]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Win32 compilation.
authorrnv <rnv@opencascade.com>
Wed, 21 Mar 2012 09:12:31 +0000 (09:12 +0000)
committerrnv <rnv@opencascade.com>
Wed, 21 Mar 2012 09:12:31 +0000 (09:12 +0000)
src/RENUMBER/RENUMBERDefines.hxx [new file with mode: 0755]
src/RENUMBER/RENUMBER_BOOSTRenumbering.hxx
src/RENUMBER/RENUMBER_METISRenumbering.hxx
src/RENUMBER/RENUMBER_Renumbering.hxx
src/RENUMBER/RenumberingFactory.hxx

diff --git a/src/RENUMBER/RENUMBERDefines.hxx b/src/RENUMBER/RENUMBERDefines.hxx
new file mode 100755 (executable)
index 0000000..b5e7e89
--- /dev/null
@@ -0,0 +1,34 @@
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __RENUMBERDEFINES_HXX__
+#define __RENUMBERDEFINES_HXX__
+
+//export symbols
+#ifdef WIN32
+# if defined RENUMBER_EXPORTS || defined renumber_EXPORTS
+#  define RENUMBER_EXPORT __declspec(dllexport)
+# else
+#  define RENUMBER_EXPORT __declspec(dllimport)
+# endif
+#else
+# define RENUMBER_EXPORT
+#endif 
+
+#endif // __RENUMBERDEFINES_HXX__
index 1181231ef6bd523d1562c194c7ed5857859304d3..fc3753f35d3536751f6bdc831861584e6450f2d6 100644 (file)
 #ifndef BOOSTRENUMBERING_HXX_
 #define BOOSTRENUMBERING_HXX_
 
+#include "RENUMBERDefines.hxx"
 #include "RENUMBER_Renumbering.hxx"
 
-class BOOSTRenumbering:public Renumbering
+class RENUMBER_EXPORT BOOSTRenumbering:public Renumbering
 {
 public:
   virtual void renumber(const int* graph,const int* index_graph,int nb_cell,std::vector<int>& iperm,std::vector<int>& perm);
index 8a6eb00d130d369a73dcd69d9ade235a2d9a7a3b..20d7f3474944c300942f7c0116b0ac5a9a3536bf 100644 (file)
 #ifndef METISRENUMBERING_HXX_
 #define METISRENUMBERING_HXX_
 
+#include "RENUMBERDefines.hxx"
 #include "RENUMBER_Renumbering.hxx"
 
-class METISRenumbering:public Renumbering
+class RENUMBER_EXPORT METISRenumbering:public Renumbering
 {
 public:
   virtual void renumber(const int* graph,const int* index_graph,int nb_cell,std::vector<int>& iperm,std::vector<int>& perm);
index 9396d8158b2ae0d2c048cfc08110b336dad9a6bb..76f8604b18cc801ebd1da25efc6164a3e18f5742 100644 (file)
 
 #ifndef RENUMBERING_HXX_
 #define RENUMBERING_HXX_
+#include "RENUMBERDefines.hxx"
 #include <vector>
 
-class Renumbering
+class RENUMBER_EXPORT Renumbering
 {
 public:
   virtual void renumber(const int* graphe,const int* index_graphe,int nb_cell,std::vector<int>& iperm,std::vector<int>& perm)=0;
index 91a4b9837d3e3076825efaa5bc313f94f51b1cc1..e998c5f60ce5dc87236f10f93f97b4f4f89b8baf 100644 (file)
 #define RENUMBERINGFACTORY_HXX_
 
 #include <string>
+#include "RENUMBERDefines.hxx"
 #include "RENUMBER_Renumbering.hxx"
 
 namespace MED_RENUMBER
 {
-  Renumbering* RenumberingFactory(const std::string& s);
+  RENUMBER_EXPORT Renumbering* RenumberingFactory(const std::string& s);
 }
 
 #endif /*RENUMBERINGFACTORY_HXX_*/