//function : Execute
//purpose :
//=======================================================================
-Standard_Integer ACISPlugin_ExportDriver::Execute( TFunction_Logbook& log ) const
+Standard_Integer ACISPlugin_ExportDriver::Execute( LOGBOOK& log ) const
{
#ifdef ACIS_HASLICENSE
try {
return 0;
}
-//=======================================================================
-//function : MustExecute
-//purpose :
-//=======================================================================
-Standard_Boolean ACISPlugin_ExportDriver::MustExecute( const TFunction_Logbook& ) const
-{
- return Standard_True;
-}
-
//================================================================================
/*!
* \brief Returns a name of creation operation and names and values of creation parameters
return false;
}
-IMPLEMENT_STANDARD_HANDLE( ACISPlugin_ExportDriver,GEOM_BaseDriver );
-IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ExportDriver,GEOM_BaseDriver );
// GEOM includes
#include <GEOM_BaseDriver.hxx>
-// OCCT includes
-#include <TFunction_Logbook.hxx>
-
DEFINE_STANDARD_HANDLE( ACISPlugin_ExportDriver, GEOM_BaseDriver );
class ACISPlugin_ExportDriver : public GEOM_BaseDriver
~ACISPlugin_ExportDriver() {};
static const Standard_GUID& GetID();
- virtual Standard_Integer Execute( TFunction_Logbook& log ) const;
- Standard_Boolean MustExecute( const TFunction_Logbook& ) const;
- virtual void Validate( TFunction_Logbook& ) const {}
+ virtual Standard_Integer Execute( LOGBOOK& log ) const;
+ Standard_Boolean MustExecute( const LOGBOOK& ) const { return Standard_True; }
+ virtual void Validate( LOGBOOK& ) const {}
- virtual bool GetCreationInformation( std::string& heOperationName,
+ virtual bool GetCreationInformation( std::string& theOperationName,
std::vector<GEOM_Param>& params );
-DEFINE_STANDARD_RTTI( ACISPlugin_ExportDriver )
+OCCT_DEFINE_STANDARD_RTTIEXT( ACISPlugin_ExportDriver, GEOM_BaseDriver )
};
#endif // _ACISPlugin_ExportDriver_HXX
Standard_Integer aLength = aHSeq->Length();
aSeq->length( aLength );
for( Standard_Integer i = 1; i <= aLength; i++ )
- aSeq[i-1] = GetObject( Handle(GEOM_Object)::DownCast( aHSeq->Value(i) ) );
+ aSeq[i-1] = GetObject( HANDLE_NAMESPACE(GEOM_Object)::DownCast( aHSeq->Value(i) ) );
return aSeq._retn();
}
//function : Execute
//purpose :
//=======================================================================
-Standard_Integer ACISPlugin_ImportDriver::Execute( TFunction_Logbook& log ) const
+Standard_Integer ACISPlugin_ImportDriver::Execute( LOGBOOK& log ) const
{
if( Label().IsNull() ) return 0;
Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
aFunction->SetValue( aResShape );
- log.SetTouched( Label() );
+#if OCC_VERSION_MAJOR < 7
+ log.SetTouched(Label());
+#else
+ log->SetTouched(Label());
+#endif
return 1;
}
-//=======================================================================
-//function : MustExecute
-//purpose :
-//=======================================================================
-Standard_Boolean ACISPlugin_ImportDriver::MustExecute( const TFunction_Logbook& ) const
-{
- return Standard_True;
-}
-
//================================================================================
/*!
* \brief Returns a name of creation operation and names and values of creation parameters
return true;
}
-IMPLEMENT_STANDARD_HANDLE( ACISPlugin_ImportDriver, GEOM_BaseDriver );
-IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );
// GEOM includes
#include <GEOM_BaseDriver.hxx>
-// OCCT includes
-#ifndef _TFunction_Logbook_HeaderFile
-#include <TFunction_Logbook.hxx>
-#endif
-
DEFINE_STANDARD_HANDLE( ACISPlugin_ImportDriver, GEOM_BaseDriver );
class ACISPlugin_ImportDriver : public GEOM_BaseDriver
~ACISPlugin_ImportDriver() {};
static const Standard_GUID& GetID();
- virtual Standard_Integer Execute( TFunction_Logbook& log ) const;
- Standard_Boolean MustExecute( const TFunction_Logbook& ) const;
- virtual void Validate( TFunction_Logbook& ) const {}
+ virtual Standard_Integer Execute( LOGBOOK& log ) const;
+ Standard_Boolean MustExecute( const LOGBOOK& ) const { return Standard_True; }
+ virtual void Validate( LOGBOOK& ) const {}
virtual bool GetCreationInformation( std::string& theOperationName,
std::vector<GEOM_Param>& params );
-DEFINE_STANDARD_RTTI( ACISPlugin_ImportDriver )
+OCCT_DEFINE_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver )
};
#endif // _ACISPlugin_ImportDriver_HXX