Salome HOME
0023580: [EDF] AsterStudy: more distinct display of selected items in 3D view
[modules/smesh.git] / src / MEDWrapper / Base / MED_Wrapper.hxx
index cd4e8efc3188a7a0df67e65cac76def6ecc7452b..6bfb2419187b4ff78f5ba71673efdfe6a6c0877e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  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
@@ -38,7 +38,7 @@ namespace MED
   struct MEDWRAPPER_EXPORT TWrapper
   {
     typedef boost::mutex TMutex;
-    //! This is a syncronization primitive which allow to support thread safety for the MED access
+    //! This is a synchronization primitive which allow to support thread safety for the MED access
     TMutex myMutex;
 
     virtual
@@ -800,7 +800,7 @@ namespace MED
 
 
     //----------------------------------------------------------------------------
-    //! Read the values for MEDWrapper MED TIEMSTAMP from defined MED file
+    //! Read the values for MEDWrapper MED TIMESTAMP from defined MED file
     virtual 
     void
     GetTimeStampValue(const PTimeStampValueBase& theTimeStampValue,
@@ -808,13 +808,13 @@ namespace MED
                       const TKey2Gauss& theKey2Gauss,
                       TErr* theErr = NULL) = 0;
     
-    //! Write the values for MEDWrapper MED TIEMSTAMP to defined MED file
+    //! Write the values for MEDWrapper MED TIMESTAMP to defined MED file
     virtual 
     void
     SetTimeStampValue(const PTimeStampValueBase& theTimeStampValue,
                       TErr* theErr = NULL) = 0;
     
-    //! Creates the values for MEDWrapper MED TIEMSTAMP representation
+    //! Creates the values for MEDWrapper MED TIMESTAMP representation
     virtual
     PTimeStampValueBase
     CrTimeStampValue(const PTimeStampInfo& theTimeStampInfo,
@@ -822,27 +822,27 @@ namespace MED
                      const TGeom2Profile& theGeom2Profile = TGeom2Profile(),
                      EModeSwitch theMode = eFULL_INTERLACE) = 0;
 
-    //! Creates the values for MEDWrapper MED TIEMSTAMP representation
+    //! Creates the values for MEDWrapper MED TIMESTAMP representation
     virtual
     PTimeStampValueBase
     CrTimeStampValue(const PTimeStampInfo& theTimeStampInfo,
                      const TGeom2Profile& theGeom2Profile = TGeom2Profile(),
                      EModeSwitch theMode = eFULL_INTERLACE);
 
-    //! A copy-constructor for the values for MEDWrapper MED TIEMSTAMP representation
+    //! A copy-constructor for the values for MEDWrapper MED TIMESTAMP representation
     virtual 
     PTimeStampValueBase
     CrTimeStampValue(const PTimeStampInfo& theTimeStampInfo,
                      const PTimeStampValueBase& theInfo,
                      ETypeChamp theTypeChamp) = 0;
     
-    //! A copy-constructor for the values for MEDWrapper MED TIEMSTAMP representation
+    //! A copy-constructor for the values for MEDWrapper MED TIMESTAMP representation
     virtual 
     PTimeStampValueBase
     CrTimeStampValue(const PTimeStampInfo& theTimeStampInfo,
                      const PTimeStampValueBase& theInfo);
     
-    //! Read the values for MEDWrapper MED TIEMSTAMP from defined MED file
+    //! Read the values for MEDWrapper MED TIMESTAMP from defined MED file
     PTimeStampValueBase
     GetPTimeStampValue(const PTimeStampInfo& theTimeStampInfo,
                        const TMKey2Profile& theMKey2Profile,
@@ -851,7 +851,7 @@ namespace MED
     
     //----------------------------------------------------------------------------
     // Backward compatibility  declarations
-    //! Read the values for MEDWrapper MED TIEMSTAMP from defined MED file
+    //! Read the values for MEDWrapper MED TIMESTAMP from defined MED file
     virtual 
     void
     GetTimeStampVal(const PTimeStampVal& theVal,
@@ -859,26 +859,26 @@ namespace MED
                     const TKey2Gauss& theKey2Gauss,
                     TErr* theErr = NULL);
     
-    //! Write the values for MEDWrapper MED TIEMSTAMP to defined MED file
+    //! Write the values for MEDWrapper MED TIMESTAMP to defined MED file
     virtual 
     void
     SetTimeStamp(const PTimeStampVal& theVal,
                  TErr* theErr = NULL);
     
-    //! Creates the values for MEDWrapper MED TIEMSTAMP representation
+    //! Creates the values for MEDWrapper MED TIMESTAMP representation
     virtual
     PTimeStampVal
     CrTimeStampVal(const PTimeStampInfo& theTimeStampInfo,
                    const TGeom2Profile& theGeom2Profile = TGeom2Profile(),
                    EModeSwitch theMode = eFULL_INTERLACE);
 
-    //! A copy-constructor for the values for MEDWrapper MED TIEMSTAMP representation
+    //! A copy-constructor for the values for MEDWrapper MED TIMESTAMP representation
     virtual 
     PTimeStampVal
     CrTimeStampVal(const PTimeStampInfo& theTimeStampInfo,
                    const PTimeStampVal& theInfo);
     
-    //! Read the values for MEDWrapper MED TIEMSTAMP from defined MED file
+    //! Read the values for MEDWrapper MED TIMESTAMP from defined MED file
     PTimeStampVal
     GetPTimeStampVal(const PTimeStampInfo& theTimeStampInfo,
                      const TMKey2Profile& theMKey2Profile,
@@ -1002,14 +1002,14 @@ namespace MED
 
     template<class Y>
     SharedPtr(SharedPtr<Y> const & r):
-      boost::shared_ptr<TWrapper>(r,boost::detail::dynamic_cast_tag())
+      boost::shared_ptr<TWrapper>(boost::dynamic_pointer_cast<TWrapper,Y>(r))
     {}
 
     template<class Y>
     SharedPtr& 
     operator=(SharedPtr<Y> const & r)
     {
-      boost::shared_ptr<TWrapper>(r,boost::detail::dynamic_cast_tag()).swap(*this);
+      SharedPtr<TWrapper>(r).swap(*this);
       return *this;
     }