X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FRWMesh%2FRWMesh_CafReader.hxx;h=863d1ab10562f0cb820fbd1fec228cce592662c6;hb=7e785937b3e65df86f35364e1036e446d6339cec;hpb=99289bed0a3c89d0fe9d2025d3452c0f66c7c9e1 diff --git a/src/RWMesh/RWMesh_CafReader.hxx b/src/RWMesh/RWMesh_CafReader.hxx index 1edc085a6f..863d1ab105 100644 --- a/src/RWMesh/RWMesh_CafReader.hxx +++ b/src/RWMesh/RWMesh_CafReader.hxx @@ -15,6 +15,7 @@ #ifndef _RWMesh_CafReader_HeaderFile #define _RWMesh_CafReader_HeaderFile +#include #include #include #include @@ -22,7 +23,6 @@ #include #include -class Message_ProgressIndicator; class TDocStd_Document; class XCAFDoc_ShapeTool; class XCAFDoc_ColorTool; @@ -151,7 +151,7 @@ public: //! Read the data from specified file. //! The Document instance should be set beforehand. bool Perform (const TCollection_AsciiString& theFile, - const Handle(Message_ProgressIndicator)& theProgress) + const Message_ProgressRange& theProgress) { return perform (theFile, theProgress, Standard_False); } @@ -175,7 +175,7 @@ public: //! The main purpose is collecting metadata and external references - for copying model into a new location, for example. //! Can be NOT implemented (unsupported by format / reader). Standard_Boolean ProbeHeader (const TCollection_AsciiString& theFile, - const Handle(Message_ProgressIndicator)& theProgress = Handle(Message_ProgressIndicator)()) + const Message_ProgressRange& theProgress = Message_ProgressRange()) { return perform (theFile, theProgress, Standard_True); } @@ -188,12 +188,12 @@ protected: //! @param optional progress indicator //! @param theToProbe flag indicating that mesh data should be skipped and only basing information to be read Standard_EXPORT virtual Standard_Boolean perform (const TCollection_AsciiString& theFile, - const Handle(Message_ProgressIndicator)& theProgress, + const Message_ProgressRange& theProgress, const Standard_Boolean theToProbe); //! Read the mesh from specified file - interface to be implemented by sub-classes. Standard_EXPORT virtual Standard_Boolean performMesh (const TCollection_AsciiString& theFile, - const Handle(Message_ProgressIndicator)& theProgress, + const Message_ProgressRange& theProgress, const Standard_Boolean theToProbe) = 0; //! @name tools for filling XDE document