--- /dev/null
+// 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__
#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);
#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);
#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;
#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_*/