summaryrefslogtreecommitdiff
path: root/src/TDF/TDF_DeltaOnForget.cxx
blob: 9b8d1c85e1fff833910cb029d2d44ceca3c4685f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// File:	TDF_DeltaOnForget.cxx
//      	---------------------
// Author:	DAUTRY Philippe
//		<fid@fox.paris1.matra-dtv.fr>
// Copyright:	Matra Datavision 1997

// Version:	0.0
// History:	Version	Date		Purpose
//		0.0	Nov  3 1997	Creation



#include <TDF_DeltaOnForget.ixx>
#include <TDF_Label.hxx>


//=======================================================================
//function : TDF_DeltaOnForget
//purpose  : 
//=======================================================================

TDF_DeltaOnForget::TDF_DeltaOnForget
(const Handle(TDF_Attribute)& anAtt)
: TDF_AttributeDelta(anAtt)
{}


//=======================================================================
//function : Apply
//purpose  : 
//=======================================================================

void TDF_DeltaOnForget::Apply() 
{
  // Undo = Resume.
  Label().ResumeAttribute(Attribute());
  Attribute()->mySavedTransaction = 0;
#ifdef DEB
  cout<<"Resume attribute"<<endl;
#endif
}