0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
[occt.git] / src / BinXCAFDrivers / BinXCAFDrivers.cxx
index 3d1d36a..cf14f7c 100644 (file)
@@ -24,7 +24,7 @@
 #include <Plugin_Macro.hxx>
 #include <Standard_Failure.hxx>
 #include <Standard_GUID.hxx>
-#include <Standard_Transient.hxx>
+#include <TDocStd_Application.hxx>
 
 static Standard_GUID BinXCAFStorageDriver  ("a78ff496-a779-11d5-aab4-0050044b1af1");
 static Standard_GUID BinXCAFRetrievalDriver("a78ff497-a779-11d5-aab4-0050044b1af1");
@@ -61,6 +61,17 @@ const Handle(Standard_Transient)& BinXCAFDrivers::Factory(const Standard_GUID& t
   return aNullHandle;
 }
 
+//=======================================================================
+//function : DefineFormat
+//purpose  : 
+//=======================================================================
+void BinXCAFDrivers::DefineFormat (const Handle(TDocStd_Application)& theApp)
+{
+  theApp->DefineFormat ("BinXCAF", "Binary XCAF Document", "xbf",
+                        new BinXCAFDrivers_DocumentRetrievalDriver, 
+                        new BinXCAFDrivers_DocumentStorageDriver);
+}
+
 //=======================================================================
 //function :
 //purpose  :