]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOM/GEOM_BaseDriver.hxx
Salome HOME
Migration to OCCT 7.0
[modules/geom.git] / src / GEOM / GEOM_BaseDriver.hxx
index 11de7d1352c3be9e738608976524f43bd761a819..61aa70f6ae7a275ab7131609bd94bb98641d08f8 100644 (file)
 #ifndef __GEOM_BaseDriver_HXX__
 #define __GEOM_BaseDriver_HXX__
 
+#include "GEOM_Function.hxx"
+
 #include <TFunction_Driver.hxx>
+#include <TFunction_Logbook.hxx>
 #include <TopAbs_ShapeEnum.hxx>
 #include <TopAbs_State.hxx>
+#include <TColStd_HSequenceOfTransient.hxx>
+#include <TColStd_HArray1OfInteger.hxx>
+
+#include <Basics_OCCTVersion.hxx>
 
 #include <string>
 #include <vector>
 #include <sstream>
 
-class Handle(GEOM_Function);
-class Handle(TColStd_HSequenceOfTransient);
-class Handle(TColStd_HArray1OfInteger);
+#if OCC_VERSION_MAJOR < 7
+  #define LOGBOOK TFunction_Logbook
+#else
+  #define LOGBOOK Handle(TFunction_Logbook)
+#endif
 
 struct GEOM_Param
 {
@@ -98,7 +107,7 @@ public:
     return params.back();
   }
 
-  DEFINE_STANDARD_RTTI (GEOM_BaseDriver)
+  OCCT_DEFINE_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
 };
 
 DEFINE_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver);