]> SALOME platform Git repositories - plugins/acisplugin.git/commitdiff
Salome HOME
Clean-up deprecated OCCT-related code
authorvsr <vsr@opencascade.com>
Mon, 25 Sep 2017 14:00:33 +0000 (17:00 +0300)
committervsr <vsr@opencascade.com>
Mon, 25 Sep 2017 14:00:33 +0000 (17:00 +0300)
src/ACISPlugin_ExportDriver.cxx
src/ACISPlugin_ExportDriver.hxx
src/ACISPlugin_IOperations_i.cc
src/ACISPlugin_ImportDriver.cxx
src/ACISPlugin_ImportDriver.hxx

index 7259200711a59096e62713a7417b5974caac610a..d20d8d676f707ef8ec1c8f80c7484f70f32a5ec4 100644 (file)
@@ -28,7 +28,7 @@
 // GEOM includes
 #include <GEOM_Function.hxx>
 
-// OOCT includes
+// OCCT includes
 #include <IFSelect_ReturnStatus.hxx>
 #include <SatControl_Writer.hxx>
 #include <TCollection_AsciiString.hxx>
@@ -64,7 +64,7 @@ ACISPlugin_ExportDriver::ACISPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer ACISPlugin_ExportDriver::Execute( LOGBOOK& log ) const
+Standard_Integer ACISPlugin_ExportDriver::Execute( Handle(TFunction_Logbook)& log ) const
 {
 #ifdef ACIS_HASLICENSE
     try {
@@ -120,4 +120,4 @@ GetCreationInformation( std::string&             theOperationName,
   return false;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );
index b26445a41157debf6b7d916ec9878605c8deb0f0..879c049d01b8d63fcb8d227aee3d197d2b9949f7 100644 (file)
@@ -32,14 +32,14 @@ public:
   ~ACISPlugin_ExportDriver() {};
 
   static const Standard_GUID& GetID();
-  virtual Standard_Integer    Execute( LOGBOOK& log ) const;
-  Standard_Boolean            MustExecute( const LOGBOOK& ) const { return Standard_True; }
-  virtual void                Validate( LOGBOOK& ) const {}
+  virtual Standard_Integer    Execute( Handle(TFunction_Logbook)& log ) const;
+  Standard_Boolean            MustExecute( const Handle(TFunction_Logbook)& ) const { return Standard_True; }
+  virtual void                Validate( Handle(TFunction_Logbook)& ) const {}
 
   virtual bool                GetCreationInformation( std::string& theOperationName,
                                                       std::vector<GEOM_Param>& params );
 
-OCCT_DEFINE_STANDARD_RTTIEXT( ACISPlugin_ExportDriver, GEOM_BaseDriver )
+  DEFINE_STANDARD_RTTIEXT( ACISPlugin_ExportDriver, GEOM_BaseDriver )
 };
 
 #endif // _ACISPlugin_ExportDriver_HXX
index f2b1606111107e80e844cbf90c96d4a87742c8c3..193afa28fdf713967188b489c4328a67938ca9ac 100644 (file)
@@ -97,7 +97,7 @@ GEOM::ListOfGO* ACISPlugin_IOperations_i::ImportACIS( const char* theFileName )
   Standard_Integer aLength = aHSeq->Length();
   aSeq->length( aLength );
   for( Standard_Integer i = 1; i <= aLength; i++ )
-    aSeq[i-1] = GetObject( HANDLE_NAMESPACE(GEOM_Object)::DownCast( aHSeq->Value(i) ) );
+    aSeq[i-1] = GetObject( Handle(::GEOM_Object)::DownCast( aHSeq->Value(i) ) );
 
   return aSeq._retn();
 }
index 21262fca08fadd856b5f3c0b43cedb6d2a19cc24..c45431ce6eee72d5eeed8c934644e3eaea2ac8e5 100644 (file)
@@ -29,7 +29,7 @@
 #include <GEOM_Function.hxx>
 #include <GEOMImpl_Types.hxx>
 
-// OOCT includes
+// OCCT includes
 #include <AcisAttr_AttribGenName.hxx>
 #include <AcisEnt_Attrib.hxx>
 #include <IFSelect_ReturnStatus.hxx>
@@ -78,7 +78,7 @@ ACISPlugin_ImportDriver::ACISPlugin_ImportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer ACISPlugin_ImportDriver::Execute( LOGBOOK& log ) const
+Standard_Integer ACISPlugin_ImportDriver::Execute( Handle(TFunction_Logbook)& log ) const
 {
   if( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -161,11 +161,7 @@ Standard_Integer ACISPlugin_ImportDriver::Execute( LOGBOOK& log ) const
 
   aFunction->SetValue( aResShape );
 
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched(Label());
-#else
   log->SetTouched(Label());
-#endif
 
   return 1;
 }
@@ -198,4 +194,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );
index e5d5f7f854fc1f9012735cf82aada296dbec5613..2219f508834260dbba4c30b0d662020661ca0084 100644 (file)
@@ -32,14 +32,14 @@ public:
   ~ACISPlugin_ImportDriver() {};
 
   static const Standard_GUID& GetID();
-  virtual Standard_Integer    Execute( LOGBOOK& log ) const;
-  Standard_Boolean            MustExecute( const LOGBOOK& ) const { return Standard_True; }
-  virtual void                Validate( LOGBOOK& ) const {}
+  virtual Standard_Integer    Execute( Handle(TFunction_Logbook)& log ) const;
+  Standard_Boolean            MustExecute( const Handle(TFunction_Logbook)& ) const { return Standard_True; }
+  virtual void                Validate( Handle(TFunction_Logbook)& ) const {}
  
   virtual bool                GetCreationInformation( std::string& theOperationName,
                                                       std::vector<GEOM_Param>& params );
 
-OCCT_DEFINE_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver )
+  DEFINE_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver )
 };
 
 #endif // _ACISPlugin_ImportDriver_HXX