-// Copyright (C) 2010-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2010-2023 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
#ifndef SRC_CPP_CURVEPLOT_HXX_
#define SRC_CPP_CURVEPLOT_HXX_
+#ifdef WIN32
+# if defined CURVEPLOT_EXPORTS || defined CurvePlot_EXPORTS
+# define CURVEPLOT_EXPORT __declspec(dllexport)
+# else
+# define CURVEPLOT_EXPORT __declspec(dllimport)
+# endif
+#else // WIN32
+# define CURVEPLOT_EXPORT
+#endif // WIN32
+
+
#include <string>
#include <vector>
/**
* This function should be called before doing anything in the CURVEPLOT namespace.
*/
- void InitializeCurvePlot();
+ CURVEPLOT_EXPORT void* InitializeCurvePlot();
- class ColumnVector
+ class CURVEPLOT_EXPORT ColumnVector
{
public:
friend class CurvePlot;
/**
* C++ wrapping of the public API exposed in the Python package curveplot. See doc there.
*/
- class CurvePlot
+ class CURVEPLOT_EXPORT CurvePlot
{
public:
static PlotID AddCurve(const ColumnVector & x, const ColumnVector & y,