From: abn Date: Mon, 10 May 2021 11:54:01 +0000 (+0200) Subject: [ICoCo] renamed header and symbol for decl spec X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33f7403cf72e6470c741a66352f0fa5c87a70b21;p=tools%2Fmedcoupling.git [ICoCo] renamed header and symbol for decl spec --- diff --git a/src/ICoCo/ICoCo.hxx b/src/ICoCo/ICoCo.hxx deleted file mode 100644 index e523f70b0..000000000 --- a/src/ICoCo/ICoCo.hxx +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2007-2020 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, or (at your option) any later version. -// -// 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 -// - -// WARNING: this file is part of the official ICoCo API and should not be modified. -// The official version can be found at the following URL: -// -// https://github.com/cea-trust-platform/icoco-coupling - -#ifndef ICoCo_included - -#ifdef WIN32 -# if defined medicoco_EXPORTS -# define MEDCOUPLINGICOCO_EXPORT __declspec( dllexport ) -# else -# define MEDCOUPLINGICOCO_EXPORT __declspec( dllimport ) -# endif -#else -# define MEDCOUPLINGICOCO_EXPORT -#endif - -#endif // ICoCo_included diff --git a/src/ICoCo/ICoCoField.hxx b/src/ICoCo/ICoCoField.hxx index ea4959e2e..5f66d1984 100644 --- a/src/ICoCo/ICoCoField.hxx +++ b/src/ICoCo/ICoCoField.hxx @@ -26,7 +26,7 @@ #define ICoCoField_included #include -#include "ICoCo.hxx" +#include namespace ICoCo { @@ -34,7 +34,7 @@ namespace ICoCo * * The Field class holds the name of the field. */ - class MEDCOUPLINGICOCO_EXPORT Field + class ICOCO_EXPORT Field { public: /*! @brief Set the name of the field. diff --git a/src/ICoCo/ICoCoMEDDoubleField.hxx b/src/ICoCo/ICoCoMEDDoubleField.hxx index ef68ea9a0..dcaa36524 100644 --- a/src/ICoCo/ICoCoMEDDoubleField.hxx +++ b/src/ICoCo/ICoCoMEDDoubleField.hxx @@ -26,7 +26,6 @@ #define ICoCoMEDDoubleField_included #include "ICoCoField.hxx" -#include "ICoCo.hxx" namespace MEDCoupling { @@ -45,7 +44,7 @@ namespace ICoCo * @sa the MEDCoupling documentation, notably the reference counter mechanism used to manage the lifecycle of * MEDCoupling objects. */ - class MEDCOUPLINGICOCO_EXPORT MEDDoubleField : public ICoCo::Field + class ICOCO_EXPORT MEDDoubleField : public ICoCo::Field { public: /*! Builds an empty field (internal MEDCoupling object not set). diff --git a/src/ICoCo/ICoCoMEDIntField.hxx b/src/ICoCo/ICoCoMEDIntField.hxx index 1adfbc859..31c7454b9 100644 --- a/src/ICoCo/ICoCoMEDIntField.hxx +++ b/src/ICoCo/ICoCoMEDIntField.hxx @@ -44,7 +44,7 @@ namespace ICoCo * @sa the MEDCoupling documentation, notably the reference counter mechanism used to manage the lifecycle of * MEDCoupling objects. */ - class MEDCOUPLINGICOCO_EXPORT MEDIntField : public ICoCo::Field + class ICOCO_EXPORT MEDIntField : public ICoCo::Field { public: /*! Builds an empty field (internal MEDCoupling object not set). diff --git a/src/ICoCo/ICoCo_DeclSpec.hxx b/src/ICoCo/ICoCo_DeclSpec.hxx new file mode 100644 index 000000000..648130b64 --- /dev/null +++ b/src/ICoCo/ICoCo_DeclSpec.hxx @@ -0,0 +1,37 @@ +// Copyright (C) 2007-2020 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, or (at your option) any later version. +// +// 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 +// + +// WARNING: this file is part of the official ICoCo API and should not be modified. +// The official version can be found at the following URL: +// +// https://github.com/cea-trust-platform/icoco-coupling + +#ifndef ICoCo_DeclSpec_included + +#ifdef WIN32 +# if defined medicoco_EXPORTS +# define ICOCO_EXPORT __declspec( dllexport ) +# else +# define ICOCO_EXPORT __declspec( dllimport ) +# endif +#else +# define ICOCO_EXPORT +#endif + +#endif // ICoCo_DeclSpec_included diff --git a/src/ICoCo/Swig/ICoCoMEDField.i b/src/ICoCo/Swig/ICoCoMEDField.i index f12c210d8..9f992ac35 100644 --- a/src/ICoCo/Swig/ICoCoMEDField.i +++ b/src/ICoCo/Swig/ICoCoMEDField.i @@ -23,6 +23,8 @@ #include "ICoCoMEDIntField.hxx" %} +#define ICOCO_EXPORT + %include "std_string.i" %include "ICoCoField.hxx" diff --git a/src/ParaMEDMEM_Swig/ParaMEDMEM.i b/src/ParaMEDMEM_Swig/ParaMEDMEM.i index 5aee5c600..40d0bd8db 100644 --- a/src/ParaMEDMEM_Swig/ParaMEDMEM.i +++ b/src/ParaMEDMEM_Swig/ParaMEDMEM.i @@ -23,7 +23,6 @@ #define MEDCOUPLING_EXPORT #define INTERPKERNEL_EXPORT -#define MEDCOUPLINGICOCO_EXPORT %include "MEDCouplingCommon.i" %include "ICoCoMEDField.i" diff --git a/src/PyWrapping/medcoupling.i b/src/PyWrapping/medcoupling.i index 7fe41863a..3c7a0e6d1 100644 --- a/src/PyWrapping/medcoupling.i +++ b/src/PyWrapping/medcoupling.i @@ -25,7 +25,6 @@ #define INTERPKERNEL_EXPORT #define MEDCOUPLING_EXPORT #define MEDLOADER_EXPORT -#define MEDCOUPLINGICOCO_EXPORT %include "MEDCouplingCommon.i"