+++ /dev/null
-// 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
#define ICoCoField_included
#include <string>
-#include "ICoCo.hxx"
+#include <ICoCo_DeclSpec.hxx>
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.
#define ICoCoMEDDoubleField_included
#include "ICoCoField.hxx"
-#include "ICoCo.hxx"
namespace MEDCoupling
{
* @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).
* @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).
--- /dev/null
+// 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
#include "ICoCoMEDIntField.hxx"
%}
+#define ICOCO_EXPORT
+
%include "std_string.i"
%include "ICoCoField.hxx"
#define MEDCOUPLING_EXPORT
#define INTERPKERNEL_EXPORT
-#define MEDCOUPLINGICOCO_EXPORT
%include "MEDCouplingCommon.i"
%include "ICoCoMEDField.i"
#define INTERPKERNEL_EXPORT
#define MEDCOUPLING_EXPORT
#define MEDLOADER_EXPORT
-#define MEDCOUPLINGICOCO_EXPORT
%include "MEDCouplingCommon.i"