0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / BinLDrivers / BinLDrivers_DocumentRetrievalDriver.hxx
index 0bbd004..5fb48ab 100644 (file)
@@ -59,12 +59,16 @@ public:
   Standard_EXPORT virtual Handle(CDM_Document) CreateDocument() Standard_OVERRIDE;
   
   //! retrieves the content of the file into a new Document.
-  Standard_EXPORT virtual void Read (const TCollection_ExtendedString& theFileName, const Handle(CDM_Document)& theNewDocument, const Handle(CDM_Application)& theApplication) Standard_OVERRIDE;
+  Standard_EXPORT virtual void Read (const TCollection_ExtendedString& theFileName,
+                                     const Handle(CDM_Document)& theNewDocument, 
+                                     const Handle(CDM_Application)& theApplication, 
+                                     const Handle(Message_ProgressIndicator)& theProgress = NULL) Standard_OVERRIDE;
 
   Standard_EXPORT virtual void Read (Standard_IStream&               theIStream,
                                      const Handle(Storage_Data)&     theStorageData,
                                      const Handle(CDM_Document)&     theDoc,
-                                     const Handle(CDM_Application)&  theApplication) Standard_OVERRIDE;
+                                     const Handle(CDM_Application)&  theApplication,
+                                     const Handle(Message_ProgressIndicator)& theProgress = NULL) Standard_OVERRIDE;
   
   Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
 
@@ -77,14 +81,24 @@ protected:
 
   
   //! Read the tree from the stream <theIS> to <theLabel>
-  Standard_EXPORT virtual Standard_Integer ReadSubTree (Standard_IStream& theIS, const TDF_Label& theData);
+  Standard_EXPORT virtual Standard_Integer ReadSubTree
+    (Standard_IStream& theIS, 
+     const TDF_Label& theData, 
+     const Handle(Message_ProgressIndicator)& theProgress = NULL);
   
   
   //! define the procedure of reading a section to file.
-  Standard_EXPORT virtual void ReadSection (BinLDrivers_DocumentSection& theSection, const Handle(CDM_Document)& theDoc, Standard_IStream& theIS);
+  Standard_EXPORT virtual void ReadSection
+    (BinLDrivers_DocumentSection& theSection, 
+     const Handle(CDM_Document)& theDoc,
+     Standard_IStream& theIS);
   
   //! define the procedure of reading a shapes section to file.
-  Standard_EXPORT virtual void ReadShapeSection (BinLDrivers_DocumentSection& theSection, Standard_IStream& theIS, const Standard_Boolean isMess = Standard_False);
+  Standard_EXPORT virtual void ReadShapeSection
+    (BinLDrivers_DocumentSection& theSection, 
+     Standard_IStream& theIS, 
+     const Standard_Boolean isMess = Standard_False,
+     const Handle(Message_ProgressIndicator)& theProgress = NULL);
   
   //! checks the shapes section can be correctly retreived.
   Standard_EXPORT virtual void CheckShapeSection (const Storage_Position& thePos, Standard_IStream& theIS);