mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Porting on OCCT7.0.1: persistence
This commit is contained in:
parent
8ee487fe3f
commit
25ea73e3e3
@ -44,6 +44,10 @@ SET(_link_LIBRARIES
|
||||
GEOMSketcher
|
||||
)
|
||||
|
||||
IF(CAS_VERSION_STR VERSION_GREATER "7.0.0")
|
||||
LIST(APPEND _link_LIBRARIES ${CAS_TKStd} ${CAS_TKBin})
|
||||
ENDIF()
|
||||
|
||||
# --- headers ---
|
||||
|
||||
SET(GEOM_HEADERS
|
||||
|
@ -42,6 +42,7 @@ GEOM_Application::~GEOM_Application()
|
||||
{
|
||||
}
|
||||
|
||||
#if OCC_VERSION_LARGE <= 0x07000000
|
||||
//=======================================================================
|
||||
//function : Formats
|
||||
//purpose :
|
||||
@ -54,6 +55,7 @@ void GEOM_Application::Formats(TColStd_SequenceOfExtendedString& Formats)
|
||||
Formats.Append(TCollection_ExtendedString ("BinOcaf"));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -36,7 +36,9 @@ public:
|
||||
Standard_EXPORT GEOM_Application();
|
||||
Standard_EXPORT ~GEOM_Application();
|
||||
|
||||
#if OCC_VERSION_LARGE <= 0x07000000
|
||||
Standard_EXPORT virtual void Formats(TColStd_SequenceOfExtendedString& Formats);
|
||||
#endif
|
||||
Standard_EXPORT Standard_CString ResourcesName();
|
||||
|
||||
public:
|
||||
|
@ -66,6 +66,12 @@
|
||||
|
||||
#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>
|
||||
|
||||
#if OCC_VERSION_LARGE > 0x07000000
|
||||
#include <BinDrivers.hxx>
|
||||
#include <StdDrivers_DocumentRetrievalDriver.hxx>
|
||||
#include <PCDM_StorageDriver.hxx>
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
|
||||
#include <Standard_Failure.hxx>
|
||||
@ -225,6 +231,11 @@ GEOM_Engine::GEOM_Engine()
|
||||
TFunction_DriverTable::Get()->AddDriver(GEOM_Object::GetSubShapeID(), new GEOM_SubShapeDriver());
|
||||
|
||||
_OCAFApp = new GEOM_Application();
|
||||
#if OCC_VERSION_LARGE > 0x07000000
|
||||
_OCAFApp->DefineFormat("SALOME_GEOM", "GEOM Document Version 1.0", "sgd",
|
||||
new StdDrivers_DocumentRetrievalDriver, 0);
|
||||
BinDrivers::DefineFormat(_OCAFApp);
|
||||
#endif
|
||||
_UndoLimit = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user