0027932: Improvement of standard attributes usability.
authorszy <szy@opencascade.com>
Thu, 27 Oct 2016 14:55:43 +0000 (17:55 +0300)
committerabv <abv@opencascade.com>
Tue, 8 Nov 2016 16:30:59 +0000 (19:30 +0300)
commitfa53efefc3eb1d7252d1f93dbcf93db0b989406b
treebfe55d4e8216006f3e8c891fc1ef210f5df6c3d7
parent9c86076b21f78c87d61b709bce35b1331fcdd7d0
0027932: Improvement of standard attributes usability.

OCAF attributes TDataStd_AsciiString, TDataStd_Integer, TDataStd_Name, TDataStd_Real are extended by possibility to use custom GUID.

Now multiple attributes of any of these types can be placed at the same label using different user-defined GUIDs.
For this new "Set" methods were added into each attribute, which takes this custom GUID as an argument.
Other aspects of management of attributes on labels remain the same.

Version number of persistent OCAF documents is incremented.
However, the attributes are stored in the same way unless non-standard GUID is used for particular attribute.
Previously saved documents are fully supported, but the new documents with this extension used will be non-readable by the previous version of OCAF libraries.
39 files changed:
src/BinLDrivers/BinLDrivers.cxx
src/BinMDataStd/BinMDataStd_AsciiStringDriver.cxx
src/BinMDataStd/BinMDataStd_IntegerDriver.cxx
src/BinMDataStd/BinMDataStd_NameDriver.cxx
src/BinMDataStd/BinMDataStd_RealDriver.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_NameCommands.cxx
src/Standard/Standard_GUID.cxx
src/Standard/Standard_GUID.hxx
src/StdLPersistent/StdLPersistent_Real.hxx
src/StdLPersistent/StdLPersistent_Value.cxx
src/StdLPersistent/StdLPersistent_Value.hxx
src/TDataStd/TDataStd_AsciiString.cxx
src/TDataStd/TDataStd_AsciiString.hxx
src/TDataStd/TDataStd_Integer.cxx
src/TDataStd/TDataStd_Integer.hxx
src/TDataStd/TDataStd_Name.cxx
src/TDataStd/TDataStd_Name.hxx
src/TDataStd/TDataStd_Real.cxx
src/TDataStd/TDataStd_Real.hxx
src/XCAFDoc/XCAFDoc_Datum.cxx
src/XCAFDoc/XCAFDoc_Dimension.cxx
src/XCAFDoc/XCAFDoc_GeomTolerance.cxx
src/XmlMDataStd/XmlMDataStd_AsciiStringDriver.cxx
src/XmlMDataStd/XmlMDataStd_IntegerDriver.cxx
src/XmlMDataStd/XmlMDataStd_NameDriver.cxx
src/XmlMDataStd/XmlMDataStd_RealDriver.cxx
tests/caf/basic/A4 [new file with mode: 0644]
tests/caf/basic/A5 [new file with mode: 0644]
tests/caf/basic/A6 [new file with mode: 0644]
tests/caf/basic/B4 [new file with mode: 0644]
tests/caf/basic/B5 [new file with mode: 0755]
tests/caf/basic/B6 [new file with mode: 0644]
tests/caf/basic/E4 [new file with mode: 0644]
tests/caf/basic/E5 [new file with mode: 0644]
tests/caf/basic/E6 [new file with mode: 0644]
tests/caf/basic/N4 [new file with mode: 0644]
tests/caf/basic/N5 [new file with mode: 0644]
tests/caf/basic/N6 [new file with mode: 0644]