1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030773: Application Framework - To allow to inherit existing attributes to reuse persistence mechanisms

Added possibility to inherit existing attributes if the same persistent fields are used. All methods that allow controlling the data model changes or getting some callbacks may be overridden in successor. They may have same GUIDs as a base class or new ones.

Special macros IMPLEMENT_DERIVED_ATTRIBUTE and IMPLEMENT_DERIVED_ATTRIBUTE_WITH_TYPE must be used instead of standard Handle macro definition IMPLEMENT_STANDARD_RTTIEXT to register new derived attributes.

Using this improvement several existing attributes from TDataStd, TDataXtd and XCAFDoc packages become inherited from other base attribute-classes. XML and Bin drivers of these attributes are removed. New base attribute classes are added: TDataStd_GenericEmpty and TDataStd_GenericExtString.

This improvement does not change both present formats Bin and XML documents. The obsolete Standard scheme is not changed at all.
This commit is contained in:
mpv
2020-06-19 23:12:17 +03:00
committed by abv
parent 59e11a2f75
commit c99ad5d760
202 changed files with 1438 additions and 8261 deletions

View File

@@ -8,10 +8,6 @@ BinMDataStd_BooleanListDriver.cxx
BinMDataStd_BooleanListDriver.hxx
BinMDataStd_ByteArrayDriver.cxx
BinMDataStd_ByteArrayDriver.hxx
BinMDataStd_CommentDriver.cxx
BinMDataStd_CommentDriver.hxx
BinMDataStd_DirectoryDriver.cxx
BinMDataStd_DirectoryDriver.hxx
BinMDataStd_ExpressionDriver.cxx
BinMDataStd_ExpressionDriver.hxx
BinMDataStd_ExtStringArrayDriver.cxx
@@ -28,10 +24,8 @@ BinMDataStd_IntPackedMapDriver.cxx
BinMDataStd_IntPackedMapDriver.hxx
BinMDataStd_NamedDataDriver.cxx
BinMDataStd_NamedDataDriver.hxx
BinMDataStd_NameDriver.cxx
BinMDataStd_NameDriver.hxx
BinMDataStd_NoteBookDriver.cxx
BinMDataStd_NoteBookDriver.hxx
BinMDataStd_GenericExtStringDriver.cxx
BinMDataStd_GenericExtStringDriver.hxx
BinMDataStd_RealArrayDriver.cxx
BinMDataStd_RealArrayDriver.hxx
BinMDataStd_RealDriver.cxx
@@ -42,10 +36,8 @@ BinMDataStd_ReferenceArrayDriver.cxx
BinMDataStd_ReferenceArrayDriver.hxx
BinMDataStd_ReferenceListDriver.cxx
BinMDataStd_ReferenceListDriver.hxx
BinMDataStd_RelationDriver.cxx
BinMDataStd_RelationDriver.hxx
BinMDataStd_TickDriver.cxx
BinMDataStd_TickDriver.hxx
BinMDataStd_GenericEmptyDriver.cxx
BinMDataStd_GenericEmptyDriver.hxx
BinMDataStd_TreeNodeDriver.cxx
BinMDataStd_TreeNodeDriver.hxx
BinMDataStd_UAttributeDriver.cxx