]> OCCT Git - occt-copy.git/commitdiff
0031452: Impossible to get Backup of the attribute and status that attribute was...
authorgka <gka@opencascade.com>
Fri, 20 Mar 2020 09:13:08 +0000 (12:13 +0300)
committerabv <abv@opencascade.com>
Mon, 4 May 2020 19:38:07 +0000 (22:38 +0300)
Added public method returning Backup for attribute

src/TDF/TDF_Attribute.hxx
src/TDF/TDF_Attribute.lxx

index 7c8574642429c26531c159213b5e4662cf354a3b..8df9029e5e83b1b65793e85d171d7e64d17ffee5 100644 (file)
@@ -282,6 +282,10 @@ public:
   //! Backup() method.
     Standard_Boolean IsBackuped() const;
   
+  //! Returns Backup attribute for current state of attribute
+  Standard_EXPORT Handle(TDF_Attribute) GetBackup() const;
+  
+
   //! Copies  the attribute  contents into  a  new other
   //! attribute. It is used by Backup().
   Standard_EXPORT virtual Handle(TDF_Attribute) BackupCopy() const;
index 5f3efa29bfd7e49849d003e26c99abed6307a39b..4d4be8ecd1be3c761a19c87ddc91c0e32166fbcd 100644 (file)
@@ -59,3 +59,9 @@ inline Standard_Boolean TDF_Attribute::IsForgotten() const
 inline Standard_OStream& operator << (Standard_OStream& anOS,
                                       const Handle(TDF_Attribute)& anAtt)
 { return anAtt->Dump(anOS); }
+
+
+inline Handle(TDF_Attribute) TDF_Attribute::GetBackup() const
+{
+  return myBackup;
+}
\ No newline at end of file