0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / PCDM / PCDM_Reader.hxx
index 85b39e5..d52178d 100644 (file)
@@ -24,6 +24,7 @@
 #include <Standard_Transient.hxx>
 #include <Standard_IStream.hxx>
 #include <Storage_Data.hxx>
+#include <Message_ProgressIndicator.hxx>
 
 class PCDM_DriverError;
 class CDM_Document;
@@ -45,12 +46,16 @@ public:
   Standard_EXPORT virtual Handle(CDM_Document) CreateDocument() = 0;
   
   //! retrieves the content of the file into a new Document.
-  Standard_EXPORT virtual void Read (const TCollection_ExtendedString& aFileName, const Handle(CDM_Document)& aNewDocument, const Handle(CDM_Application)& anApplication) = 0;
+  Standard_EXPORT virtual void Read (const TCollection_ExtendedString& aFileName, 
+                                     const Handle(CDM_Document)& aNewDocument, 
+                                     const Handle(CDM_Application)& anApplication, 
+                                     const Handle(Message_ProgressIndicator)& theProgress = NULL) = 0;
 
   Standard_EXPORT virtual void Read (Standard_IStream&               theIStream,
-                                      const Handle(Storage_Data)&    theStorageData,
-                                      const Handle(CDM_Document)&    theDoc,
-                                      const Handle(CDM_Application)& theApplication) = 0;
+                                     const Handle(Storage_Data)&    theStorageData,
+                                     const Handle(CDM_Document)&    theDoc,
+                                     const Handle(CDM_Application)& theApplication,
+                                     const Handle(Message_ProgressIndicator)& theProgress = NULL) = 0;
   
     PCDM_ReaderStatus GetStatus() const;