// GEOM includes
#include <GEOM_Function.hxx>
-// OOCT includes
+// OCCT includes
#include <IFSelect_ReturnStatus.hxx>
#include <DxfControl_Writer.hxx>
#include <TCollection_AsciiString.hxx>
//function : Execute
//purpose :
//=======================================================================
-Standard_Integer DXFPlugin_ExportDriver::Execute( LOGBOOK& log ) const
+Standard_Integer DXFPlugin_ExportDriver::Execute( Handle(TFunction_Logbook)& log ) const
{
#ifdef DXF_HASLICENSE
try {
return false;
}
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( DXFPlugin_ExportDriver,GEOM_BaseDriver )
+IMPLEMENT_STANDARD_RTTIEXT( DXFPlugin_ExportDriver,GEOM_BaseDriver )
~DXFPlugin_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( DXFPlugin_ExportDriver, GEOM_BaseDriver )
+DEFINE_STANDARD_RTTIEXT( DXFPlugin_ExportDriver, GEOM_BaseDriver )
};
#endif // _DXFPlugin_ExportDriver_HXX
GetOperations()->SetNotDone();
//Get the reference shape
- HANDLE_NAMESPACE(GEOM_Object) anOriginal = GetObjectImpl( theOriginal );
+ Handle(::GEOM_Object) anOriginal = GetObjectImpl( theOriginal );
if (anOriginal.IsNull()) return;
//Export the shape to the file
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();
}
#include <GEOM_Function.hxx>
#include <GEOMImpl_Types.hxx>
-// OOCT includes
+// OCCT includes
#include <DxfControl_Reader.hxx>
#include <DxfSection_Block.hxx>
#include <DxfSection_HSequenceOfObject.hxx>
//function : Execute
//purpose :
//=======================================================================
-Standard_Integer DXFPlugin_ImportDriver::Execute( LOGBOOK& log ) const
+Standard_Integer DXFPlugin_ImportDriver::Execute( Handle(TFunction_Logbook)& log ) const
{
if( Label().IsNull() ) return 0;
Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
aFunction->SetValue( aResShape );
-#if OCC_VERSION_MAJOR < 7
- log.SetTouched(Label());
-#else
log->SetTouched(Label());
-#endif
return 1;
}
return true;
}
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( DXFPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( DXFPlugin_ImportDriver, GEOM_BaseDriver );
~DXFPlugin_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( DXFPlugin_ImportDriver, GEOM_BaseDriver )
+DEFINE_STANDARD_RTTIEXT( DXFPlugin_ImportDriver, GEOM_BaseDriver )
};
#endif // _DXFPlugin_ImportDriver_HXX