Salome HOME
Copyright update 2020
[samples/component.git] / src / DivComponent / DivComponent.hxx
index a6826ee22e354aea0aa244a47f3e9ac970e234e0..5b99d98ffcd5822175a6588f851b4adcd34f3ca9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // 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.
+// 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
 #ifndef _DIVCOMPONENTENGINE_HXX_
 #define _DIVCOMPONENTENGINE_HXX_
 
+#ifdef WIN32
+# if defined DIVCOMPONENTENGINE_EXPORTS || defined DivComponentEngine_EXPORTS
+#  define DIVCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+#  define DIVCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DIVCOMPONENTENGINE_EXPORT
+#endif
+
 //#include <iostream.h>
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(DivComponent)
 #include CORBA_SERVER_HEADER(SALOME_Component)
 #include "SALOME_Component_i.hxx"
 
-class DivComponentEngine :  public POA_SuperVisionTest::DivComponent ,
-                            public Engines_Component_i {
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine :  public POA_SuperVisionTest::DivComponent ,
+                                                      public Engines_Component_i {
 public:
   DivComponentEngine() ;
   DivComponentEngine( CORBA::ORB_ptr orb,
@@ -58,6 +68,7 @@ private:
 };
 
 extern "C"
+  DIVCOMPONENTENGINE_EXPORT
   PortableServer::ObjectId * DivComponentEngine_factory
                                    ( CORBA::ORB_ptr orb ,
                                      PortableServer::POA_ptr poa ,