]> OCCT Git - occt.git/commit
0032125: Application Framework, OCAF - need to have adequate message if document...
authorvro <vro@opencascade.com>
Wed, 1 Sep 2021 08:47:41 +0000 (11:47 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 3 Sep 2021 17:19:55 +0000 (20:19 +0300)
commit632deee0b066a3ab17154a093875d8a05c13b518
tree16c4028131b1e16cfd5d5fbbd1ba0b9e74a452b4
parent9443cf8ec48fdc138ad5359b5adc7dbddcf617ca
0032125: Application Framework, OCAF - need to have adequate message if document cannot be saved due to unrecognized format

A list of storage statuses (PCDM_StoreStatus) is extended for PCDM_SS_UnrecognizedFormat. It is set if
- extension of a document file name is not defined (the extension doesn't correspond to any declared file formats) or
- a storage driver is not found for the document storage format.

Modified:
CDF_StoreList.cxx: the mechanism of raising and catching exceptions is replaced by direct setting the status and error message for each particular error.
PCDM_StoreStatus.hxx: a new enumeration value is added - PCDM_SS_UnrecognizedFormat. Also, a short explanation is added to each enumeration value.
DDocStd_ApplicationCommands.cxx: processing of a new enumeration value by the draw-command.
XDEDRAW.cxx: processed a new enumeration value PCDM_SS_UnrecognizedFormat by saveDoc draw-command.

Deleted:
CDF_MetaDataDriverError.hxx: It is not used anywhere and it seems it will not be used by someone.
src/CDF/CDF_MetaDataDriverError.hxx [deleted file]
src/CDF/CDF_StoreList.cxx
src/CDF/FILES
src/PCDM/PCDM_StoreStatus.hxx
src/TDocStd/TDocStd_Application.cxx
src/XDEDRAW/XDEDRAW.cxx