Salome HOME
updated copyright message
[modules/gui.git] / tools / CurvePlot / src / cpp / CurvePlot.hxx
index aad7447080fd33c5af646ee15ec3d5b97e6b7fc5..5147384ac48ab32d2b4010a752cb63e76bceccc3 100644 (file)
@@ -1,4 +1,4 @@
-// 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>
 
@@ -32,9 +43,9 @@ namespace CURVEPLOT
   /**
    * 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;
@@ -75,7 +86,7 @@ namespace 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,