From: azv Date: Tue, 26 Nov 2019 13:15:46 +0000 (+0300) Subject: Set correct drivers for reading/writing '.shaperpart' files X-Git-Tag: V9_5_0a1~160 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d925296b63193225bb4190b9484b9df6ae243b2b;p=modules%2Fshaper.git Set correct drivers for reading/writing '.shaperpart' files --- diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 9dcb0bd55..c2772757f 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -22,7 +22,8 @@ #include -#include +#include +#include IMPLEMENT_STANDARD_RTTIEXT(Model_Application, TDocStd_Application) @@ -173,9 +174,8 @@ Model_Application::Model_Application() // additional file format supported static TCollection_ExtendedString THE_DOC_FORMAT("BinShaperPart"); static TCollection_ExtendedString THE_FILE_EXT("shaperpart"); - Handle(PCDM_RetrievalDriver) aReader = - Handle(PCDM_RetrievalDriver)::DownCast(TheKeepHandle->ReaderFromFormat("BinOcaf")); - Handle(PCDM_StorageDriver) aWriter = TheKeepHandle->WriterFromFormat("BinOcaf"); + Handle(PCDM_RetrievalDriver) aReader = new BinDrivers_DocumentRetrievalDriver; + Handle(PCDM_StorageDriver) aWriter = new BinDrivers_DocumentStorageDriver; TheKeepHandle->DefineFormat(THE_DOC_FORMAT, "Shaper Part document", THE_FILE_EXT, aReader, aWriter); }