Salome HOME
add method NameChanged to update title name
[modules/kernel.git] / src / DF / DF_definitions.hxx
index 3cfe5585d981cf2169307322839448686acb5ade..56de6d017d673e62a57f3b584f03f834afaee8f5 100644 (file)
@@ -1,27 +1,27 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+//
 // 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.
-// 
-// 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 
+// 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 
+// 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
 //
+
 #ifndef  DF_DEF_HXX
 #define  DF_DEF_HXX
 
 #ifdef WIN32
-# ifdef DF_EXPORTS
+# if defined DF_EXPORTS
 #  define DF_EXPORT __declspec( dllexport )
 # else
 #  define DF_EXPORT __declspec( dllimport )
 
 #include <iostream> 
 #include <stdio.h>
-#include <boost/shared_ptr.hpp> 
-
-template<class T> class df_shared_ptr: public boost::shared_ptr<T>
-{
-public:
-  df_shared_ptr() {}
-  
-  template<class Y>
-    explicit df_shared_ptr(Y * p)
-      {
-       boost::shared_ptr<T>::reset(p);
-      }
-  
-  template<class Y>
-    df_shared_ptr(df_shared_ptr<Y> const & r):
-      boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag())
-       {}
-  
-  template<class Y>
-    df_shared_ptr & operator=(df_shared_ptr<Y> const & r)
-      {
-       df_shared_ptr<T>(r).swap(*this);
-       return *this;
-      }
-  
-  template<class Y> df_shared_ptr& operator()(Y * p) // Y must be complete
-    {
-      if(T* pt = dynamic_cast<T*>(p))
-       boost::shared_ptr<T>::reset(pt);
-      else
-       boost::throw_exception(std::bad_cast());
-      return *this;
-    }
-    
-};
 
-# if defined(WNT) && !defined(HAVE_NO_DLL)
+# if defined(WIN32) && !defined(HAVE_NO_DLL)
 
 #  ifndef Standard_EXPORT
 #   define Standard_EXPORT __declspec( dllexport )
@@ -82,7 +47,7 @@ public:
 #   define Standard_IMPORTC extern "C" __declspec( dllimport )
 #  endif  /* Standard_IMPORT */
 
-# else  /* WNT */
+# else  /* WIN32 */
 
 #  ifndef Standard_EXPORT
 #   define Standard_EXPORT
@@ -96,11 +61,11 @@ public:
 #   define Standard_IMPORTC extern "C"
 #  endif  /* Standard_IMPORT */
 
-# endif  /* WNT */
+# endif  /* WIN32 */
 
 # ifndef __Standard_API
-//#  ifdef WNT
-#   if !defined(WNT
+//#  ifdef WIN32
+#   if !defined(WIN32
 #    define __Standard_API Standard_EXPORT
 #    define __Standard_APIEXTERN Standard_EXPORTEXTERN
 #   else
@@ -109,7 +74,7 @@ public:
 #   endif  // __Standard_DLL
 //#  else
 //#   define __Standard_API
-//#  endif  // WNT
+//#  endif  // WIN32
 # endif  // __Standard_API
 
 #include <iostream>