mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028564: Support of applications using old persistence (ShapeSchema)
1. Bug fix in reading old persistent data using FSD_File storage driver 2. Persistence compatible with legacy format was restored for shapes a. Implemented a storage read / write wrapper for legacy persistence b. Added DRAW commands to read / write files in legacy format c. Added test cases for reading / writing operations with checking number of sub-shapes and physical properties d. Updated related sections of the development guide
This commit is contained in:
@@ -48,15 +48,27 @@ class StdLPersistent_Value
|
||||
|
||||
public:
|
||||
|
||||
typedef integer <TDF_TagSource> TagSource;
|
||||
typedef string <TDF_Reference> Reference;
|
||||
typedef string <TDataStd_Comment> Comment;
|
||||
class TagSource : public integer <TDF_TagSource> {
|
||||
public:
|
||||
Standard_CString PName() const { return "PDF_TagSource"; }
|
||||
};
|
||||
|
||||
class Reference : public string <TDF_Reference> {
|
||||
public:
|
||||
Standard_CString PName() const { return "PDF_Reference"; }
|
||||
};
|
||||
|
||||
class Comment : public string <TDataStd_Comment> {
|
||||
public:
|
||||
Standard_CString PName() const { return "PDF_Comment"; }
|
||||
};
|
||||
|
||||
class UAttribute : public string <TDataStd_UAttribute>
|
||||
{
|
||||
public:
|
||||
//! Create an empty transient attribuite
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
|
||||
Standard_CString PName() const { return "PDataStd_UAttribute"; }
|
||||
};
|
||||
|
||||
class Integer : public integer <TDataStd_Integer>
|
||||
@@ -64,6 +76,7 @@ public:
|
||||
public:
|
||||
//! Create an empty transient attribuite
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
|
||||
Standard_CString PName() const { return "PDataStd_Integer"; }
|
||||
};
|
||||
|
||||
class Name : public string <TDataStd_Name>
|
||||
@@ -71,6 +84,7 @@ public:
|
||||
public:
|
||||
//! Create an empty transient attribuite
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
|
||||
Standard_CString PName() const { return "PDataStd_Name"; }
|
||||
};
|
||||
|
||||
class AsciiString : public string <TDataStd_AsciiString, StdLPersistent_HString::Ascii>
|
||||
@@ -78,7 +92,23 @@ public:
|
||||
public:
|
||||
//! Create an empty transient attribuite
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
|
||||
Standard_CString PName() const { return "PDataStd_AsciiString"; }
|
||||
};
|
||||
};
|
||||
|
||||
template<>
|
||||
template<>
|
||||
inline Standard_CString StdObjMgt_Attribute<TDF_TagSource>::Simple<Standard_Integer>::PName() const
|
||||
{ return "PDF_TagSource"; }
|
||||
|
||||
template<>
|
||||
template<>
|
||||
inline Standard_CString StdObjMgt_Attribute<TDF_Reference>::Simple<Handle(StdObjMgt_Persistent)>::PName() const
|
||||
{ return "PDF_Reference"; }
|
||||
|
||||
template<>
|
||||
template<>
|
||||
inline Standard_CString StdObjMgt_Attribute<TDataStd_Comment>::Simple<Handle(StdObjMgt_Persistent)>::PName() const
|
||||
{ return "PDataStd_Comment"; }
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user