mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0032479: Application Framework - unnecessary API break within TDocStd_Application::Open()
Added aliases to Open() without theFilter argument for compatibility with old API.
This commit is contained in:
parent
9ee9e5ec34
commit
acab849d30
@ -222,26 +222,56 @@ public:
|
|||||||
//! }
|
//! }
|
||||||
Standard_EXPORT Standard_Integer IsInSession (const TCollection_ExtendedString& path) const;
|
Standard_EXPORT Standard_Integer IsInSession (const TCollection_ExtendedString& path) const;
|
||||||
|
|
||||||
//! Retrieves the document aDoc stored under the
|
//! Retrieves the document from specified file.
|
||||||
//! name aName in the directory directory.
|
//! In order not to override a version of the document which is already in memory,
|
||||||
//! In order not to override a version of aDoc which
|
//! this method can be made to depend on the value returned by IsInSession.
|
||||||
//! is already in memory, this method can be made
|
//! @param[in] thePath file path to open
|
||||||
//! to depend on the value returned by IsInSession.
|
//! @param[out] theDoc result document
|
||||||
//! It is possible to filter out some attributes or
|
//! @param[in] theFilter optional filter to skip attributes or parts of the retrieved tree
|
||||||
//! parts of the retrieved tree by theFilter.
|
//! @param[in] theRange optional progress indicator
|
||||||
Standard_EXPORT PCDM_ReaderStatus Open (const TCollection_ExtendedString& path,
|
//! @return reading status
|
||||||
|
Standard_EXPORT PCDM_ReaderStatus Open (const TCollection_ExtendedString& thePath,
|
||||||
Handle(TDocStd_Document)& theDoc,
|
Handle(TDocStd_Document)& theDoc,
|
||||||
const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
|
const Handle(PCDM_ReaderFilter)& theFilter,
|
||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
//! Retrieves aDoc from standard SEEKABLE stream theIStream.
|
//! Retrieves the document from specified file.
|
||||||
//! the stream should support SEEK functionality
|
//! In order not to override a version of the document which is already in memory,
|
||||||
//! It is possible to filter out some attributes or
|
//! this method can be made to depend on the value returned by IsInSession.
|
||||||
//! parts of the retrieved tree by theFilter.
|
//! @param[in] thePath file path to open
|
||||||
Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream, Handle(TDocStd_Document)& theDoc,
|
//! @param[out] theDoc result document
|
||||||
const Handle(PCDM_ReaderFilter)& theFilter = Handle(PCDM_ReaderFilter)(),
|
//! @param[in] theRange optional progress indicator
|
||||||
|
//! @return reading status
|
||||||
|
PCDM_ReaderStatus Open (const TCollection_ExtendedString& thePath,
|
||||||
|
Handle(TDocStd_Document)& theDoc,
|
||||||
|
const Message_ProgressRange& theRange = Message_ProgressRange())
|
||||||
|
{
|
||||||
|
return Open (thePath, theDoc, Handle(PCDM_ReaderFilter)(), theRange);
|
||||||
|
}
|
||||||
|
|
||||||
|
//! Retrieves document from standard stream.
|
||||||
|
//! @param[in,out] theIStream input seekable stream
|
||||||
|
//! @param[out] theDoc result document
|
||||||
|
//! @param[in] theFilter optional filter to skip attributes or parts of the retrieved tree
|
||||||
|
//! @param[in] theRange optional progress indicator
|
||||||
|
//! @return reading status
|
||||||
|
Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream,
|
||||||
|
Handle(TDocStd_Document)& theDoc,
|
||||||
|
const Handle(PCDM_ReaderFilter)& theFilter,
|
||||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||||
|
|
||||||
|
//! Retrieves document from standard stream.
|
||||||
|
//! @param[in,out] theIStream input seekable stream
|
||||||
|
//! @param[out] theDoc result document
|
||||||
|
//! @param[in] theRange optional progress indicator
|
||||||
|
//! @return reading status
|
||||||
|
PCDM_ReaderStatus Open (Standard_IStream& theIStream,
|
||||||
|
Handle(TDocStd_Document)& theDoc,
|
||||||
|
const Message_ProgressRange& theRange = Message_ProgressRange())
|
||||||
|
{
|
||||||
|
return Open (theIStream, theDoc, Handle(PCDM_ReaderFilter)(), theRange);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//! Save the active document in the file <name> in the
|
//! Save the active document in the file <name> in the
|
||||||
//! path <path> ; o verwrites the file if it already exists.
|
//! path <path> ; o verwrites the file if it already exists.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user