mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
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.
This commit is contained in:
@@ -18,8 +18,6 @@
|
||||
#include <Standard_RangeError.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
#define Standard_GUID_SIZE 36
|
||||
#define Standard_GUID_SIZE_ALLOC Standard_GUID_SIZE+1
|
||||
|
||||
//Fixes incorrect treatment of GUID given as a string with invalid format
|
||||
|
||||
|
@@ -32,7 +32,8 @@
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
|
||||
|
||||
#define Standard_GUID_SIZE 36
|
||||
#define Standard_GUID_SIZE_ALLOC Standard_GUID_SIZE+1
|
||||
|
||||
class Standard_GUID
|
||||
{
|
||||
|
Reference in New Issue
Block a user