0026229: Add the possibility in OCAF to open/save a document from/to a stream object
[occt.git] / src / PCDM / PCDM_ReadWriter.hxx
index 564ce9b..a66ad8e 100644 (file)
@@ -76,6 +76,10 @@ public:
   //! a FileFormat information.
   Standard_EXPORT static TCollection_ExtendedString FileFormat (const TCollection_ExtendedString& aFileName);
 
+  //! tries  to get a format  from the stream.  returns an empty
+  //! string if the file could not be read or does not have
+  //! a FileFormat information.
+  Standard_EXPORT static TCollection_ExtendedString FileFormat (Standard_IStream& theIStream, Handle(Storage_Data)& theData);