mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026229: Add the possibility in OCAF to open/save a document from/to a stream object
TDocStd_Application class extended to open/save a document of XmlOcaf and BinOcaf format from/to standard SEEKABLE stream object which should support SEEK functionality. Open and SaveAs DRAW commands got new additional argument "-stream" to turn on using of stream functionality. The main changes for BinOcaf format applied in: FSD_BinaryFile class (static method using standard stream added) BinLDrivers_DocumentRetrievalDriver and BinLDrivers_DocumentStorageDriver classes use standard stream object as an argument The main changes for XmlOcaf format applied in: LDOMParser and LDOM_XmlWriter classes use standard stream object as an argument Unused class FSD_Archive and its siblings removed from MFC samples.
This commit is contained in:
@@ -2970,11 +2970,13 @@ Makes a list of documents handled during the session of the application.
|
||||
|
||||
Syntax:
|
||||
~~~~~
|
||||
Open path docname
|
||||
Open path docname [-stream]
|
||||
~~~~~
|
||||
|
||||
Retrieves the document of file **docname** in the path **path**. Overwrites the document, if it is already in session.
|
||||
|
||||
option <i>-stream</i> activates usage of alternative interface of OCAF persistence working with C++ streams instead of file names.
|
||||
|
||||
**Example:**
|
||||
~~~~~
|
||||
Open /myPath/myFile.std D
|
||||
@@ -3012,10 +3014,12 @@ Save D
|
||||
|
||||
Syntax:
|
||||
~~~~~
|
||||
SaveAs docname path
|
||||
SaveAs docname path [-stream]
|
||||
~~~~~
|
||||
|
||||
Saves the active document in the file **docname** in the path **path**. Overwrites the file if it already exists.
|
||||
Saves the active document in the file **docname** in the path **path**. Overwrites the file if it already exists.
|
||||
|
||||
option <i>-stream</i> activates usage of alternative interface of OCAF persistence working with C++ streams instead of file names.
|
||||
|
||||
**Example:**
|
||||
~~~~~
|
||||
|
Reference in New Issue
Block a user