mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-07 20:27:27 +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
|
GEOMSketcher
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(CAS_VERSION_STR VERSION_GREATER "7.0.0")
|
||||||
|
LIST(APPEND _link_LIBRARIES ${CAS_TKStd} ${CAS_TKBin})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# --- headers ---
|
# --- headers ---
|
||||||
|
|
||||||
SET(GEOM_HEADERS
|
SET(GEOM_HEADERS
|
||||||
|
@ -42,6 +42,7 @@ GEOM_Application::~GEOM_Application()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if OCC_VERSION_LARGE <= 0x07000000
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : Formats
|
//function : Formats
|
||||||
//purpose :
|
//purpose :
|
||||||
@ -54,6 +55,7 @@ void GEOM_Application::Formats(TColStd_SequenceOfExtendedString& Formats)
|
|||||||
Formats.Append(TCollection_ExtendedString ("BinOcaf"));
|
Formats.Append(TCollection_ExtendedString ("BinOcaf"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -36,7 +36,9 @@ public:
|
|||||||
Standard_EXPORT GEOM_Application();
|
Standard_EXPORT GEOM_Application();
|
||||||
Standard_EXPORT ~GEOM_Application();
|
Standard_EXPORT ~GEOM_Application();
|
||||||
|
|
||||||
|
#if OCC_VERSION_LARGE <= 0x07000000
|
||||||
Standard_EXPORT virtual void Formats(TColStd_SequenceOfExtendedString& Formats);
|
Standard_EXPORT virtual void Formats(TColStd_SequenceOfExtendedString& Formats);
|
||||||
|
#endif
|
||||||
Standard_EXPORT Standard_CString ResourcesName();
|
Standard_EXPORT Standard_CString ResourcesName();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -66,6 +66,12 @@
|
|||||||
|
|
||||||
#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>
|
#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>
|
||||||
|
|
||||||
|
#if OCC_VERSION_LARGE > 0x07000000
|
||||||
|
#include <BinDrivers.hxx>
|
||||||
|
#include <StdDrivers_DocumentRetrievalDriver.hxx>
|
||||||
|
#include <PCDM_StorageDriver.hxx>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
@ -225,6 +231,11 @@ GEOM_Engine::GEOM_Engine()
|
|||||||
TFunction_DriverTable::Get()->AddDriver(GEOM_Object::GetSubShapeID(), new GEOM_SubShapeDriver());
|
TFunction_DriverTable::Get()->AddDriver(GEOM_Object::GetSubShapeID(), new GEOM_SubShapeDriver());
|
||||||
|
|
||||||
_OCAFApp = new GEOM_Application();
|
_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;
|
_UndoLimit = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user