Salome HOME
updated copyright message
[modules/geom.git] / src / GEOMUtils / GEOMUtils_TrsfCurve2d.hxx
index f0d94bbcad0d6583356049e3e781f62edc124692..e41af4ce4174cb26272214122cee9075a61c78c4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2015-2023  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
@@ -20,7 +20,6 @@
 #ifndef _GEOMUtils_TrsfCurve2d_HXX_
 #define _GEOMUtils_TrsfCurve2d_HXX_
 
-
 #include <GEOMUtils_Trsf2d.hxx>
 
 #include <Geom2dHatch_Hatcher.hxx>
@@ -29,6 +28,8 @@
 #include <TColStd_HArray1OfReal.hxx>
 #include <TopoDS_Face.hxx>
 
+#include <Basics_OCCTVersion.hxx>
+
 
 namespace GEOMUtils
 {
@@ -38,6 +39,9 @@ namespace GEOMUtils
    */
   class TrsfCurve2d : public Adaptor2d_Curve2d
   {
+#if OCC_VERSION_LARGE >= 0x07070000
+  DEFINE_STANDARD_RTTIEXT(TrsfCurve2d, Adaptor2d_Curve2d)
+#endif
 
   public:
     
@@ -110,7 +114,11 @@ namespace GEOMUtils
     /**
      * Redefined method from the base class.
      */
+#if OCC_VERSION_LARGE < 0x07070000
     Standard_EXPORT Handle(Adaptor2d_HCurve2d) Trim
+#else
+    Standard_EXPORT Handle(Adaptor2d_Curve2d) Trim
+#endif
               (const Standard_Real First, const Standard_Real Last,
                const Standard_Real ) const;
 
@@ -234,6 +242,11 @@ namespace GEOMUtils
     Trsf2d              myTrsf;
 
   };
+
+#if OCC_VERSION_LARGE >= 0x07070000
+  DEFINE_STANDARD_HANDLE(TrsfCurve2d, Adaptor2d_Curve2d)
+#endif
+
 }
 
 #endif