mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-04 11:47:53 +08: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:
@@ -702,6 +702,15 @@ void DDF_IOStream::ReadInfo(Standard_Integer& nbObj,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ReadCompleteInfo
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void DDF_IOStream::ReadCompleteInfo( Standard_IStream& /*theIStream*/, Handle(Storage_Data)& /*theData*/ )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EndReadInfoSection
|
||||
//purpose :
|
||||
|
||||
@@ -56,6 +56,7 @@ static Storage_Error IsGoodFileType(istream* anIStream) ;
|
||||
Storage_Error EndWriteInfoSection() ;
|
||||
Storage_Error BeginReadInfoSection() ;
|
||||
void ReadInfo(Standard_Integer& nbObj,TCollection_AsciiString& dbVersion,TCollection_AsciiString& date,TCollection_AsciiString& schemaName,TCollection_AsciiString& schemaVersion,TCollection_ExtendedString& appName,TCollection_AsciiString& appVersion,TCollection_ExtendedString& objectType,TColStd_SequenceOfAsciiString& userInfo) ;
|
||||
void ReadCompleteInfo (Standard_IStream& theIStream, Handle(Storage_Data)& theData);
|
||||
Storage_Error EndReadInfoSection() ;
|
||||
Storage_Error BeginWriteCommentSection() ;
|
||||
void WriteComment(const TColStd_SequenceOfExtendedString& userComments) ;
|
||||
|
||||
Reference in New Issue
Block a user