occt: master 6fe96f84

Author Committer Branch Timestamp Parent
abv abv master 2016-06-20 03:53:14 master 8072aba1
Affected Issues  0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
Changeset 0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one

Fields to store cached instances of reader and writer drivers for each format are added in CDF_Application.
Method DefineFormat() is added in TDocStd_Application, allowing defining format completely by single call, including drivers to be used for persistence.
All OCAF driver packages provide static method DefineFormat() that defines standard OCAF persistence format supported by corresponding package; these methods are called in DRAW to enable all persistence by default.

DRAW commands (except TObj-specific ones) now use single instance of OCAF Application, returned by DDocStd::GetApplication(). Other instances are eliminated, as well as method DDocStd::Find(const Handle(TDocStd_Application)&).
Method MessageDriver() and relevant field are moved to TDocStd_Application from its descendants.

Method CDF_Application::ReaderFromFormat() is made virtual to allow its redefinition in descendants.
Creation of storage driver is moved from PCDM::StorageDriver() to new virtual method CDF_Application::WriterFromFormat().
The code loading driver as plugin is retained in both these methods for compatibility.

Test command OCC24925 is converted to use virtual methods instead of defining plugin resource.

Migration table for old OCAF types is hard-coded in Storage_Schema::CheckTypeMigration().

Removed obsolete and unused items:
- FWOSPlugin library (driver is created directly)
- Methods in classes CDM_Document dealing with unused parameters of format
- DRAW command OCC23010 for testing non-reproducible issue 0023010
- Methods PCDM::StorageDriver(), PCDM::FindStorageDriver()
- Method Formats() from CDF_Application and descendants
- Methods LoadExtensions and SchemaName from PCDM_StorageDriver
- Method Plugin::AdditionalPluginMap()
- Method BinLDrivers_DocumentStorageDriver::SchemaName()
- Method CDF_Application::DefaultExtension(), Reader(), FindReader(), FindReaderFromFormat()
- Method CDF_Store::Check()
mod - adm/UDLIST Diff File
rm - dox/license.md Diff File
mod - dox/user_guides/ocaf/ocaf.md Diff File
mod - samples/mfc/occtdemo/adm/cmake/Approx/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Chamfers/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Convert/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/DCA/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Extrema/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/GeomConstraints/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Glue/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/GProps/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/HLR/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Interpol/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Intersections/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/LProps/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Offset2d/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/PointOnCurve/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Primitives/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Projection/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Simplify/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/SplitShape/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Sweep/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Tesselate/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/TexturesExt/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/ThruSections/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Transform/CMakeLists.txt Diff File
mod - samples/mfc/occtdemo/adm/cmake/Validate/CMakeLists.txt Diff File
rm - samples/mfc/occtdemo/All/All.dsp Diff File
rm - samples/mfc/occtdemo/Approx/Approx.dsp Diff File
mod - samples/mfc/occtdemo/Approx/Approx.vcproj Diff File
rm - samples/mfc/occtdemo/Chamfers/Chamfers.dsp Diff File
mod - samples/mfc/occtdemo/Chamfers/Chamfers.vcproj Diff File
rm - samples/mfc/occtdemo/Convert/Convert.dsp Diff File
mod - samples/mfc/occtdemo/Convert/Convert.vcproj Diff File
rm - samples/mfc/occtdemo/DCA/DCA.dsp Diff File
mod - samples/mfc/occtdemo/DCA/DCA.vcproj Diff File
rm - samples/mfc/occtdemo/Extrema/Extrema.dsp Diff File
mod - samples/mfc/occtdemo/Extrema/Extrema.vcproj Diff File
rm - samples/mfc/occtdemo/GeomConstraints/GeomConstraints.dsp Diff File
mod - samples/mfc/occtdemo/GeomConstraints/GeomConstraints.vcproj Diff File
rm - samples/mfc/occtdemo/Glue/Glue.dsp Diff File
mod - samples/mfc/occtdemo/Glue/Glue.vcproj Diff File
rm - samples/mfc/occtdemo/GProps/GProps.dsp Diff File
mod - samples/mfc/occtdemo/GProps/GProps.vcproj Diff File
rm - samples/mfc/occtdemo/HLR/HLR.dsp Diff File
mod - samples/mfc/occtdemo/HLR/HLR.vcproj Diff File
rm - samples/mfc/occtdemo/Interpol/Interpol.dsp Diff File
mod - samples/mfc/occtdemo/Interpol/Interpol.vcproj Diff File
rm - samples/mfc/occtdemo/Intersections/Intersections.dsp Diff File
mod - samples/mfc/occtdemo/Intersections/Intersections.vcproj Diff File
rm - samples/mfc/occtdemo/LProps/LProps.dsp Diff File
mod - samples/mfc/occtdemo/LProps/LProps.vcproj Diff File
rm - samples/mfc/occtdemo/OCCDemo.dsw Diff File
rm - samples/mfc/occtdemo/Offset2d/Offset2d.dsp Diff File
mod - samples/mfc/occtdemo/Offset2d/Offset2d.vcproj Diff File
rm - samples/mfc/occtdemo/PointOnCurve/PointOnCurve.dsp Diff File
mod - samples/mfc/occtdemo/PointOnCurve/PointOnCurve.vcproj Diff File
rm - samples/mfc/occtdemo/Primitives/Primitives.dsp Diff File
mod - samples/mfc/occtdemo/Primitives/Primitives.vcproj Diff File
rm - samples/mfc/occtdemo/Projection/Projection.dsp Diff File
mod - samples/mfc/occtdemo/Projection/Projection.vcproj Diff File
rm - samples/mfc/occtdemo/Simplify/Simplify.dsp Diff File
mod - samples/mfc/occtdemo/Simplify/Simplify.vcproj Diff File
rm - samples/mfc/occtdemo/SplitShape/SplitShape.dsp Diff File
mod - samples/mfc/occtdemo/SplitShape/SplitShape.vcproj Diff File
rm - samples/mfc/occtdemo/Sweep/Sweep.dsp Diff File
mod - samples/mfc/occtdemo/Sweep/Sweep.vcproj Diff File
rm - samples/mfc/occtdemo/Tesselate/Tesselate.dsp Diff File
mod - samples/mfc/occtdemo/Tesselate/Tesselate.vcproj Diff File
rm - samples/mfc/occtdemo/Textures/Textures.dsp Diff File
mod - samples/mfc/occtdemo/Textures/Textures.vcproj Diff File
rm - samples/mfc/occtdemo/TexturesExt/TexturesExt.dsp Diff File
mod - samples/mfc/occtdemo/TexturesExt/TexturesExt.vcproj Diff File
rm - samples/mfc/occtdemo/ThruSections/ThruSections.dsp Diff File
mod - samples/mfc/occtdemo/ThruSections/ThruSections.vcproj Diff File
rm - samples/mfc/occtdemo/TopLProps/TopLProps.dsp Diff File
mod - samples/mfc/occtdemo/TopLProps/TopLProps.vcproj Diff File
rm - samples/mfc/occtdemo/Transform/Transform.dsp Diff File
mod - samples/mfc/occtdemo/Transform/Transform.vcproj Diff File
rm - samples/mfc/occtdemo/Validate/Validate.dsp Diff File
mod - samples/mfc/occtdemo/Validate/Validate.vcproj Diff File
mod - samples/mfc/standard/01_Geometry/adm/win/vc10/Geometry.vcxproj Diff File
mod - samples/mfc/standard/01_Geometry/adm/win/vc11/Geometry.vcxproj Diff File
mod - samples/mfc/standard/01_Geometry/adm/win/vc12/Geometry.vcxproj Diff File
mod - samples/mfc/standard/01_Geometry/adm/win/vc8/Geometry.vcproj Diff File
mod - samples/mfc/standard/01_Geometry/adm/win/vc9/Geometry.vcproj Diff File
mod - samples/mfc/standard/02_Modeling/adm/win/vc10/Modeling.vcxproj Diff File
mod - samples/mfc/standard/02_Modeling/adm/win/vc11/Modeling.vcxproj Diff File
mod - samples/mfc/standard/02_Modeling/adm/win/vc12/Modeling.vcxproj Diff File
mod - samples/mfc/standard/02_Modeling/adm/win/vc8/Modeling.vcproj Diff File
mod - samples/mfc/standard/02_Modeling/adm/win/vc9/Modeling.vcproj Diff File
mod - samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj Diff File
mod - samples/mfc/standard/03_Viewer2d/adm/win/vc11/Viewer2d.vcxproj Diff File
mod - samples/mfc/standard/03_Viewer2d/adm/win/vc12/Viewer2d.vcxproj Diff File
mod - samples/mfc/standard/03_Viewer2d/adm/win/vc8/Viewer2d.vcproj Diff File
mod - samples/mfc/standard/03_Viewer2d/adm/win/vc9/Viewer2d.vcproj Diff File
mod - samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj Diff File
mod - samples/mfc/standard/04_Viewer3d/adm/win/vc11/Viewer3d.vcxproj Diff File
mod - samples/mfc/standard/04_Viewer3d/adm/win/vc12/Viewer3d.vcxproj Diff File
mod - samples/mfc/standard/04_Viewer3d/adm/win/vc8/Viewer3d.vcproj Diff File
mod - samples/mfc/standard/04_Viewer3d/adm/win/vc9/Viewer3d.vcproj Diff File
mod - samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj Diff File
mod - samples/mfc/standard/05_ImportExport/adm/win/vc11/ImportExport.vcxproj Diff File
mod - samples/mfc/standard/05_ImportExport/adm/win/vc12/ImportExport.vcxproj Diff File
mod - samples/mfc/standard/05_ImportExport/adm/win/vc8/ImportExport.vcproj Diff File
mod - samples/mfc/standard/05_ImportExport/adm/win/vc9/ImportExport.vcproj Diff File
mod - samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj Diff File
mod - samples/mfc/standard/06_Ocaf/adm/win/vc11/Ocaf.vcxproj Diff File
mod - samples/mfc/standard/06_Ocaf/adm/win/vc12/Ocaf.vcxproj Diff File
mod - samples/mfc/standard/06_Ocaf/adm/win/vc8/Ocaf.vcproj Diff File
mod - samples/mfc/standard/06_Ocaf/adm/win/vc9/Ocaf.vcproj Diff File
mod - samples/mfc/standard/06_Ocaf/res/Plugin Diff File
mod - samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj Diff File
mod - samples/mfc/standard/07_Triangulation/adm/win/vc11/Triangulation.vcxproj Diff File
mod - samples/mfc/standard/07_Triangulation/adm/win/vc12/Triangulation.vcxproj Diff File
mod - samples/mfc/standard/07_Triangulation/adm/win/vc8/Triangulation.vcproj Diff File
mod - samples/mfc/standard/07_Triangulation/adm/win/vc9/Triangulation.vcproj Diff File
mod - samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj Diff File
mod - samples/mfc/standard/08_HLR/adm/win/vc11/HLR.vcxproj Diff File
mod - samples/mfc/standard/08_HLR/adm/win/vc12/HLR.vcxproj Diff File
mod - samples/mfc/standard/08_HLR/adm/win/vc8/HLR.vcproj Diff File
mod - samples/mfc/standard/08_HLR/adm/win/vc9/HLR.vcproj Diff File
mod - samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj Diff File
mod - samples/mfc/standard/09_Animation/adm/win/vc11/Animation.vcxproj Diff File
mod - samples/mfc/standard/09_Animation/adm/win/vc12/Animation.vcxproj Diff File
mod - samples/mfc/standard/09_Animation/adm/win/vc8/Animation.vcproj Diff File
mod - samples/mfc/standard/09_Animation/adm/win/vc9/Animation.vcproj Diff File
mod - samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj Diff File
mod - samples/mfc/standard/10_Convert/adm/win/vc11/Convert.vcxproj Diff File
mod - samples/mfc/standard/10_Convert/adm/win/vc12/Convert.vcxproj Diff File
mod - samples/mfc/standard/10_Convert/adm/win/vc8/Convert.vcproj Diff File
mod - samples/mfc/standard/10_Convert/adm/win/vc9/Convert.vcproj Diff File
mod - samples/mfc/standard/mfcsample/adm/win/vc10/mfcsample.vcxproj Diff File
mod - samples/mfc/standard/mfcsample/adm/win/vc11/mfcsample.vcxproj Diff File
mod - samples/mfc/standard/mfcsample/adm/win/vc12/mfcsample.vcxproj Diff File
mod - samples/mfc/standard/mfcsample/adm/win/vc8/mfcsample.vcproj Diff File
mod - samples/mfc/standard/mfcsample/adm/win/vc9/mfcsample.vcproj Diff File
mod - samples/mfc/standard/mfcsample/CMakeLists.txt Diff File
mod - src/AppStd/AppStd_Application.cxx Diff File
mod - src/AppStd/AppStd_Application.hxx Diff File
mod - src/AppStdL/AppStdL_Application.cxx Diff File
mod - src/AppStdL/AppStdL_Application.hxx Diff File
mod - src/BinDrivers/BinDrivers.cxx Diff File
mod - src/BinDrivers/BinDrivers.hxx Diff File
mod - src/BinLDrivers/BinLDrivers.cxx Diff File
mod - src/BinLDrivers/BinLDrivers.hxx Diff File
mod - src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx Diff File
mod - src/BinLDrivers/BinLDrivers_DocumentStorageDriver.hxx Diff File
mod - src/BinTObjDrivers/BinTObjDrivers.cxx Diff File
mod - src/BinTObjDrivers/BinTObjDrivers.hxx Diff File
mod - src/BinXCAFDrivers/BinXCAFDrivers.cxx Diff File
mod - src/BinXCAFDrivers/BinXCAFDrivers.hxx Diff File
mod - src/CDF/CDF_Application.cxx Diff File
mod - src/CDF/CDF_Application.hxx Diff File
rm - src/CDF/CDF_Application.lxx Diff File
mod - src/CDF/CDF_Session.cxx Diff File
mod - src/CDF/CDF_Store.cxx Diff File
mod - src/CDF/CDF_Store.hxx Diff File
mod - src/CDF/CDF_StoreList.cxx Diff File
mod - src/CDF/FILES Diff File
mod - src/CDM/CDM_Application.hxx Diff File
mod - src/CDM/CDM_Document.cxx Diff File
mod - src/CDM/CDM_Document.hxx Diff File
mod - src/DDocStd/DDocStd.cxx Diff File
mod - src/DDocStd/DDocStd.hxx Diff File
mod - src/DDocStd/DDocStd_ApplicationCommands.cxx Diff File
mod - src/DPrsStd/DPrsStd.cxx Diff File
rm - src/FWOSDriver/FILES Diff File
rm - src/FWOSDriver/FWOSDriver.cxx Diff File
rm - src/FWOSDriver/FWOSDriver.hxx Diff File
rm - src/FWOSDriver/FWOSDriver_DriverFactory.cxx Diff File
rm - src/FWOSDriver/FWOSDriver_DriverFactory.hxx Diff File
rm - src/FWOSPlugin/CMakeLists.txt Diff File
rm - src/FWOSPlugin/EXTERNLIB Diff File
rm - src/FWOSPlugin/FILES Diff File
rm - src/FWOSPlugin/PACKAGES Diff File
mod - src/OS/ApplicationFramework.tcl Diff File
mod - src/PCDM/PCDM.cxx Diff File
mod - src/PCDM/PCDM.hxx Diff File
mod - src/PCDM/PCDM_StorageDriver.cxx Diff File
mod - src/PCDM/PCDM_StorageDriver.hxx Diff File
mod - src/Plugin/Plugin.cxx Diff File
mod - src/Plugin/Plugin.hxx Diff File
mod - src/QABugs/QABugs_1.cxx Diff File
mod - src/QABugs/QABugs_11.cxx Diff File
mod - src/QABugs/QABugs_18.cxx Diff File
mod - src/QABugs/QABugs_19.cxx Diff File
mod - src/QABugs/QABugs_3.cxx Diff File
mod - src/StdDrivers/StdDrivers.cxx Diff File
mod - src/StdDrivers/StdDrivers.hxx Diff File
mod - src/StdLDrivers/StdLDrivers.cxx Diff File
mod - src/StdLDrivers/StdLDrivers.hxx Diff File
mod - src/StdResource/Plugin Diff File
mod - src/Storage/Storage_Schema.cxx Diff File
mod - src/TDocStd/TDocStd_Application.cxx Diff File
mod - src/TDocStd/TDocStd_Application.hxx Diff File
mod - src/TKDCAF/EXTERNLIB Diff File
mod - src/TKQADraw/EXTERNLIB Diff File
mod - src/TKTObjDRAW/EXTERNLIB Diff File
mod - src/TKXDEDRAW/EXTERNLIB Diff File
mod - src/TObj/TObj_Application.cxx Diff File
mod - src/TObj/TObj_Application.hxx Diff File
mod - src/TObj/TObj_Model.cxx Diff File
mod - src/TObjDRAW/TObjDRAW.cxx Diff File
mod - src/XCAFApp/XCAFApp_Application.cxx Diff File
mod - src/XCAFApp/XCAFApp_Application.hxx Diff File
mod - src/XCAFDoc/XCAFDoc.cxx Diff File
mod - src/XDEDRAW/XDEDRAW.cxx Diff File
mod - src/XDEDRAW/XDEDRAW_Common.cxx Diff File
mod - src/XmlDrivers/XmlDrivers.cxx Diff File
mod - src/XmlDrivers/XmlDrivers.hxx Diff File
mod - src/XmlLDrivers/XmlLDrivers.cxx Diff File
mod - src/XmlLDrivers/XmlLDrivers.hxx Diff File
mod - src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx Diff File
mod - src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.hxx Diff File
mod - src/XmlTObjDrivers/XmlTObjDrivers.cxx Diff File
mod - src/XmlTObjDrivers/XmlTObjDrivers.hxx Diff File
mod - src/XmlXCAFDrivers/XmlXCAFDrivers.cxx Diff File
mod - src/XmlXCAFDrivers/XmlXCAFDrivers.hxx Diff File
mod - tests/bugs/caf/bug27454 Diff File
mod - tests/bugs/xde/bug23010 Diff File